Lines Matching refs:tp

272 static inline bool trace_probe_test_flag(struct trace_probe *tp,
275 return !!(tp->event->flags & flag);
278 static inline void trace_probe_set_flag(struct trace_probe *tp,
281 tp->event->flags |= flag;
284 static inline void trace_probe_clear_flag(struct trace_probe *tp,
287 tp->event->flags &= ~flag;
290 static inline bool trace_probe_is_enabled(struct trace_probe *tp)
292 return trace_probe_test_flag(tp, TP_FLAG_TRACE | TP_FLAG_PROFILE);
295 static inline const char *trace_probe_name(struct trace_probe *tp)
297 return trace_event_name(&tp->event->call);
300 static inline const char *trace_probe_group_name(struct trace_probe *tp)
302 return tp->event->call.class->system;
306 trace_probe_event_call(struct trace_probe *tp)
308 return &tp->event->call;
325 static inline struct list_head *trace_probe_probe_list(struct trace_probe *tp)
327 return &tp->event->probes;
330 static inline bool trace_probe_has_sibling(struct trace_probe *tp)
332 struct list_head *list = trace_probe_probe_list(tp);
337 static inline int trace_probe_unregister_event_call(struct trace_probe *tp)
339 /* tp->event is unregistered in trace_remove_event_call() */
340 return trace_remove_event_call(&tp->event->call);
343 static inline bool trace_probe_has_single_file(struct trace_probe *tp)
345 return !!list_is_singular(&tp->event->files);
348 int trace_probe_init(struct trace_probe *tp, const char *event,
350 void trace_probe_cleanup(struct trace_probe *tp);
351 int trace_probe_append(struct trace_probe *tp, struct trace_probe *to);
352 void trace_probe_unlink(struct trace_probe *tp);
353 int trace_probe_register_event_call(struct trace_probe *tp);
354 int trace_probe_add_file(struct trace_probe *tp, struct trace_event_file *file);
355 int trace_probe_remove_file(struct trace_probe *tp,
357 struct event_file_link *trace_probe_get_file_link(struct trace_probe *tp,
360 bool trace_probe_match_command_args(struct trace_probe *tp,
367 int traceprobe_get_entry_data_size(struct trace_probe *tp);
369 void store_trace_entry_data(void *edata, struct trace_probe *tp, struct pt_regs *regs);
371 static inline int traceprobe_get_entry_data_size(struct trace_probe *tp)
375 #define store_trace_entry_data(edata, tp, regs) do { } while (0)
378 #define trace_probe_for_each_link(pos, tp) \
379 list_for_each_entry(pos, &(tp)->event->files, list)
380 #define trace_probe_for_each_link_rcu(pos, tp) \
381 list_for_each_entry_rcu(pos, &(tp)->event->files, list)
420 struct trace_probe *tp;
425 extern int traceprobe_parse_probe_arg(struct trace_probe *tp, int i,
451 extern int traceprobe_set_print_fmt(struct trace_probe *tp, enum probe_print_type ptype);
465 size_t offset, struct trace_probe *tp);