From: Arnaldo Carvalho de Melo Date: Wed, 21 Aug 2019 19:39:29 +0000 (-0300) Subject: perf evsel: Switch to libperf's cpumap.h X-Git-Tag: Ubuntu-5.13.0-19.19~7727^2~16^2~4 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=f7004f5990e230710112b89f2f11777e5e64e258;p=mirror_ubuntu-jammy-kernel.git 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 Cc: Jiri Olsa Cc: Namhyung Kim Link: https://lkml.kernel.org/n/tip-ufjkpohijti05ggk69s91ktf@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- diff --git a/tools/perf/util/evsel.h b/tools/perf/util/evsel.h index cd336cf2eaa9..5a351cae66df 100644 --- a/tools/perf/util/evsel.h +++ b/tools/perf/util/evsel.h @@ -5,14 +5,17 @@ #include #include #include +#include #include #include #include #include #include "symbol_conf.h" -#include "cpumap.h" +#include +struct addr_location; struct evsel; +union perf_event; /* * Per fd, to map back from PERF_SAMPLE_ID to evsel, only used when there are