Re: [PATCH v8 bpf-next 6/9] bpf: introduce BPF_RAW_TRACEPOINT

2018-03-28 Thread Mathieu Desnoyers
- On Mar 28, 2018, at 3:40 PM, rostedt rost...@goodmis.org wrote: > On Wed, 28 Mar 2018 12:38:48 -0700 > Alexei Starovoitov wrote: > >> On 3/28/18 12:34 PM, Steven Rostedt wrote: >> > On Wed, 28 Mar 2018 12:05:37 -0700 >> > Alexei Starovoitov wrote: >> > >> >> +++ b/include/linux/tracepoi

Re: [PATCH v8 bpf-next 6/9] bpf: introduce BPF_RAW_TRACEPOINT

2018-03-28 Thread Steven Rostedt
On Wed, 28 Mar 2018 12:38:48 -0700 Alexei Starovoitov wrote: > On 3/28/18 12:34 PM, Steven Rostedt wrote: > > On Wed, 28 Mar 2018 12:05:37 -0700 > > Alexei Starovoitov wrote: > > > >> +++ b/include/linux/tracepoint-defs.h > >> @@ -35,4 +35,10 @@ struct tracepoint { > >>struct tracepoint_fu

Re: [PATCH v8 bpf-next 6/9] bpf: introduce BPF_RAW_TRACEPOINT

2018-03-28 Thread Alexei Starovoitov
On 3/28/18 12:34 PM, Steven Rostedt wrote: On Wed, 28 Mar 2018 12:05:37 -0700 Alexei Starovoitov wrote: +++ b/include/linux/tracepoint-defs.h @@ -35,4 +35,10 @@ struct tracepoint { struct tracepoint_func __rcu *funcs; }; +struct bpf_raw_event_map { + struct tracepoint *tp

Re: [PATCH v8 bpf-next 6/9] bpf: introduce BPF_RAW_TRACEPOINT

2018-03-28 Thread Steven Rostedt
On Wed, 28 Mar 2018 12:05:37 -0700 Alexei Starovoitov wrote: > +++ b/include/linux/tracepoint-defs.h > @@ -35,4 +35,10 @@ struct tracepoint { > struct tracepoint_func __rcu *funcs; > }; > > +struct bpf_raw_event_map { > + struct tracepoint *tp; > + void*

[PATCH v8 bpf-next 6/9] bpf: introduce BPF_RAW_TRACEPOINT

2018-03-28 Thread Alexei Starovoitov
Introduce BPF_PROG_TYPE_RAW_TRACEPOINT bpf program type to access kernel internal arguments of the tracepoints in their raw form. >From bpf program point of view the access to the arguments look like: struct bpf_raw_tracepoint_args { __u64 args[0]; }; int bpf_prog(struct bpf_raw_tracepoint