]> 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)
commitfb909a7f4cea48dd18aba71b8cc9be0f03c227d8
tree4cef1343ee394264a1190bbb9b6d7b6b4e84fd4b
parented0d064ce624891b0c3f96c1406ced2194d3485b
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