Skip to content

perf tools: More preparation for call graph from Intel BTS

Adrian Hunter lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest52 patches 30 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/52perf tools: Fix jump label always changing during tracingtools/perf/util/cloexec.c+7 -27 replies
2/52perf tools: Identify which comms are from exectools/perf/util/comm.c tools/perf/util/comm.h tools/perf/util/machine.c +2 more+40 -110 replies
3/52perf tools: Add machine__thread_exec_comm()tools/perf/util/machine.c tools/perf/util/machine.h tools/perf/util/session.c+53 -10 replies
4/52perf tools: Fix missing label symbolstools/perf/util/symbol-elf.c+1 -10 replies
5/52perf tools: Add machine__kernel_ip()tools/perf/util/event.c tools/perf/util/machine.c tools/perf/util/machine.h+43 -30 replies
6/52perf script: Improve srcline display for BTStools/perf/builtin-script.c+15 -50 replies
7/52perf script: Do not print dangling '=>' for BTStools/perf/builtin-script.c+3 -30 replies
8/52perf tools: Fix incorrect fd error comparisontools/perf/util/dso.c+1 -10 replies
9/52perf tools: Record whether a dso has datatools/perf/util/dso.c tools/perf/util/dso.h+22 -80 replies
10/52perf tools: Add dso__data_status_seen()tools/perf/util/dso.c tools/perf/util/dso.h+18 -00 replies
11/52perf tools: Let a user specify a PMU event without any config termstools/perf/util/parse-events.c tools/perf/util/parse-events.y+16 -00 replies
12/52perf tools: Let default config be defined for a PMUtools/perf/tests/pmu.c tools/perf/util/parse-events.c tools/perf/util/pmu.c +1 more+41 -190 replies
13/52perf tools: Add perf_pmu__scan_file()tools/perf/util/pmu.c tools/perf/util/pmu.h+40 -06 replies
14/52perf tools: Add dsos__hit_all()tools/perf/util/header.c tools/perf/util/header.h+43 -00 replies
15/52perf tools: Add cpu to struct threadtools/perf/util/thread.c tools/perf/util/thread.h+2 -00 replies
16/52perf tools: Add ability to record the current tid for each cputools/perf/util/machine.c tools/perf/util/machine.h+51 -01 reply
17/52perf evlist: Add perf_evlist__set_tracking_event()tools/perf/util/evlist.c tools/perf/util/evlist.h+23 -04 replies
18/52perf evlist: Add 'system_wide' optiontools/perf/util/evlist.c tools/perf/util/evsel.c tools/perf/util/evsel.h+64 -130 replies
19/52perf tools: Add id indextools/perf/builtin-inject.c tools/perf/util/event.c tools/perf/util/event.h +5 more+177 -40 replies
20/52perf pmu: Let pmu's with no events show up on perf listtools/perf/util/pmu.c tools/perf/util/pmu.h+12 -20 replies
21/52perf session: Add ability to skip 4GiB or moretools/perf/util/session.c+13 -73 replies
22/52perf session: Add perf_session__deliver_synth_event()tools/perf/util/session.c tools/perf/util/session.h+19 -00 replies
23/52perf tools: Move rdtsc() functiontools/perf/arch/x86/util/tsc.c tools/perf/tests/perf-time-to-tsc.c tools/perf/util/tsc.c +1 more+15 -90 replies
24/52perf evlist: Add perf_evlist__enable_event_idx()tools/perf/util/evlist.c tools/perf/util/evlist.h+49 -00 replies
25/52perf session: Add perf_session__peek_event()tools/perf/util/session.c tools/perf/util/session.h+60 -00 replies
26/52perf tools: Add dso__data_size()tools/perf/util/dso.c tools/perf/util/dso.h+24 -00 replies
27/52perf tools: Add a thread stack for synthesizing call chainstools/perf/Makefile.perf tools/perf/util/event.h tools/perf/util/thread-stack.c +3 more+217 -00 replies
28/52perf script: Allow callchains if any event samples themtools/perf/builtin-script.c+13 -44 replies
29/52perf inject: Add --kallsyms parametertools/perf/Documentation/perf-inject.txt tools/perf/builtin-inject.c+5 -00 replies
30/52perf tools: Expose 'addr' functions so they can be reusedtools/perf/builtin-script.c tools/perf/util/event.c tools/perf/util/event.h+53 -330 replies
31/52perf tools: Add facility to export data in database-friendly waytools/perf/Makefile.perf tools/perf/util/comm.h tools/perf/util/db-export.c +6 more+362 -00 replies
32/52perf tools: Add helpers for calling Python objectstools/perf/util/scripting-engines/trace-event-python.c+47 -670 replies
33/52perf tools: Extend Python script interface to export data in a database-friendly waytools/perf/util/scripting-engines/trace-event-python.c+279 -20 replies
34/52perf tools: Add Python script to export to postgresqltools/perf/scripts/python/bin/export-to-postgresql-record tools/perf/scripts/python/bin/export-to-postgresql-report tools/perf/scripts/python/export-to-postgresql.py+392 -00 replies
35/52perf tools: Add flags and insn_len to struct sampletools/perf/util/event.h+2 -00 replies
36/52perf tools: Add branch type to db exporttools/perf/util/db-export.c tools/perf/util/db-export.h+54 -00 replies
37/52perf tools: Add branch_type and in_tx to Python exporttools/perf/scripts/python/export-to-postgresql.py tools/perf/util/scripting-engines/trace-event-python.c+55 -70 replies
38/52perf tools: Enhance the thread stack to output call/return datatools/perf/util/thread-stack.c tools/perf/util/thread-stack.h+590 -40 replies
39/52perf tools: Add call information to the database export APItools/perf/util/db-export.c tools/perf/util/db-export.h+63 -10 replies
40/52perf tools: Add call information to Python exporttools/perf/scripts/python/bin/export-to-postgresql-report tools/perf/scripts/python/export-to-postgresql.py tools/perf/util/scripting-engines/trace-event-python.c+158 -70 replies
41/52perf tools: Add 'flush' callback to scripting APItools/perf/builtin-script.c tools/perf/util/scripting-engines/trace-event-perl.c tools/perf/util/scripting-engines/trace-event-python.c +2 more+32 -00 replies
42/52perf tools: Defer export of comms that were not 'set'tools/perf/util/db-export.c tools/perf/util/db-export.h tools/perf/util/scripting-engines/trace-event-python.c+67 -20 replies
43/52perf tools: Add perf-with-kcore scripttools/perf/.gitignore tools/perf/Makefile.perf tools/perf/perf-with-kcore.sh+264 -10 replies
44/52perf tools: Pass machine to vdso__dso_findnew()tools/perf/util/machine.c tools/perf/util/map.c tools/perf/util/map.h +2 more+14 -100 replies
45/52perf tools: Group VDSO global variables into a structuretools/perf/util/vdso.c+32 -120 replies
46/52perf tools: Fix the lifetime of the VDSO temporary filetools/perf/util/machine.c tools/perf/util/machine.h tools/perf/util/session.c +2 more+35 -131 reply
47/52perf tools: Add vdso__new()tools/perf/util/vdso.c+15 -50 replies
48/52perf tools: Separate the VDSO map name from the VDSO dso nametools/perf/util/header.c tools/perf/util/symbol-elf.c tools/perf/util/vdso.c +1 more+20 -90 replies
49/52perf tools: Build programs to copy 32-bit compatibility VDSOstools/perf/Makefile.perf tools/perf/config/Makefile tools/perf/config/Makefile.arch +1 more+121 -45 replies
50/52perf tools: Add dso__type()tools/perf/util/dso.c tools/perf/util/dso.h tools/perf/util/symbol-elf.c +2 more+77 -00 replies
51/52perf tools: Add thread parameter to vdso__dso_findnew()tools/perf/util/machine.c tools/perf/util/map.c tools/perf/util/map.h +2 more+10 -70 replies
52/52perf tools: Add support for 32-bit compatibility VDSOstools/perf/util/vdso.c tools/perf/util/vdso.h+172 -27 replies

Reviews trailers per patch

2 of 52 patches have a Reviewed-by or Acked-by.

PatchJiri Olsa
1/52
2/52
3/52
4/52
5/52
6/52
7/52
8/52
9/52
10/52
11/52
12/52
13/52
14/52
15/52
16/52
17/52A-b
18/52
19/52
20/52
21/52
22/52
23/52
24/52
25/52
26/52
27/52
28/52
29/52
30/52
31/52
32/52
33/52
34/52
35/52
36/52
37/52
38/52
39/52
40/52
41/52
42/52
43/52
44/52
45/52
46/52
47/52
48/52
49/52
50/52
51/52
52/52A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/52] perf tools: More preparation for call graph from Intel BTS

Hi

Here is the next selection of patches based on tip/perf/core.

They can also be found here:

http://git.infradead.org/users/ahunter/linux-perf.git/shortlog/refs/heads/for-acme

Adrian Hunter (52):
perf tools: Fix jump label always changing during tracing
perf tools: Identify which comms are from exec
perf tools: Add machine__thread_exec_comm()
perf tools: Fix missing label symbols
perf tools: Add machine__kernel_ip()
perf script: Improve srcline display for BTS
perf script: Do not print dangling '=>' for BTS
perf tools: Fix incorrect fd error comparison
perf tools: Record whether a dso has data
perf tools: Add dso__data_status_seen()
perf tools: Let a user specify a PMU event without any config terms perf tools: Let default config be defined for a PMU
perf tools: Add perf_pmu__scan_file()
perf tools: Add dsos__hit_all()
perf tools: Add cpu to struct thread
perf tools: Add ability to record the current tid for each cpu
perf evlist: Add perf_evlist__set_tracking_event()
perf evlist: Add 'system_wide' option
perf tools: Add id index
perf pmu: Let pmu's with no events show up on perf list
perf session: Add ability to skip 4GiB or more
perf session: Add perf_session__deliver_synth_event()
perf tools: Move rdtsc() function
perf evlist: Add perf_evlist__enable_event_idx()
perf session: Add perf_session__peek_event()
perf tools: Add dso__data_size()
perf tools: Add a thread stack for synthesizing call chains
perf script: Allow callchains if any event samples them
perf inject: Add --kallsyms parameter
perf tools: Expose 'addr' functions so they can be reused
perf tools: Add facility to export data in database-friendly way
perf tools: Add helpers for calling Python objects
perf tools: Extend Python script interface to export data in a database-friendly way perf tools: Add Python script to export to postgresql
perf tools: Add flags and insn_len to struct sample
perf tools: Add branch type to db export
perf tools: Add branch_type and in_tx to Python export
perf tools: Enhance the thread stack to output call/return data
perf tools: Add call information to the database export API
perf tools: Add call information to Python export
perf tools: Add 'flush' callback to scripting API
perf tools: Defer export of comms that were not 'set'
perf tools: Add perf-with-kcore script
perf tools: Pass machine to vdso__dso_findnew()
perf tools: Group VDSO global variables into a structure
perf tools: Fix the lifetime of the VDSO temporary file
perf tools: Add vdso__new()
perf tools: Separate the VDSO map name from the VDSO dso name
perf tools: Build programs to copy 32-bit compatibility VDSOs
perf tools: Add dso__type()
perf tools: Add thread parameter to vdso__dso_findnew()
perf tools: Add support for 32-bit compatibility VDSOs

 tools/perf/.gitignore                              |   1 +
 tools/perf/Documentation/perf-inject.txt           |   3 +
 tools/perf/Makefile.perf                           |  46 +-
 tools/perf/arch/x86/util/tsc.c                     |   9 +
 tools/perf/builtin-inject.c                        |   3 +
 tools/perf/builtin-script.c                        |  89 ++-
 tools/perf/config/Makefile                         |  21 +
 tools/perf/config/Makefile.arch                    |   8 +
 tools/perf/perf-read-vdso.c                        |  59 ++
 tools/perf/perf-with-kcore.sh                      | 259 ++++++++
 .../scripts/python/bin/export-to-postgresql-record |   8 +
 .../scripts/python/bin/export-to-postgresql-report |  29 +
 tools/perf/scripts/python/export-to-postgresql.py  | 444 +++++++++++++
 tools/perf/tests/perf-time-to-tsc.c                |   9 -
 tools/perf/tests/pmu.c                             |   2 +-
 tools/perf/util/cloexec.c                          |   9 +-
 tools/perf/util/comm.c                             |   7 +-
 tools/perf/util/comm.h                             |   7 +-
 tools/perf/util/db-export.c                        | 426 +++++++++++++
 tools/perf/util/db-export.h                        | 107 ++++
 tools/perf/util/dso.c                              |  70 ++-
 tools/perf/util/dso.h                              |  26 +
 tools/perf/util/event.c                            |  49 +-
 tools/perf/util/event.h                            |  53 ++
 tools/perf/util/evlist.c                           | 138 ++++-
 tools/perf/util/evlist.h                           |   5 +
 tools/perf/util/evsel.c                            |  31 +-
 tools/perf/util/evsel.h                            |   5 +
 tools/perf/util/header.c                           |  51 +-
 tools/perf/util/header.h                           |   2 +
 tools/perf/util/machine.c                          | 109 +++-
 tools/perf/util/machine.h                          |  30 +
 tools/perf/util/map.c                              |   9 +-
 tools/perf/util/map.h                              |   5 +-
 tools/perf/util/parse-events.c                     |  13 +-
 tools/perf/util/parse-events.y                     |  10 +
 tools/perf/util/pmu.c                              |  92 ++-
 tools/perf/util/pmu.h                              |  13 +-
 .../perf/util/scripting-engines/trace-event-perl.c |   6 +
 .../util/scripting-engines/trace-event-python.c    | 511 +++++++++++++--
 tools/perf/util/session.c                          | 237 ++++++-
 tools/perf/util/session.h                          |  20 +
 tools/perf/util/symbol-elf.c                       |  37 +-
 tools/perf/util/symbol-minimal.c                   |  21 +
 tools/perf/util/symbol.h                           |   3 +
 tools/perf/util/thread-stack.c                     | 690 +++++++++++++++++++++
 tools/perf/util/thread-stack.h                     |  79 +++
 tools/perf/util/thread.c                           |  28 +-
 tools/perf/util/thread.h                           |  15 +-
 tools/perf/util/tool.h                             |   3 +-
 tools/perf/util/trace-event-scripting.c            |   7 +
 tools/perf/util/trace-event.h                      |   1 +
 tools/perf/util/tsc.c                              |   5 +
 tools/perf/util/tsc.h                              |   1 +
 tools/perf/util/vdso.c                             | 264 +++++++-
 tools/perf/util/vdso.h                             |  15 +-
 56 files changed, 3961 insertions(+), 239 deletions(-)
 create mode 100644 tools/perf/perf-read-vdso.c
 create mode 100644 tools/perf/perf-with-kcore.sh
 create mode 100644 tools/perf/scripts/python/bin/export-to-postgresql-record
 create mode 100644 tools/perf/scripts/python/bin/export-to-postgresql-report
 create mode 100644 tools/perf/scripts/python/export-to-postgresql.py
 create mode 100644 tools/perf/util/db-export.c
 create mode 100644 tools/perf/util/db-export.h
 create mode 100644 tools/perf/util/thread-stack.c
 create mode 100644 tools/perf/util/thread-stack.h

Regards
Adrian