Re: [PATCH] perf script: Add option to display guest samples in host

2017-10-23 Thread zhangmengting
Hi all, For sched_switch tracepoint, I guess maybe it would be more reasonable to show guest samples together with host samples by default, instead of setting an option to display guest samples when we meet with this confused situation. To take care of this issue, the code should be changed

Re: [PATCH] perf script: Add option to display guest samples in host

2017-10-23 Thread zhangmengting
Hi all, For sched_switch tracepoint, I guess maybe it would be more reasonable to show guest samples together with host samples by default, instead of setting an option to display guest samples when we meet with this confused situation. To take care of this issue, the code should be changed

Re: [PATCH] perf script: Add option to display guest samples in host

2017-10-18 Thread David Ahern
On 10/18/17 1:09 AM, Mengting Zhang wrote: > @@ -2771,6 +2772,8 @@ int cmd_script(int argc, const char **argv) > "Show context switch events (if recorded)"), > OPT_BOOLEAN('\0', "show-namespace-events", > _namespace_events, > "Show namespace events (if

Re: [PATCH] perf script: Add option to display guest samples in host

2017-10-18 Thread David Ahern
On 10/18/17 1:09 AM, Mengting Zhang wrote: > @@ -2771,6 +2772,8 @@ int cmd_script(int argc, const char **argv) > "Show context switch events (if recorded)"), > OPT_BOOLEAN('\0', "show-namespace-events", > _namespace_events, > "Show namespace events (if

[PATCH] perf script: Add option to display guest samples in host

2017-10-18 Thread Mengting Zhang
By default, 'perf script' always exclude guest samples in host. However, for some tracepoint events(e.g. sched_switch), the tracing output lost sched_out samples for vcpu thread if 'perf script' filter guest samples, which is confusing. Therefore, it'd be better to display guest samples together

[PATCH] perf script: Add option to display guest samples in host

2017-10-18 Thread Mengting Zhang
By default, 'perf script' always exclude guest samples in host. However, for some tracepoint events(e.g. sched_switch), the tracing output lost sched_out samples for vcpu thread if 'perf script' filter guest samples, which is confusing. Therefore, it'd be better to display guest samples together