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)
commit37be585807cb9a810f8395c39c4ee7bdbdc7b0dc
tree4cef1343ee394264a1190bbb9b6d7b6b4e84fd4b
parentd3e2bb4359f70c8b1d09a6f8e2f57240aab0da3f
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