1. 11 11月, 2009 1 次提交
    • H
      perf bench: Improve builtin-bench.c for more friendly output · 79e295d4
      Hitoshi Mitake 提交于
      This patch makes output of perf bench more friendly.
      Current style of putput, keeping user wait
      and printing everything suddenly when we finish,
      may confuse users.
      
      So I improved it:
      
       | % perf bench sched messaging
       | # Running sched/messaging benchmark...  <- printed right after invocation
       | # 20 sender and receiver processes per group
       | # 10 groups == 400 processes run
       |
       |      Total time: 1.476 [sec]
      Signed-off-by: NHitoshi Mitake <mitake@dcl.info.waseda.ac.jp>
      Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
      Cc: Paul Mackerras <paulus@samba.org>
      LKML-Reference: <1257865442-20252-2-git-send-email-mitake@dcl.info.waseda.ac.jp>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      79e295d4
  2. 10 11月, 2009 7 次提交
    • H
      perf bench: Modify command-list.txt for the entry of perf-bench · 8d8d61aa
      Hitoshi Mitake 提交于
      This patch modifies command-list.txt for the entry of
      perf-bench. So perf will show 'bench' in command list.
      
      Example:
      % perf
      
       usage: perf [--version] [--help] COMMAND [ARGS]
      
       The most commonly used perf commands are:
         annotate    Read perf.data (created by perf record) and display annotated code
         bench       General framework for benchmark suites
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
         list        List all symbolic event types
         probe       Define new dynamic tracepoints
         record      Run a command and record its profile into perf.data
         report      Read perf.data (created by perf record) and display the profile
         sched       Tool to trace/measure scheduler properties (latencies)
         stat        Run a command and gather performance counter statistics
         timechart   Tool to visualize total system behavior during a workload
         top         System profiling tool.
         trace       Read perf.data (created by perf record) and display trace output
      
       See 'perf help COMMAND' for more information on a specific command.
      Signed-off-by: NHitoshi Mitake <mitake@dcl.info.waseda.ac.jp>
      Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
      Cc: Paul Mackerras <paulus@samba.org>
      LKML-Reference: <1257853855-28934-4-git-send-email-mitake@dcl.info.waseda.ac.jp>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      8d8d61aa
    • H
      perf bench: Add new document about perf-bench · 9fbc04f2
      Hitoshi Mitake 提交于
      This patch adds new document about perf-bench.
      Man page and html will be provided for user.
      Signed-off-by: NHitoshi Mitake <mitake@dcl.info.waseda.ac.jp>
      Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
      Cc: Paul Mackerras <paulus@samba.org>
      LKML-Reference: <1257853855-28934-3-git-send-email-mitake@dcl.info.waseda.ac.jp>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      9fbc04f2
    • I
      perf bench: Clean up bench/bench.h · 606bc1e1
      Ingo Molnar 提交于
      Clean up initializers in bench.h:
      
        - No need to break the line for function prototypes, they are more
          readable in a single line. (even if checkpatch complains about it
      
        - We try to align definitions / structure fields vertically,
          to make it  all a bit more readable.
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      Signed-off-by: NHitoshi Mitake <mitake@dcl.info.waseda.ac.jp>
      Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
      Cc: Paul Mackerras <paulus@samba.org>
      LKML-Reference: <1257853855-28934-2-git-send-email-mitake@dcl.info.waseda.ac.jp>
      606bc1e1
    • H
      perf bench: Modify builtin-pipe.c for processing common options · 158ba827
      Hitoshi Mitake 提交于
      This patch modifies builtin-pipe.c for processing common
      options. The first option added is "--format".
      Users of perf bench will be able to specify output style by
      --format.
      
      Usage example:
      
       % ./perf bench sched pipe		# with no style specify
       (executing 1000000 pipe operations between two tasks)
      
               Total time:5.855 sec
                       5.855061 usecs/op
                       170792 ops/sec
      
       % ./perf bench --format=simple sched pipe # specified simple
       5.988
      Signed-off-by: NHitoshi Mitake <mitake@dcl.info.waseda.ac.jp>
      Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
      Cc: Paul Mackerras <paulus@samba.org>
      LKML-Reference: <1257808802-9420-5-git-send-email-mitake@dcl.info.waseda.ac.jp>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
      Cc: Paul Mackerras <paulus@samba.org>
      158ba827
    • H
      perf bench: Modify bench/bench-messaging.c to adopt unified output formatting · cced06c6
      Hitoshi Mitake 提交于
      This patch modifies bench/bench-messaging.c to adopt
      unified output formatting: --format option.
      
      Usage example:
      
       % ./perf bench sched messaging              # with no style
       specify (20 sender and receiver processes per group)
       (10 groups == 400 processes run)
      
              Total time:1.431 sec
      
       % ./perf bench --format=simple sched messaging # specified
       simple 1.431
      Signed-off-by: NHitoshi Mitake <mitake@dcl.info.waseda.ac.jp>
      Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
      Cc: Paul Mackerras <paulus@samba.org>
      LKML-Reference: <1257808802-9420-4-git-send-email-mitake@dcl.info.waseda.ac.jp>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      cced06c6
    • H
      perf bench: Modify builtin-bench.c for processing common options · 386d7e9e
      Hitoshi Mitake 提交于
      This patch modifies builtin-bench.c for processing common
      options. The first option added is "--format".
      Users of perf bench will be able to specify output style by
      --format.
      
      Usage example:
      
       % ./perf bench sched messaging		# with no style specify
       (20 sender and receiver processes per group)
       (10 groups == 400 processes run)
      
               Total time:1.431 sec
      
       % ./perf bench --format=simple sched messaging # specified
       simple 1.431
      Signed-off-by: NHitoshi Mitake <mitake@dcl.info.waseda.ac.jp>
      Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
      Cc: Paul Mackerras <paulus@samba.org>
      LKML-Reference: <1257808802-9420-3-git-send-email-mitake@dcl.info.waseda.ac.jp>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      386d7e9e
    • H
      perf bench: Add format constants to bench.h for unified output formatting · 242aa14a
      Hitoshi Mitake 提交于
      This patch adds some constants and extern declaration to
      bench.h. These are used for unified output formatting
      of 'perf bench'.
      Signed-off-by: NHitoshi Mitake <mitake@dcl.info.waseda.ac.jp>
      Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
      Cc: Paul Mackerras <paulus@samba.org>
      LKML-Reference: <1257808802-9420-2-git-send-email-mitake@dcl.info.waseda.ac.jp>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      242aa14a
  3. 09 11月, 2009 1 次提交
    • H
      perf bench: Fix bench/sched-pipe.c to wait for child process · 5ff0cfc6
      Hitoshi Mitake 提交于
      Ingo reported this small 'perf bench sched pipe' output problem:
      
       | $ ./perf bench sched pipe
       | (executing 1000000 pipe operations between two tasks)
       |
       |	Total time:4.898 sec
       | $		4.898586 usecs/op
       |		204140 ops/sec
       |
       | the shell prompt came back before the usecs/op and ops/sec line
       | was printed. Process teardown race, lack of wait() or so?
      
      This caused by lack of calling waitpid() by parent process,
      so I added it.
      Signed-off-by: NHitoshi Mitake <mitake@dcl.info.waseda.ac.jp>
      Cc: Rusty Russell <rusty@rustcorp.com.au>
      Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Mike Galbraith <efault@gmx.de>
      Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
      Cc: Frederic Weisbecker <fweisbec@gmail.com>
      Cc: Jiri Kosina <jkosina@suse.cz>
      LKML-Reference: <1257737465-7546-1-git-send-email-mitake@dcl.info.waseda.ac.jp>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      5ff0cfc6
  4. 08 11月, 2009 7 次提交
  5. 04 11月, 2009 9 次提交
  6. 03 11月, 2009 15 次提交