[PATCH 0/5] Initial trace-cmd perf support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Initial implementation of trace-cmd perf subcommand. It collects call traces
of a given PID and resolves collected addresses to function names. Still
work in progress.
What it has till now:
 - Configures and runs perf to collect call traces of the given PID.
 - Runs per CPU thread to read perf buffers and store traces in temp files.
 - Resolves collected addresses to function names (well, at least tries to do
   it). This includes also dynamic libraries, loaded runtime during the
   trace.
What should be implemented:
 - Store the results in a trace.dat file. Should think about how to extend
   its format to hold these traces.
 - Visualise the call stack from trace.dat file with trace-cmd report and
   KernelShark.

Tzvetomir Stoyanov (VMware) (5):
  trace-cmd: Internal refactoring of pid address map logic
  trace-cmd: Make read_file_string() non static
  trace-cmd: New internal APIs for reading ELF header
  trace-cmd: Add a new option in trace.dat file for the address to
    function name mapping
  [WIP] trace-cmd: Add new subcomand "trace-cmd perf"

 Makefile                                      |  10 +
 .../include/private/trace-cmd-private.h       |   5 +
 lib/trace-cmd/trace-input.c                   | 144 +++
 tracecmd/Makefile                             |   2 +
 tracecmd/include/trace-local.h                |  46 +-
 tracecmd/trace-cmd.c                          |   1 +
 tracecmd/trace-dump.c                         |   9 +-
 tracecmd/trace-obj-debug.c                    | 907 ++++++++++++++++++
 tracecmd/trace-perf.c                         | 726 ++++++++++++++
 tracecmd/trace-record.c                       | 107 +--
 10 files changed, 1841 insertions(+), 116 deletions(-)
 create mode 100644 tracecmd/trace-obj-debug.c
 create mode 100644 tracecmd/trace-perf.c

-- 
2.28.0




[Index of Archives]     [Linux USB Development]     [Linux USB Development]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux