diff options
| author | Arnaldo Carvalho de Melo <[email protected]> | 2019-08-21 19:39:29 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2019-08-22 20:16:57 +0000 |
| commit | f7004f5990e230710112b89f2f11777e5e64e258 (patch) | |
| tree | 6f3903a9ace91e5454af313bbaa3ee5b88a6b651 /tools/perf/util/scripting-engines/trace-event-python.c | |
| parent | perf x86 kvm-stat: Add missing string.h header (diff) | |
| download | kernel-f7004f5990e230710112b89f2f11777e5e64e258.tar.gz kernel-f7004f5990e230710112b89f2f11777e5e64e258.zip | |
perf evsel: Switch to libperf's cpumap.h
We don't need what is in perf's util/cpumap.h, just the struct cpu_map
that is in libperf's internal/cpumap.h file to cover this one case:
tools/perf/util/evsel.h:215:27: error: dereferencing pointer to incomplete type ‘struct perf_cpu_map’
215 | return evsel__cpus(evsel)->nr;
So switch to libperf's cpumap.h and add some missing struct foward
declarations and include sys/types.h to get pid_t.
Cc: Adrian Hunter <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Namhyung Kim <[email protected]>
Link: https://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions
