1. 10 11月, 2009 5 次提交
    • 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
  2. 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
  3. 08 11月, 2009 7 次提交
  4. 04 11月, 2009 9 次提交
  5. 03 11月, 2009 18 次提交