Re: [PATCH 04/31] perf record, bpf: Create probe points for BPF programs

2015-10-22 Thread Arnaldo Carvalho de Melo
Em Wed, Oct 21, 2015 at 10:28:03AM -0300, Arnaldo Carvalho de Melo escreveu: > Em Wed, Oct 21, 2015 at 11:31:57AM +0800, Wangnan (F) escreveu: > > >bpf: config program 'do_fork' > > >symbol:do_fork file:(null) line:0 offset:0 return:0 lazy:(null) > > >bpf: 'do_fork': event name is missing > > > >

Re: [PATCH 04/31] perf record, bpf: Create probe points for BPF programs

2015-10-22 Thread Arnaldo Carvalho de Melo
Em Wed, Oct 21, 2015 at 10:28:03AM -0300, Arnaldo Carvalho de Melo escreveu: > Em Wed, Oct 21, 2015 at 11:31:57AM +0800, Wangnan (F) escreveu: > > >bpf: config program 'do_fork' > > >symbol:do_fork file:(null) line:0 offset:0 return:0 lazy:(null) > > >bpf: 'do_fork': event name is missing > > > >

Re: [PATCH 04/31] perf record, bpf: Create probe points for BPF programs

2015-10-21 Thread Arnaldo Carvalho de Melo
Em Wed, Oct 21, 2015 at 11:31:57AM +0800, Wangnan (F) escreveu: > > > On 2015/10/21 3:12, Arnaldo Carvalho de Melo wrote: > >Em Wed, Oct 14, 2015 at 12:41:15PM +, Wang Nan escreveu: > >>This patch introduces bpf__{un,}probe() functions to enable callers to > >>create kprobe points based on

Re: [PATCH 04/31] perf record, bpf: Create probe points for BPF programs

2015-10-21 Thread Arnaldo Carvalho de Melo
Em Wed, Oct 21, 2015 at 11:31:57AM +0800, Wangnan (F) escreveu: > > > On 2015/10/21 3:12, Arnaldo Carvalho de Melo wrote: > >Em Wed, Oct 14, 2015 at 12:41:15PM +, Wang Nan escreveu: > >>This patch introduces bpf__{un,}probe() functions to enable callers to > >>create kprobe points based on

Re: [PATCH 04/31] perf record, bpf: Create probe points for BPF programs

2015-10-20 Thread Wangnan (F)
On 2015/10/21 3:12, Arnaldo Carvalho de Melo wrote: Em Wed, Oct 14, 2015 at 12:41:15PM +, Wang Nan escreveu: This patch introduces bpf__{un,}probe() functions to enable callers to create kprobe points based on section names a BPF program. It parses the section names in the program and

Re: [PATCH 04/31] perf record, bpf: Create probe points for BPF programs

2015-10-20 Thread Wangnan (F)
On 2015/10/21 3:12, Arnaldo Carvalho de Melo wrote: Em Wed, Oct 14, 2015 at 12:41:15PM +, Wang Nan escreveu: This patch introduces bpf__{un,}probe() functions to enable callers to create kprobe points based on section names a BPF program. It parses the section names in the program and

Re: [PATCH 04/31] perf record, bpf: Create probe points for BPF programs

2015-10-20 Thread Arnaldo Carvalho de Melo
Em Tue, Oct 20, 2015 at 04:12:14PM -0300, Arnaldo Carvalho de Melo escreveu: > Em Wed, Oct 14, 2015 at 12:41:15PM +, Wang Nan escreveu: > > This patch introduces bpf__{un,}probe() functions to enable callers to > > create kprobe points based on section names a BPF program. It parses > > the

Re: [PATCH 04/31] perf record, bpf: Create probe points for BPF programs

2015-10-20 Thread Arnaldo Carvalho de Melo
Em Tue, Oct 20, 2015 at 01:16:04PM -0600, David Ahern escreveu: > On 10/20/15 1:12 PM, Arnaldo Carvalho de Melo wrote: > >I.e. no libbpf error (good!) but then, just an -EINVAL as the "event syntax > >error", which clearly isn't a syntax error, we need to tell the user that he > >or she > >needs

Re: [PATCH 04/31] perf record, bpf: Create probe points for BPF programs

