[PATCH tip 8/9] tracing: attach eBPF programs to kprobe/kretprobe

2015-01-15 Thread Alexei Starovoitov
introduce new type of eBPF programs BPF_PROG_TYPE_KPROBE_FILTER. Such programs are allowed to call the same helper functions as tracing filters, but bpf_context is different: For tracing filters bpf_context is 6 arguments of tracepoints or syscalls For kprobe filters bpf_context == pt_regs

[PATCH tip 8/9] tracing: attach eBPF programs to kprobe/kretprobe

2015-01-15 Thread Alexei Starovoitov
introduce new type of eBPF programs BPF_PROG_TYPE_KPROBE_FILTER. Such programs are allowed to call the same helper functions as tracing filters, but bpf_context is different: For tracing filters bpf_context is 6 arguments of tracepoints or syscalls For kprobe filters bpf_context == pt_regs