Skip to content

perf tools: 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 Latest41 patches 47 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/41perf tools: Fix the value used for unknown pidstools/perf/builtin-sched.c tools/perf/util/machine.c tools/perf/util/session.c +1 more+13 -120 replies
2/41perf tools: Fix map groups of threads with unknown pidstools/perf/util/machine.c tools/perf/util/map.c tools/perf/util/map.h +2 more+67 -64 replies
3/41perf script: Display PERF_RECORD_MISC_COMM_EXEC flagtools/perf/util/event.c tools/perf/util/evsel.c+10 -20 replies
4/41perf record: Select comm_exec flag if supportedtools/perf/util/record.c+17 -10 replies
5/41perf tools: Identify which comms are from exectools/perf/util/comm.c tools/perf/util/comm.h tools/perf/util/machine.c +2 more+40 -116 replies
6/41perf tools: Add machine__thread_exec_comm()tools/perf/util/machine.c tools/perf/util/machine.h tools/perf/util/session.c+53 -10 replies
7/41perf tools: Fix missing kernel map loadtools/perf/util/event.c+1 -00 replies
8/41perf tools: Fix missing label symbolstools/perf/util/symbol-elf.c+1 -12 replies
9/41perf tools: Fix missing GNU IFUNC symbolstools/perf/util/symbol-elf.c+2 -10 replies
10/41perf inject: Fix build id injectiontools/perf/builtin-inject.c+3 -00 replies
11/41perf tools: Fix appending a callchain from a previous sampletools/perf/util/callchain.c+1 -10 replies
12/41perf tools: Fix leak of 'struct thread' on error pathtools/perf/util/machine.c tools/perf/util/thread.c+7 -36 replies
13/41perf tools: Add machine__kernel_ip()tools/perf/util/event.c tools/perf/util/machine.c tools/perf/util/machine.h+43 -37 replies
14/41perf buildid-cache: Apply force option to copying kcoretools/perf/builtin-buildid-cache.c+5 -30 replies
15/41perf script: Improve srcline display for BTStools/perf/builtin-script.c+15 -53 replies
16/41perf script: Do not print dangling '=>' for BTStools/perf/builtin-script.c+3 -30 replies
17/41perf tools: Record whether a dso is 64-bittools/perf/util/dso.c tools/perf/util/dso.h tools/perf/util/symbol-elf.c +3 more+29 -00 replies
18/41perf tools: Record whether a dso has datatools/perf/util/dso.c tools/perf/util/dso.h+5 -18 replies
19/41perf tools: Do not attempt to read data from kallsymstools/perf/util/symbol.c+2 -00 replies
20/41perf tools: Let a user specify a PMU event without any config termstools/perf/util/parse-events.c tools/perf/util/parse-events.y+16 -011 replies
21/41perf 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
22/41perf tools: Add perf_pmu__scan_file()tools/perf/util/pmu.c tools/perf/util/pmu.h+40 -00 replies
23/41perf tools: Add dsos__hit_all()tools/perf/util/header.c tools/perf/util/header.h+43 -00 replies
24/41perf tools: Add cpu to struct threadtools/perf/util/thread.c tools/perf/util/thread.h+2 -02 replies
25/41perf tools: Add ability to record the current tid for each cputools/perf/util/machine.c tools/perf/util/machine.h+51 -00 replies
26/41perf tools: Add ability to iterate over a dso's symbolstools/perf/util/symbol.c tools/perf/util/symbol.h+19 -10 replies
27/41perf session: Flag if the event stream is entirely in memorytools/perf/util/session.c tools/perf/util/session.h+11 -10 replies
28/41perf evlist: Pass mmap parameters in a structtools/perf/util/evlist.c+26 -200 replies
29/41perf tools: Add feature test for __sync_val_compare_and_swaptools/perf/config/Makefile tools/perf/config/feature-checks/Makefile tools/perf/config/feature-checks/test-all.c +1 more+29 -00 replies
30/41perf tools: Add option macro OPT_CALLBACK_OPTARGtools/perf/util/parse-options.h+5 -00 replies
31/41perf evlist: Add perf_evlist__set_tracking_event()tools/perf/util/evlist.c tools/perf/util/evlist.h+23 -00 replies
32/41perf evsel: Add 'no_aux_samples' optiontools/perf/util/evsel.c tools/perf/util/evsel.h+4 -30 replies
33/41perf evsel: Add 'immediate' optiontools/perf/util/evsel.c tools/perf/util/evsel.h+6 -00 replies
34/41perf evlist: Add 'system_wide' optiontools/perf/util/evlist.c tools/perf/util/evsel.c tools/perf/util/evsel.h+64 -134 replies
35/41perf tools: Add id indextools/perf/builtin-inject.c tools/perf/util/event.c tools/perf/util/event.h +5 more+177 -40 replies
36/41perf pmu: Let pmu's with no events show up on perf listtools/perf/util/pmu.c tools/perf/util/pmu.h+12 -20 replies
37/41perf session: Add ability to skip 4GiB or moretools/perf/util/session.c+13 -70 replies
38/41perf session: Add perf_session__deliver_synth_event()tools/perf/util/session.c tools/perf/util/session.h+19 -02 replies
39/41perf tools: Allow TSC conversion on any archtools/perf/Makefile.perf tools/perf/arch/x86/util/tsc.c tools/perf/arch/x86/util/tsc.h +3 more+40 -263 replies
40/41perf 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
41/41perf evlist: Add perf_evlist__enable_event_idx()tools/perf/util/evlist.c tools/perf/util/evlist.h+49 -00 replies

