Lines Matching refs:call

8  * struct trace_event_raw_<call> {
101 * struct trace_event_data_offsets_<call> {
115 #define DECLARE_EVENT_CLASS(call, proto, args, tstruct, assign, print) \
116 struct trace_event_data_offsets_##call { \
141 * trace_raw_output_<call>(struct trace_iterator *iter, int flags)
144 * struct trace_event_raw_<call> *field; <-- defined in stage 1
153 * if (entry->type != event_<call>->event.type) {
161 * return trace_output_call(iter, <call>, <TP_printk> "\n");
187 #define DECLARE_EVENT_CLASS(call, proto, args, tstruct, assign, print) \
189 trace_raw_output_##call(struct trace_iterator *iter, int flags, \
194 struct trace_event_raw_##call *field; \
207 static struct trace_event_functions trace_event_type_funcs_##call = { \
208 .trace = trace_raw_output_##call, \
212 #define DEFINE_EVENT_PRINT(template, call, proto, args, print) \
214 trace_raw_output_##call(struct trace_iterator *iter, int flags, \
223 if (entry->type != event_##call.event.type) { \
231 return trace_output_call(iter, #call, print); \
233 static struct trace_event_functions trace_event_type_funcs_##call = { \
234 .trace = trace_raw_output_##call, \
242 #define DECLARE_EVENT_CLASS(call, proto, args, tstruct, func, print) \
243 static struct trace_event_fields trace_event_fields_##call[] = { \
255 #define DECLARE_EVENT_CLASS(call, proto, args, tstruct, assign, print) \
256 static inline notrace int trace_event_get_offsets_##call( \
257 struct trace_event_data_offsets_##call *__data_offsets, proto) \
261 struct trace_event_raw_##call __maybe_unused *entry; \
278 * static struct trace_event_call event_<call>;
280 * static void trace_event_raw_event_<call>(void *__data, proto)
284 * struct trace_event_data_offsets_<call> __maybe_unused __data_offsets;
288 * struct trace_event_raw_<call> *entry; <-- defined in stage 1
304 * __data_size = trace_event_get_offsets_<call>(&__data_offsets, args);
307 * event_<call>->event.type,
330 * static struct trace_event ftrace_event_type_<call> = {
331 * .trace = trace_raw_output_<call>, <-- stage 2
334 * static char print_fmt_<call>[] = <TP_printk>;
338 * .fields_array = trace_event_fields_<call>,
339 * .fields = LIST_HEAD_INIT(event_class_##call.fields),
341 * .probe = trace_event_raw_event_##call,
345 * static struct trace_event_call event_<call> = {
348 * .tp = &__tracepoint_<call>,
350 * .event = &ftrace_event_type_<call>,
351 * .print_fmt = print_fmt_<call>,
357 * __section("_ftrace_events") *__event_<call> = &event_<call>;
363 #define _TRACE_PERF_PROTO(call, proto) \
365 perf_trace_##call(void *__data, proto);
367 #define _TRACE_PERF_INIT(call) \
368 .perf_probe = perf_trace_##call,
371 #define _TRACE_PERF_PROTO(call, proto)
372 #define _TRACE_PERF_INIT(call)
378 #define DECLARE_EVENT_CLASS(call, proto, args, tstruct, assign, print) \
381 trace_event_raw_event_##call(void *__data, proto) \
384 struct trace_event_data_offsets_##call __maybe_unused __data_offsets;\
386 struct trace_event_raw_##call *entry; \
392 __data_size = trace_event_get_offsets_##call(&__data_offsets, args); \
413 #define DEFINE_EVENT(template, call, proto, args) \
414 static inline void ftrace_test_probe_##call(void) \
416 check_trace_callback_type_##call(trace_event_raw_event_##template); \
424 #define DECLARE_EVENT_CLASS(call, proto, args, tstruct, assign, print) \
425 _TRACE_PERF_PROTO(call, PARAMS(proto)); \
426 static char print_fmt_##call[] = print; \
427 static struct trace_event_class __used __refdata event_class_##call = { \
429 .fields_array = trace_event_fields_##call, \
430 .fields = LIST_HEAD_INIT(event_class_##call.fields),\
432 .probe = trace_event_raw_event_##call, \
434 _TRACE_PERF_INIT(call) \
438 #define DEFINE_EVENT(template, call, proto, args) \
440 static struct trace_event_call __used event_##call = { \
443 .tp = &__tracepoint_##call, \
450 __section("_ftrace_events") *__event_##call = &event_##call
453 #define DEFINE_EVENT_PRINT(template, call, proto, args, print) \
455 static char print_fmt_##call[] = print; \
457 static struct trace_event_call __used event_##call = { \
460 .tp = &__tracepoint_##call, \
462 .event.funcs = &trace_event_type_funcs_##call, \
463 .print_fmt = print_fmt_##call, \
467 __section("_ftrace_events") *__event_##call = &event_##call