OSDN Git Service

libperf: Introduce perf_evlist_mmap_ops::idx callback
authorJiri Olsa <jolsa@kernel.org>
Mon, 7 Oct 2019 12:53:23 +0000 (14:53 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 10 Oct 2019 15:20:08 +0000 (12:20 -0300)
commit1fcbb75cc574072ab457dbbaa74fc7064b691e86
tree36b9d12e5664028ef85b2e111ccb7c2b3f792273
parent0b5ea10d4c312f5b17af9d09187efb9418517bec
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>
tools/perf/lib/evlist.c
tools/perf/lib/include/internal/evlist.h