Reviews trailers per patch

1 of 41 patches has a Reviewed-by or Acked-by.

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

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/41] perf tools: Preparation for call graph from Intel BTS

Hi

As we discussed here:

	http://marc.info/?l=linux-kernel&m=140509286032125&w=4

here are a 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 (41):
perf tools: Fix the value used for unknown pids
perf tools: Fix map groups of threads with unknown pids perf script: Display PERF_RECORD_MISC_COMM_EXEC flag perf record: Select comm_exec flag if supported
perf tools: Identify which comms are from exec
perf tools: Add machine__thread_exec_comm()
perf tools: Fix missing kernel map load
perf tools: Fix missing label symbols
perf tools: Fix missing GNU IFUNC symbols
perf inject: Fix build id injection
perf tools: Fix appending a callchain from a previous sample perf tools: Fix leak of 'struct thread' on error path perf tools: Add machine__kernel_ip()
perf buildid-cache: Apply force option to copying kcore perf script: Improve srcline display for BTS
perf script: Do not print dangling '=>' for BTS
perf tools: Record whether a dso is 64-bit
perf tools: Record whether a dso has data
perf tools: Do not attempt to read data from kallsyms 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 tools: Add ability to iterate over a dso's symbols perf session: Flag if the event stream is entirely in memory perf evlist: Pass mmap parameters in a struct
perf tools: Add feature test for __sync_val_compare_and_swap perf tools: Add option macro OPT_CALLBACK_OPTARG
perf evlist: Add perf_evlist__set_tracking_event()
perf evsel: Add 'no_aux_samples' option
perf evsel: Add 'immediate' option
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: Allow TSC conversion on any arch
perf tools: Move rdtsc() function
perf evlist: Add perf_evlist__enable_event_idx()

 tools/perf/Makefile.perf                           |   2 +
 tools/perf/arch/x86/util/tsc.c                     |  31 ++--
 tools/perf/arch/x86/util/tsc.h                     |   3 -
 tools/perf/builtin-buildid-cache.c                 |   8 +-
 tools/perf/builtin-inject.c                        |   4 +
 tools/perf/builtin-sched.c                         |  12 +-
 tools/perf/builtin-script.c                        |  26 ++-
 tools/perf/config/Makefile                         |   6 +
 tools/perf/config/feature-checks/Makefile          |   4 +
 tools/perf/config/feature-checks/test-all.c        |   5 +
 .../feature-checks/test-sync-compare-and-swap.c    |  14 ++
 tools/perf/tests/perf-time-to-tsc.c                |  12 +-
 tools/perf/tests/pmu.c                             |   2 +-
 tools/perf/util/callchain.c                        |   2 +-
 tools/perf/util/comm.c                             |   7 +-
 tools/perf/util/comm.h                             |   6 +-
 tools/perf/util/dso.c                              |   6 +-
 tools/perf/util/dso.h                              |   2 +
 tools/perf/util/event.c                            |  17 +-
 tools/perf/util/event.h                            |  15 ++
 tools/perf/util/evlist.c                           | 184 +++++++++++++++----
 tools/perf/util/evlist.h                           |   5 +
 tools/perf/util/evsel.c                            |  45 ++++-
 tools/perf/util/evsel.h                            |   6 +
 tools/perf/util/header.c                           |  41 +++++
 tools/perf/util/header.h                           |   2 +
 tools/perf/util/machine.c                          | 127 +++++++++++++-
 tools/perf/util/machine.h                          |  26 +++
 tools/perf/util/map.c                              |  14 ++
 tools/perf/util/map.h                              |   1 +
 tools/perf/util/parse-events.c                     |  13 +-
 tools/perf/util/parse-events.y                     |  10 ++
 tools/perf/util/parse-options.h                    |   5 +
 tools/perf/util/pmu.c                              |  92 ++++++++--
 tools/perf/util/pmu.h                              |  13 +-
 tools/perf/util/record.c                           |  18 +-
 tools/perf/util/session.c                          | 194 +++++++++++++++++++--
 tools/perf/util/session.h                          |  18 ++
 tools/perf/util/symbol-elf.c                       |   8 +-
 tools/perf/util/symbol-minimal.c                   |  22 +++
 tools/perf/util/symbol.c                           |  20 ++-
 tools/perf/util/symbol.h                           |   4 +
 tools/perf/util/thread.c                           |  68 +++++++-
 tools/perf/util/thread.h                           |  12 +-
 tools/perf/util/tool.h                             |   3 +-
 tools/perf/util/tsc.c                              |  30 ++++
 tools/perf/util/tsc.h                              |  12 ++
 47 files changed, 1020 insertions(+), 157 deletions(-)
 create mode 100644 tools/perf/config/feature-checks/test-sync-compare-and-swap.c
 create mode 100644 tools/perf/util/tsc.c
 create mode 100644 tools/perf/util/tsc.h

Regards
Adrian