diff options
author | Jiri Olsa <jolsa@kernel.org> | 2019-10-07 14:53:23 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-10-10 12:20:08 -0300 |
commit | 1fcbb75cc574072ab457dbbaa74fc7064b691e86 (patch) | |
tree | 36b9d12e5664028ef85b2e111ccb7c2b3f792273 /tools/perf/lib/include/internal | |
parent | 0b5ea10d4c312f5b17af9d09187efb9418517bec (diff) | |
download | linux-stable-1fcbb75cc574072ab457dbbaa74fc7064b691e86.tar.gz linux-stable-1fcbb75cc574072ab457dbbaa74fc7064b691e86.tar.bz2 linux-stable-1fcbb75cc574072ab457dbbaa74fc7064b691e86.zip |
libperf: Introduce perf_evlist_mmap_ops::idx callback
Add the perf_evlist_mmap_ops::idx callback to be called in
mmap_per_cpu() and mmap_per_thread() with current cpu and thread
indexes.
It's used by current aux code, so perf will use this callback to set the
aux index.
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Michael Petlan <mpetlan@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lore.kernel.org/lkml/20191007125344.14268-16-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/lib/include/internal')
-rw-r--r-- | tools/perf/lib/include/internal/evlist.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/perf/lib/include/internal/evlist.h b/tools/perf/lib/include/internal/evlist.h index e5f092ff6202..053f620696f3 100644 --- a/tools/perf/lib/include/internal/evlist.h +++ b/tools/perf/lib/include/internal/evlist.h @@ -27,7 +27,11 @@ struct perf_evlist { struct perf_mmap *mmap_ovw; }; +typedef void +(*perf_evlist_mmap__cb_idx_t)(struct perf_evlist*, struct perf_mmap_param*, int, bool); + struct perf_evlist_mmap_ops { + perf_evlist_mmap__cb_idx_t idx; }; int perf_evlist__alloc_pollfd(struct perf_evlist *evlist); |