Re: [PATCH] perf record: Add support to collect callchains from kernel or user space only.

2019-06-10 Thread 禹舟键
Hi Arnaldo, Jirka > perf_event_attr.exclude_callchain_kernel to 0 I don't think we should set 0 for the desired callchins, because we will set exclude_callchain_user to 1 if perf_evsel is function event. void perf_evsel__config(struct perf_evsel *evsel, struct record_opts *opts, struct callcha

Re: [PATCH] perf record: Add support to collect callchains from kernel or user space only.

2019-06-06 Thread Arnaldo Carvalho de Melo
Em Thu, Jun 06, 2019 at 04:46:14PM +0200, Jiri Olsa escreveu: > On Thu, Jun 06, 2019 at 11:26:44AM -0300, Arnaldo Carvalho de Melo wrote: > > So that the user don't try using: > > pref record --user-callchains --kernel-callchains > > expecting to get both user and kernel callchains and instea

Re: [PATCH] perf record: Add support to collect callchains from kernel or user space only.

2019-06-06 Thread Jiri Olsa
On Thu, Jun 06, 2019 at 11:26:44AM -0300, Arnaldo Carvalho de Melo wrote: > Em Thu, May 30, 2019 at 02:29:22PM +0100, ufo19890607 escreveu: > > From: yuzhoujian > > > > One can just record callchains in the kernel or user space with > > this new options. We can use it together with "--all-kernel"

Re: [PATCH] perf record: Add support to collect callchains from kernel or user space only.

2019-06-06 Thread Arnaldo Carvalho de Melo
Em Thu, Jun 06, 2019 at 11:26:44AM -0300, Arnaldo Carvalho de Melo escreveu: > Em Thu, May 30, 2019 at 02:29:22PM +0100, ufo19890607 escreveu: > > From: yuzhoujian > > > > One can just record callchains in the kernel or user space with > > this new options. We can use it together with "--all-kern

Re: [PATCH] perf record: Add support to collect callchains from kernel or user space only.

2019-06-06 Thread Arnaldo Carvalho de Melo
Em Thu, May 30, 2019 at 02:29:22PM +0100, ufo19890607 escreveu: > From: yuzhoujian > > One can just record callchains in the kernel or user space with > this new options. We can use it together with "--all-kernel" options. > This two options is used just like print_stack(sys) or print_ustack(usr)

Re: [PATCH] perf record: Add support to collect callchains from kernel or user space only.

2019-06-06 Thread Jiri Olsa
On Thu, May 30, 2019 at 02:29:22PM +0100, ufo19890607 wrote: > From: yuzhoujian > > One can just record callchains in the kernel or user space with > this new options. We can use it together with "--all-kernel" options. > This two options is used just like print_stack(sys) or print_ustack(usr) >

Re: [PATCH] perf record: Add support to collect callchains from kernel or user space only.

2019-06-05 Thread 禹舟键
PING ufo19890607 于2019年5月30日周四 下午9:29写道: > > From: yuzhoujian > > One can just record callchains in the kernel or user space with > this new options. We can use it together with "--all-kernel" options. > This two options is used just like print_stack(sys) or print_ustack(usr) > for systemtap. >

[PATCH] perf record: Add support to collect callchains from kernel or user space only.

2019-05-30 Thread ufo19890607
From: yuzhoujian One can just record callchains in the kernel or user space with this new options. We can use it together with "--all-kernel" options. This two options is used just like print_stack(sys) or print_ustack(usr) for systemtap. Show below is the usage of this new option combined with