diff options
| author | Namhyung Kim <[email protected]> | 2021-08-30 17:02:00 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2021-08-30 21:22:23 +0000 |
| commit | 1c02f6c9043e9a6f359278cc2f17b4283ac0bd67 (patch) | |
| tree | 48155858a50738238d3935e93d8c474f5ba23132 /tools/perf/util/annotate.c | |
| parent | perf bench evlist-open-close: Use PRIu64 with u64 to fix build on 32-bit arch... (diff) | |
| download | kernel-1c02f6c9043e9a6f359278cc2f17b4283ac0bd67.tar.gz kernel-1c02f6c9043e9a6f359278cc2f17b4283ac0bd67.zip | |
perf stat: Do not allow --for-each-cgroup without cpu
The cgroup mode should work with cpu events. Warn if --for-each-cgroup
option is used with a task target like existing -G option.
# perf stat --for-each-cgroup . sleep 1
both cgroup and no-aggregation modes only available in system-wide mode
Usage: perf stat [<options>] [<command>]
-G, --cgroup <name> monitor event in cgroup name only
-A, --no-aggr disable CPU count aggregation
-a, --all-cpus system-wide collection from all CPUs
--for-each-cgroup <name>
expand events for each cgroup
Signed-off-by: Namhyung Kim <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: Ian Rogers <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lore.kernel.org/lkml/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/annotate.c')
0 files changed, 0 insertions, 0 deletions
