]> asedeno.scripts.mit.edu Git - linux.git/commit
libperf: Add perf_cpu_map struct
authorJiri Olsa <jolsa@kernel.org>
Sun, 21 Jul 2019 11:24:15 +0000 (13:24 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 29 Jul 2019 21:34:44 +0000 (18:34 -0300)
commit959b83c769389b24d64759f60e64c4c62620ff02
treec09e4d141e66c8854585c102b87abae70f0606b4
parenta1556f8479ed58b8d5a33aef54578bad0165c7e7
libperf: Add perf_cpu_map struct

Add perf_cpu_map struct to libperf.

It's added as a declaration into:

  include/perf/cpumap.h

which will be included by users.

The perf_cpu_map struct definition is added into:

  include/internal/cpumap.h

which is not to be included by users, but shared within perf and
libperf.

We tried the total separation of the perf_cpu_map struct in libperf, but
it lead to complications and much bigger changes in perf code, so we
decided to share the declaration.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Alexey Budankov <alexey.budankov@linux.intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Michael Petlan <mpetlan@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20190721112506.12306-29-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/lib/Build
tools/perf/lib/cpumap.c [new file with mode: 0644]
tools/perf/lib/include/internal/cpumap.h [new file with mode: 0644]
tools/perf/lib/include/perf/cpumap.h [new file with mode: 0644]
tools/perf/util/cpumap.h