1. 03 Oct, 2012 2 commits
  2. 02 Oct, 2012 26 commits
  3. 29 Sep, 2012 3 commits
  4. 28 Sep, 2012 1 commit
  5. 27 Sep, 2012 3 commits
  6. 26 Sep, 2012 5 commits
    • Namhyung Kim's avatar
      perf hists: Add missing period_* fields when collapsing a hist entry · 9ec60972
      Namhyung Kim authored
      So that the perf report won't lost the cpu utilization information.
      
      For example, if there're two process that have same name.
      
        $ perf report --stdio --showcpuutilization -s pid
        [SNIP]
        #   Overhead       sys        us  Command:  Pid
        #   ........  ........  ........  .............
        #
              55.12%     0.01%    55.10%  noploop:28781
              44.88%     0.06%    44.83%  noploop:28782
      
      Before:
        $ perf report --stdio --showcpuutilization -s comm
        [SNIP]
        #   Overhead       sys        us
        #   ........  ........  ........
        #
             100.00%     0.06%    44.83%
      
      After:
        $ perf report --stdio --showcpuutilization -s comm
        [SNIP]
        #   Overhead       sys        us
        #   ........  ........  ........
        #
             100.00%     0.07%    99.93%
      Signed-off-by: default avatarNamhyung Kim <namhyung@kernel.org>
      Cc: Arun Sharma <asharma@fb.com>
      Cc: David Ahern <dsahern@gmail.com>
      Cc: Frederic Weisbecker <fweisbec@gmail.com>
      Cc: Ingo Molnar <mingo@kernel.org>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
      Cc: Stephane Eranian <eranian@google.com>
      Link: http://lkml.kernel.org/r/1348645663-25303-2-git-send-email-namhyung@kernel.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      9ec60972
    • Arnaldo Carvalho de Melo's avatar
      perf trace: New tool · 514f1c67
      Arnaldo Carvalho de Melo authored
      Initially should look loosely like the venerable 'strace' tool, but
      using the infrastructure in the perf tools to allow tracing extra
      targets:
      
        [acme@sandy linux]$ perf trace --hell
        Error: unknown option `hell'
      
         usage: perf trace <PID>
      
            -p, --pid <pid>       trace events on existing process id
                --tid <tid>       trace events on existing thread id
                --all-cpus        system-wide collection from all CPUs
                --cpu <cpu>       list of cpus to monitor
                --no-inherit      child tasks do not inherit counters
                --mmap-pages <n>  number of mmap data pages
                --uid <user>      user to profile
      
        [acme@sandy linux]$
      
      Those should have the same semantics as when using with 'perf record'.
      
      It gets stuck sometimes, but hey, it works sometimes too!
      
      In time it should support perf.data based workloads, i.e. it should have
      a:
      	-o filename
      
      Command line option that will produce a perf.data file that can then be
      used with 'perf trace' or any of the other perf tools (script, report,
      etc).
      
      It will also eventually have the set of functionalities described in the
      previous 'trace' prototype by Thomas Gleixner:
      
         "Announcing a new utility: 'trace'"
         http://lwn.net/Articles/415728/
      
      Also planned is to have some of the features suggested in the comments
      of that LWN article.
      
      Cc: David Ahern <dsahern@gmail.com>
      Cc: Frederic Weisbecker <fweisbec@gmail.com>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Cc: Mike Galbraith <efault@gmx.de>
      Cc: Namhyung Kim <namhyung@gmail.com>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Stephane Eranian <eranian@google.com>
      Cc: Steven Rostedt <rostedt@goodmis.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Link: http://lkml.kernel.org/n/tip-v9x3q9rv4caxtox7wtjpchq5@git.kernel.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      514f1c67
    • Arnaldo Carvalho de Melo's avatar
      perf evsel: Export the event_format constructor · 201b7334
      Arnaldo Carvalho de Melo authored
      It'll be needed in the next patches, where it'll be not associated
      directly to an evsel.
      
      Cc: David Ahern <dsahern@gmail.com>
      Cc: Frederic Weisbecker <fweisbec@gmail.com>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Cc: Mike Galbraith <efault@gmx.de>
      Cc: Namhyung Kim <namhyung@gmail.com>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Stephane Eranian <eranian@google.com>
      Link: http://lkml.kernel.org/n/tip-v9x3q9rv4caxtox7wtjpchq5@git.kernel.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      201b7334
    • Arnaldo Carvalho de Melo's avatar
      perf evsel: Introduce rawptr() method · 5d2074ea
      Arnaldo Carvalho de Melo authored
      Will be used for things like the args field in the raw_syscalls:sys_enter
      tracepoint.
      
      Implement strval with it, its basicaly strval returning void *.
      
      Cc: David Ahern <dsahern@gmail.com>
      Cc: Frederic Weisbecker <fweisbec@gmail.com>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Cc: Mike Galbraith <efault@gmx.de>
      Cc: Namhyung Kim <namhyung@gmail.com>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Stephane Eranian <eranian@google.com>
      Link: http://lkml.kernel.org/n/tip-v9x3q9rv4caxtox7wtjpchq5@git.kernel.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      5d2074ea
    • Arnaldo Carvalho de Melo's avatar
      perf tools: Use perf_evsel__newtp in the event parser · 82fe1c29
      Arnaldo Carvalho de Melo authored
      Elliminating code duplication.
      
      Cc: David Ahern <dsahern@gmail.com>
      Cc: Frederic Weisbecker <fweisbec@gmail.com>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Cc: Mike Galbraith <efault@gmx.de>
      Cc: Namhyung Kim <namhyung@gmail.com>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Stephane Eranian <eranian@google.com>
      Link: http://lkml.kernel.org/n/tip-9v4zl7ldlp8v6azrpsu5lupk@git.kernel.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      82fe1c29