Lines Matching refs:tp
36 struct trace_probe tp; member
50 trace_probe_cleanup(&ep->tp); in trace_event_probe_cleanup()
74 seq_printf(m, "e:%s/%s", trace_probe_group_name(&ep->tp), in eprobe_dyn_event_show()
75 trace_probe_name(&ep->tp)); in eprobe_dyn_event_show()
78 for (i = 0; i < ep->tp.nr_args; i++) in eprobe_dyn_event_show()
79 seq_printf(m, " %s=%s", ep->tp.args[i].name, ep->tp.args[i].comm); in eprobe_dyn_event_show()
88 if (trace_probe_has_sibling(&ep->tp)) in unregister_trace_eprobe()
92 if (trace_probe_is_enabled(&ep->tp)) in unregister_trace_eprobe()
96 if (trace_probe_unregister_event_call(&ep->tp)) in unregister_trace_eprobe()
101 trace_probe_unlink(&ep->tp); in unregister_trace_eprobe()
120 return trace_probe_is_enabled(&ep->tp); in eprobe_dyn_event_is_busy()
148 if (system && strcmp(trace_probe_group_name(&ep->tp), system) != 0) in eprobe_dyn_event_match()
152 if (event[0] != '\0' && strcmp(trace_probe_name(&ep->tp), event) != 0) in eprobe_dyn_event_match()
179 return trace_probe_match_command_args(&ep->tp, argc, argv); in eprobe_dyn_event_match()
206 ep = kzalloc(struct_size(ep, tp.args, nargs), GFP_KERNEL); in alloc_event_probe()
219 ret = trace_probe_init(&ep->tp, this_event, group, false); in alloc_event_probe()
232 struct probe_arg *parg = &ep->tp.args[i]; in trace_eprobe_tp_arg_update()
264 struct trace_probe *tp; in eprobe_event_define_fields() local
266 tp = trace_probe_primary_from_call(event_call); in eprobe_event_define_fields()
267 if (WARN_ON_ONCE(!tp)) in eprobe_event_define_fields()
270 return traceprobe_define_arg_fields(event_call, sizeof(field), tp); in eprobe_event_define_fields()
289 struct trace_probe *tp; in print_eprobe_event() local
293 tp = trace_probe_primary_from_call( in print_eprobe_event()
295 if (WARN_ON_ONCE(!tp)) in print_eprobe_event()
298 ep = container_of(tp, struct trace_eprobe, tp); in print_eprobe_event()
301 trace_seq_printf(s, "%s: (", trace_probe_name(tp)); in print_eprobe_event()
314 if (print_probe_args(s, tp->args, tp->nr_args, in print_eprobe_event()
381 static int get_eprobe_size(struct trace_probe *tp, void *rec) in get_eprobe_size() argument
387 for (i = 0; i < tp->nr_args; i++) { in get_eprobe_size()
388 arg = tp->args + i; in get_eprobe_size()
514 struct trace_event_call *call = trace_probe_event_call(&edata->ep->tp); in __eprobe_trace_func()
524 dsize = get_eprobe_size(&edata->ep->tp, rec); in __eprobe_trace_func()
527 sizeof(*entry) + edata->ep->tp.size + dsize); in __eprobe_trace_func()
533 store_trace_args(&entry[1], &edata->ep->tp, rec, sizeof(*entry), dsize); in __eprobe_trace_func()
742 struct trace_probe *pos, *tp; in enable_trace_eprobe() local
748 tp = trace_probe_primary_from_call(call); in enable_trace_eprobe()
749 if (WARN_ON_ONCE(!tp)) in enable_trace_eprobe()
751 enabled = trace_probe_is_enabled(tp); in enable_trace_eprobe()
755 ret = trace_probe_add_file(tp, file); in enable_trace_eprobe()
759 trace_probe_set_flag(tp, TP_FLAG_PROFILE); in enable_trace_eprobe()
764 list_for_each_entry(pos, trace_probe_probe_list(tp), list) { in enable_trace_eprobe()
765 ep = container_of(pos, struct trace_eprobe, tp); in enable_trace_eprobe()
782 list_for_each_entry(pos, trace_probe_probe_list(tp), list) { in enable_trace_eprobe()
783 ep = container_of(pos, struct trace_eprobe, tp); in enable_trace_eprobe()
790 trace_probe_remove_file(tp, file); in enable_trace_eprobe()
792 trace_probe_clear_flag(tp, TP_FLAG_PROFILE); in enable_trace_eprobe()
801 struct trace_probe *pos, *tp; in disable_trace_eprobe() local
804 tp = trace_probe_primary_from_call(call); in disable_trace_eprobe()
805 if (WARN_ON_ONCE(!tp)) in disable_trace_eprobe()
809 if (!trace_probe_get_file_link(tp, file)) in disable_trace_eprobe()
811 if (!trace_probe_has_single_file(tp)) in disable_trace_eprobe()
813 trace_probe_clear_flag(tp, TP_FLAG_TRACE); in disable_trace_eprobe()
815 trace_probe_clear_flag(tp, TP_FLAG_PROFILE); in disable_trace_eprobe()
817 if (!trace_probe_is_enabled(tp)) { in disable_trace_eprobe()
818 list_for_each_entry(pos, trace_probe_probe_list(tp), list) { in disable_trace_eprobe()
819 ep = container_of(pos, struct trace_eprobe, tp); in disable_trace_eprobe()
832 trace_probe_remove_file(tp, file); in disable_trace_eprobe()
862 struct trace_event_call *call = trace_probe_event_call(&ep->tp); in init_trace_eprobe_call()
905 ret = traceprobe_parse_probe_arg(&ep->tp, i, argv[i], flags); in trace_eprobe_tp_update_arg()
909 if (ep->tp.args[i].code->op == FETCH_OP_TP_ARG) { in trace_eprobe_tp_update_arg()
917 ret = traceprobe_update_arg(&ep->tp.args[i]); in trace_eprobe_tp_update_arg()
1057 ret = traceprobe_set_print_fmt(&ep->tp, PROBE_PRINT_EVENT); in __trace_eprobe_create()
1062 ret = trace_probe_register_event_call(&ep->tp); in __trace_eprobe_create()
1071 ret = dyn_event_add(&ep->devent, &ep->tp.event->call); in __trace_eprobe_create()