]> git.baikalelectronics.ru Git - kernel.git/commit
perf stat: Support --all-kernel/--all-user
authorJin Yao <yao.jin@linux.intel.com>
Fri, 11 Oct 2019 05:05:45 +0000 (13:05 +0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 15 Oct 2019 11:39:42 +0000 (08:39 -0300)
commitafff76075d38b5e84a211c693eb2dcd57e76cfbd
treefd0ddc932acbfe49c895b2c86810a38ab9d894fa
parent8441bdb4caefa23a622ef4124a98db3ef40714f2
perf stat: Support --all-kernel/--all-user

'perf record' has supported --all-kernel / --all-user to configure all
used events to run in kernel space or run in user space. But 'perf stat'
doesn't support these options.

It would be useful to support these options in 'perf stat' too to keep
the same semantics available in both tools.

Signed-off-by: Jin Yao <yao.jin@linux.intel.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lore.kernel.org/lkml/20191011050545.3899-1-yao.jin@linux.intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/Documentation/perf-stat.txt
tools/perf/builtin-stat.c
tools/perf/util/stat.c
tools/perf/util/stat.h