[PATCH 4/5] perf bpf: Rename bpf__foreach_tev() to bpf__foreach_event()

2016-07-13 Thread Wang Nan
Following commit will allow BPF script attach to tracepoints. bpf__foreach_tev() will iterate over all events, not only kprobes. Rename it to bpf__foreach_event(). Since only group and event are used by caller, there's no need to pass full 'struct probe_trace_event' to bpf_prog_iter_callback_t.

[PATCH 4/5] perf bpf: Rename bpf__foreach_tev() to bpf__foreach_event()

2016-07-13 Thread Wang Nan
Following commit will allow BPF script attach to tracepoints. bpf__foreach_tev() will iterate over all events, not only kprobes. Rename it to bpf__foreach_event(). Since only group and event are used by caller, there's no need to pass full 'struct probe_trace_event' to bpf_prog_iter_callback_t.