mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* About perf tool set exclude_guest = 1 on guest environment
@ 2022-01-18  4:05 Eric Lin
  2022-01-19  5:01 ` Namhyung Kim
  0 siblings, 1 reply; 5+ messages in thread
From: Eric Lin @ 2022-01-18  4:05 UTC (permalink / raw)
  To: linux-kernel, namhyung, jolsa, alexander.shishkin, mark.rutland,
	acme, mingo, peterz, yao.jin
  Cc: Greentime Hu, Paul Walmsley, Vincent Chen

Hi all,

Currently, I run the perf command 'perf record -e branches:u ls'  and
'perf record -e branches ls'. It will set exclude_guest = 1 as below:

# perf record -e branches:u ls
# perf evlist -v
branches:u: .., exclude_kernel: 1, exclude_hv: 1,, exclude_guest: 1, ..

# perf record -e branches ls
# perf evlist -v
branches: ..., exclude_guest: 1, ...

As I understand it, set exclude_guest =1 will not include guest counting.
May I ask if I run the above commands as a guest user, should the
architecture implementation ignore this exclude_guest flags and still
make perf can count guest events in Linux kernel?

Best regards,
Eric Lin

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-02-18  2:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-18  4:05 About perf tool set exclude_guest = 1 on guest environment Eric Lin
2022-01-19  5:01 ` Namhyung Kim
2022-01-20 13:35   ` Eric Lin
2022-01-20 15:47     ` Arnaldo Carvalho de Melo
2022-02-18  2:31       ` Eric Lin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome