]> git.baikalelectronics.ru Git - kernel.git/commit
perf cpumap: Add is_dummy() method
authorArnaldo Carvalho de Melo <acme@redhat.com>
Sat, 15 Jan 2022 20:11:10 +0000 (17:11 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Sat, 15 Jan 2022 20:41:25 +0000 (17:41 -0300)
commit9666de8a5ec730b0909a2c0ff33a0d499e6be2b6
tree4cef1343ee394264a1190bbb9b6d7b6b4e84fd4b
parent58798f1c2d06800d3827c40cf45dc37c5ff3501a
perf cpumap: Add is_dummy() method

Needed to check if a cpu_map is dummy, i.e. not a cpu map at all, for
pid monitoring scenarios.

This probably needs to move to libperf, but since perf itself is the
first and so far only user, leave it at tools/perf/util/.

Acked-by: Andi Kleen <andi@firstfloor.org>
Acked-by: Ian Rogers <irogers@google.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/cpumap.h