Re: Re: Re: [PATCH tip 0/9] tracing: attach eBPF programs to tracepoints/syscalls/kprobe

2015-01-20 Thread Alexei Starovoitov
On Tue, Jan 20, 2015 at 3:57 AM, Masami Hiramatsu wrote: > > Ok, BTW, would you think is it possible to use a reusable small scratchpad > memory for passing arguments? (just a thought) sure. doable, but what's the use case? >> It's not usable for high frequency events which >> need this

Re: Re: Re: [PATCH tip 0/9] tracing: attach eBPF programs to tracepoints/syscalls/kprobe

2015-01-20 Thread Masami Hiramatsu
(2015/01/20 12:55), Alexei Starovoitov wrote: > On Mon, Jan 19, 2015 at 6:58 PM, Masami Hiramatsu > wrote: >>> >>> it's done already... one can do the same skb->dev->name logic >>> in kprobe attached program... so from bpf program point of view, >>> tracepoints and kprobes feature-wise are

Re: Re: Re: [PATCH tip 0/9] tracing: attach eBPF programs to tracepoints/syscalls/kprobe

2015-01-20 Thread Masami Hiramatsu
(2015/01/20 12:55), Alexei Starovoitov wrote: On Mon, Jan 19, 2015 at 6:58 PM, Masami Hiramatsu masami.hiramatsu...@hitachi.com wrote: it's done already... one can do the same skb-dev-name logic in kprobe attached program... so from bpf program point of view, tracepoints and kprobes

Re: Re: Re: [PATCH tip 0/9] tracing: attach eBPF programs to tracepoints/syscalls/kprobe

2015-01-20 Thread Alexei Starovoitov
On Tue, Jan 20, 2015 at 3:57 AM, Masami Hiramatsu masami.hiramatsu...@hitachi.com wrote: Ok, BTW, would you think is it possible to use a reusable small scratchpad memory for passing arguments? (just a thought) sure. doable, but what's the use case? It's not usable for high frequency events