Lines Matching full: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) \ argument
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) \ argument
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) \ argument
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) \ argument
243 static struct trace_event_fields trace_event_fields_##call[] = { \
258 #define DECLARE_EVENT_CLASS(call, proto, args, tstruct, assign, print) \ argument
259 static inline notrace int trace_event_get_offsets_##call( \
260 struct trace_event_data_offsets_##call *__data_offsets, proto) \
264 struct trace_event_raw_##call __maybe_unused *entry; \
281 * static struct trace_event_call event_<call>;
283 * static void trace_event_raw_event_<call>(void *__data, proto)
287 * struct trace_event_data_offsets_<call> __maybe_unused __data_offsets;
291 * struct trace_event_raw_<call> *entry; <-- defined in stage 1
307 * __data_size = trace_event_get_offsets_<call>(&__data_offsets, args);
310 * event_<call>->event.type,
333 * static struct trace_event ftrace_event_type_<call> = {
334 * .trace = trace_raw_output_<call>, <-- stage 2
337 * static char print_fmt_<call>[] = <TP_printk>;
341 * .fields_array = trace_event_fields_<call>,
342 * .fields = LIST_HEAD_INIT(event_class_##call.fields),
344 * .probe = trace_event_raw_event_##call,
348 * static struct trace_event_call event_<call> = {
351 * .tp = &__tracepoint_<call>,
353 * .event = &ftrace_event_type_<call>,
354 * .print_fmt = print_fmt_<call>,
360 * __section("_ftrace_events") *__event_<call> = &event_<call>;
366 #define _TRACE_PERF_PROTO(call, proto) \ argument
368 perf_trace_##call(void *__data, proto);
370 #define _TRACE_PERF_INIT(call) \ argument
371 .perf_probe = perf_trace_##call,
374 #define _TRACE_PERF_PROTO(call, proto) argument
375 #define _TRACE_PERF_INIT(call) argument
382 #define __DECLARE_EVENT_CLASS(call, proto, args, tstruct, assign, print) \ argument
384 do_trace_event_raw_event_##call(void *__data, proto) \
387 struct trace_event_data_offsets_##call __maybe_unused __data_offsets;\
389 struct trace_event_raw_##call *entry; \
395 __data_size = trace_event_get_offsets_##call(&__data_offsets, args); \
411 #define DECLARE_EVENT_CLASS(call, proto, args, tstruct, assign, print) \ argument
412 __DECLARE_EVENT_CLASS(call, PARAMS(proto), PARAMS(args), PARAMS(tstruct), \
415 trace_event_raw_event_##call(void *__data, proto) \
417 do_trace_event_raw_event_##call(__data, args); \
421 #define DECLARE_EVENT_SYSCALL_CLASS(call, proto, args, tstruct, assign, print) \ argument
422 __DECLARE_EVENT_CLASS(call, PARAMS(proto), PARAMS(args), PARAMS(tstruct), \
425 trace_event_raw_event_##call(void *__data, proto) \
428 do_trace_event_raw_event_##call(__data, args); \
439 #define DEFINE_EVENT(template, call, proto, args) \ argument
440 static inline void ftrace_test_probe_##call(void) \
442 check_trace_callback_type_##call(trace_event_raw_event_##template); \
452 #define DECLARE_EVENT_CLASS(call, proto, args, tstruct, assign, print) \ argument
453 _TRACE_PERF_PROTO(call, PARAMS(proto)); \
454 static char print_fmt_##call[] = print; \
455 static struct trace_event_class __used __refdata event_class_##call = { \
457 .fields_array = trace_event_fields_##call, \
458 .fields = LIST_HEAD_INIT(event_class_##call.fields),\
460 .probe = trace_event_raw_event_##call, \
462 _TRACE_PERF_INIT(call) \
466 #define DEFINE_EVENT(template, call, proto, args) \ argument
468 static struct trace_event_call __used event_##call = { \
471 .tp = &__tracepoint_##call, \
478 __section("_ftrace_events") *__event_##call = &event_##call
481 #define DEFINE_EVENT_PRINT(template, call, proto, args, print) \ argument
483 static char print_fmt_##call[] = print; \
485 static struct trace_event_call __used event_##call = { \
488 .tp = &__tracepoint_##call, \
490 .event.funcs = &trace_event_type_funcs_##call, \
491 .print_fmt = print_fmt_##call, \
495 __section("_ftrace_events") *__event_##call = &event_##call