Home
last modified time | relevance | path

Searched refs:tp_event (Results 1 – 8 of 8) sorted by relevance

/kernel/trace/
Dtrace_event_perf.c27 static int perf_trace_event_perm(struct trace_event_call *tp_event, in perf_trace_event_perm() argument
32 if (tp_event->perf_perm) { in perf_trace_event_perm()
33 ret = tp_event->perf_perm(tp_event, p_event); in perf_trace_event_perm()
51 if (ftrace_event_is_function(tp_event)) { in perf_trace_event_perm()
81 if (tp_event->flags & TRACE_EVENT_FL_CAP_ANY) in perf_trace_event_perm()
96 static int perf_trace_event_reg(struct trace_event_call *tp_event, in perf_trace_event_reg() argument
103 p_event->tp_event = tp_event; in perf_trace_event_reg()
104 if (tp_event->perf_refcount++ > 0) in perf_trace_event_reg()
114 tp_event->perf_events = list; in perf_trace_event_reg()
129 ret = tp_event->class->reg(tp_event, TRACE_REG_PERF_REGISTER, NULL); in perf_trace_event_reg()
[all …]
Dtrace_eprobe.c873 struct trace_event_call *tp_event; in find_and_get_event() local
876 list_for_each_entry(tp_event, &ftrace_events, list) { in find_and_get_event()
878 if (tp_event->flags & in find_and_get_event()
884 if (!tp_event->class->system || in find_and_get_event()
885 strcmp(system, tp_event->class->system)) in find_and_get_event()
887 name = trace_event_name(tp_event); in find_and_get_event()
890 if (!trace_event_try_get_ref(tp_event)) { in find_and_get_event()
894 return tp_event; in find_and_get_event()
Dtrace_probe.c1092 struct trace_event_call *tp_event; in find_trace_event_call() local
1095 list_for_each_entry(tp_event, &ftrace_events, list) { in find_trace_event_call()
1096 if (!tp_event->class->system || in find_trace_event_call()
1097 strcmp(system, tp_event->class->system)) in find_trace_event_call()
1099 name = trace_event_name(tp_event); in find_trace_event_call()
1102 return tp_event; in find_trace_event_call()
Dbpf_trace.c2138 (!trace_kprobe_on_func_entry(event->tp_event) || in perf_event_attach_bpf_prog()
2139 !trace_kprobe_error_injectable(event->tp_event))) in perf_event_attach_bpf_prog()
2147 old_array = bpf_event_rcu_dereference(event->tp_event->prog_array); in perf_event_attach_bpf_prog()
2161 rcu_assign_pointer(event->tp_event->prog_array, new_array); in perf_event_attach_bpf_prog()
2180 old_array = bpf_event_rcu_dereference(event->tp_event->prog_array); in perf_event_detach_bpf_prog()
2187 rcu_assign_pointer(event->tp_event->prog_array, new_array); in perf_event_detach_bpf_prog()
2227 progs = bpf_event_rcu_dereference(event->tp_event->prog_array); in perf_event_query_prog_array()
2369 flags = event->tp_event->flags; in bpf_get_perf_event_info()
2371 is_syscall_tp = is_syscall_trace_event(event->tp_event); in bpf_get_perf_event_info()
2374 *buf = is_tracepoint ? event->tp_event->tp->name in bpf_get_perf_event_info()
[all …]
Dtrace_uprobe.c1423 const char *pevent = trace_event_name(event->tp_event); in bpf_get_uprobe_info()
1424 const char *group = event->tp_event->class->system; in bpf_get_uprobe_info()
1430 tu = trace_uprobe_primary_from_call(event->tp_event); in bpf_get_uprobe_info()
Dtrace_kprobe.c1657 const char *pevent = trace_event_name(event->tp_event); in bpf_get_kprobe_info()
1658 const char *group = event->tp_event->class->system; in bpf_get_kprobe_info()
1664 tk = trace_kprobe_primary_from_call(event->tp_event); in bpf_get_kprobe_info()
Dtrace_events_filter.c2262 call = event->tp_event; in ftrace_profile_set_filter()
/kernel/events/
Dcore.c10298 is_kprobe = event->tp_event->flags & TRACE_EVENT_FL_KPROBE; in perf_event_set_bpf_prog()
10299 is_uprobe = event->tp_event->flags & TRACE_EVENT_FL_UPROBE; in perf_event_set_bpf_prog()
10300 is_tracepoint = event->tp_event->flags & TRACE_EVENT_FL_TRACEPOINT; in perf_event_set_bpf_prog()
10301 is_syscall_tp = is_syscall_trace_event(event->tp_event); in perf_event_set_bpf_prog()
10320 int off = trace_event_get_offsets(event->tp_event); in perf_event_set_bpf_prog()