2015-10-20 Thread David Ahern
On 10/20/15 1:12 PM, Arnaldo Carvalho de Melo wrote: I.e. no libbpf error (good!) but then, just an -EINVAL as the "event syntax error", which clearly isn't a syntax error, we need to tell the user that he or she needs special perfmissions for using sys_bpf():-) perfmissions? Are you coining

Re: [PATCH 04/31] perf record, bpf: Create probe points for BPF programs

2015-10-20 Thread Arnaldo Carvalho de Melo
Em Wed, Oct 14, 2015 at 12:41:15PM +, Wang Nan escreveu: > This patch introduces bpf__{un,}probe() functions to enable callers to > create kprobe points based on section names a BPF program. It parses > the section names in the program and creates corresponding 'struct > perf_probe_event'

Re: [PATCH 04/31] perf record, bpf: Create probe points for BPF programs

2015-10-20 Thread Arnaldo Carvalho de Melo
Em Tue, Oct 20, 2015 at 01:16:04PM -0600, David Ahern escreveu: > On 10/20/15 1:12 PM, Arnaldo Carvalho de Melo wrote: > >I.e. no libbpf error (good!) but then, just an -EINVAL as the "event syntax > >error", which clearly isn't a syntax error, we need to tell the user that he > >or she > >needs

Re: [PATCH 04/31] perf record, bpf: Create probe points for BPF programs

2015-10-20 Thread Arnaldo Carvalho de Melo
Em Wed, Oct 14, 2015 at 12:41:15PM +, Wang Nan escreveu: > This patch introduces bpf__{un,}probe() functions to enable callers to > create kprobe points based on section names a BPF program. It parses > the section names in the program and creates corresponding 'struct > perf_probe_event'

Re: [PATCH 04/31] perf record, bpf: Create probe points for BPF programs

2015-10-20 Thread David Ahern
On 10/20/15 1:12 PM, Arnaldo Carvalho de Melo wrote: I.e. no libbpf error (good!) but then, just an -EINVAL as the "event syntax error", which clearly isn't a syntax error, we need to tell the user that he or she needs special perfmissions for using sys_bpf():-) perfmissions? Are you coining

Re: [PATCH 04/31] perf record, bpf: Create probe points for BPF programs

2015-10-20 Thread Arnaldo Carvalho de Melo
Em Tue, Oct 20, 2015 at 04:12:14PM -0300, Arnaldo Carvalho de Melo escreveu: > Em Wed, Oct 14, 2015 at 12:41:15PM +, Wang Nan escreveu: > > This patch introduces bpf__{un,}probe() functions to enable callers to > > create kprobe points based on section names a BPF program. It parses > > the

Re: [PATCH 04/31] perf record, bpf: Create probe points for BPF programs

2015-10-20 Thread Wangnan (F)
On 2015/10/21 3:12, Arnaldo Carvalho de Melo wrote: Em Wed, Oct 14, 2015 at 12:41:15PM +, Wang Nan escreveu: This patch introduces bpf__{un,}probe() functions to enable callers to create kprobe points based on section names a BPF program. It parses the section names in the program and

Re: [PATCH 04/31] perf record, bpf: Create probe points for BPF programs

2015-10-20 Thread Wangnan (F)
On 2015/10/21 3:12, Arnaldo Carvalho de Melo wrote: Em Wed, Oct 14, 2015 at 12:41:15PM +, Wang Nan escreveu: This patch introduces bpf__{un,}probe() functions to enable callers to create kprobe points based on section names a BPF program. It parses the section names in the program and

[PATCH 04/31] perf record, bpf: Create probe points for BPF programs

2015-10-14 Thread Wang Nan
This patch introduces bpf__{un,}probe() functions to enable callers to create kprobe points based on section names a BPF program. It parses the section names in the program and creates corresponding 'struct perf_probe_event' structures. The parse_perf_probe_command() function is used to do the

[PATCH 04/31] perf record, bpf: Create probe points for BPF programs

2015-10-14 Thread Wang Nan
This patch introduces bpf__{un,}probe() functions to enable callers to create kprobe points based on section names a BPF program. It parses the section names in the program and creates corresponding 'struct perf_probe_event' structures. The parse_perf_probe_command() function is used to do the