Lines Matching refs:name
34 const char *name; /* Tracepoint name */ member
151 #define __DECLARE_TRACE_RCU(name, proto, args, cond, data_proto, data_args) \ argument
152 static inline void trace_##name##_rcuidle(proto) \
154 if (static_key_false(&__tracepoint_##name.key)) \
155 __DO_TRACE(&__tracepoint_##name, \
163 #define __DECLARE_TRACE_RCU(name, proto, args, cond, data_proto, data_args) argument
177 #define __DECLARE_TRACE(name, proto, args, cond, data_proto, data_args) \ argument
178 extern struct tracepoint __tracepoint_##name; \
179 static inline void trace_##name(proto) \
181 if (static_key_false(&__tracepoint_##name.key)) \
182 __DO_TRACE(&__tracepoint_##name, \
188 rcu_dereference_sched(__tracepoint_##name.funcs);\
192 __DECLARE_TRACE_RCU(name, PARAMS(proto), PARAMS(args), \
195 register_trace_##name(void (*probe)(data_proto), void *data) \
197 return tracepoint_probe_register(&__tracepoint_##name, \
201 unregister_trace_##name(void (*probe)(data_proto), void *data) \
203 return tracepoint_probe_unregister(&__tracepoint_##name,\
207 check_trace_callback_type_##name(void (*cb)(data_proto)) \
211 trace_##name##_enabled(void) \
213 return static_key_false(&__tracepoint_##name.key); \
221 #define DEFINE_TRACE_FN(name, reg, unreg) \ argument
222 static const char __tpstrtab_##name[] \
223 __attribute__((section("__tracepoints_strings"))) = #name; \
224 struct tracepoint __tracepoint_##name \
226 { __tpstrtab_##name, STATIC_KEY_INIT_FALSE, reg, unreg, NULL };\
227 static struct tracepoint * const __tracepoint_ptr_##name __used \
229 &__tracepoint_##name;
231 #define DEFINE_TRACE(name) \ argument
232 DEFINE_TRACE_FN(name, NULL, NULL);
234 #define EXPORT_TRACEPOINT_SYMBOL_GPL(name) \ argument
235 EXPORT_SYMBOL_GPL(__tracepoint_##name)
236 #define EXPORT_TRACEPOINT_SYMBOL(name) \ argument
237 EXPORT_SYMBOL(__tracepoint_##name)
240 #define __DECLARE_TRACE(name, proto, args, cond, data_proto, data_args) \ argument
241 static inline void trace_##name(proto) \
243 static inline void trace_##name##_rcuidle(proto) \
246 register_trace_##name(void (*probe)(data_proto), \
252 unregister_trace_##name(void (*probe)(data_proto), \
257 static inline void check_trace_callback_type_##name(void (*cb)(data_proto)) \
261 trace_##name##_enabled(void) \
266 #define DEFINE_TRACE_FN(name, reg, unreg) argument
267 #define DEFINE_TRACE(name) argument
268 #define EXPORT_TRACEPOINT_SYMBOL_GPL(name) argument
269 #define EXPORT_TRACEPOINT_SYMBOL(name) argument
331 #define DECLARE_TRACE_NOARGS(name) \ argument
332 __DECLARE_TRACE(name, void, , \
336 #define DECLARE_TRACE(name, proto, args) \ argument
337 __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \
342 #define DECLARE_TRACE_CONDITION(name, proto, args, cond) \ argument
343 __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \
460 #define DECLARE_EVENT_CLASS(name, proto, args, tstruct, assign, print) argument
461 #define DEFINE_EVENT(template, name, proto, args) \ argument
462 DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
463 #define DEFINE_EVENT_FN(template, name, proto, args, reg, unreg)\ argument
464 DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
465 #define DEFINE_EVENT_PRINT(template, name, proto, args, print) \ argument
466 DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
467 #define DEFINE_EVENT_CONDITION(template, name, proto, \ argument
469 DECLARE_TRACE_CONDITION(name, PARAMS(proto), \
472 #define TRACE_EVENT(name, proto, args, struct, assign, print) \ argument
473 DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
474 #define TRACE_EVENT_FN(name, proto, args, struct, \ argument
476 DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
477 #define TRACE_EVENT_CONDITION(name, proto, args, cond, \ argument
479 DECLARE_TRACE_CONDITION(name, PARAMS(proto), \