Lines Matching full:call
8 * struct trace_event_raw_<call> {
162 * struct trace_event_data_offsets_<call> {
204 #define DECLARE_EVENT_CLASS(call, proto, args, tstruct, assign, print) \ argument
205 struct trace_event_data_offsets_##call { \
230 * trace_raw_output_<call>(struct trace_iterator *iter, int flags)
233 * struct trace_event_raw_<call> *field; <-- defined in stage 1
240 * if (entry->type != event_<call>->event.type) {
248 * ret = trace_seq_printf(s, "%s: ", <call>);
351 #define DECLARE_EVENT_CLASS(call, proto, args, tstruct, assign, print) \ argument
353 trace_raw_output_##call(struct trace_iterator *iter, int flags, \
358 struct trace_event_raw_##call *field; \
371 static struct trace_event_functions trace_event_type_funcs_##call = { \
372 .trace = trace_raw_output_##call, \
376 #define DEFINE_EVENT_PRINT(template, call, proto, args, print) \ argument
378 trace_raw_output_##call(struct trace_iterator *iter, int flags, \
387 if (entry->type != event_##call.event.type) { \
395 return trace_output_call(iter, #call, print); \
397 static struct trace_event_functions trace_event_type_funcs_##call = { \
398 .trace = trace_raw_output_##call, \
440 #define DECLARE_EVENT_CLASS(call, proto, args, tstruct, func, print) \ argument
441 static struct trace_event_fields trace_event_fields_##call[] = { \
508 #define DECLARE_EVENT_CLASS(call, proto, args, tstruct, assign, print) \ argument
509 static inline notrace int trace_event_get_offsets_##call( \
510 struct trace_event_data_offsets_##call *__data_offsets, proto) \
514 struct trace_event_raw_##call __maybe_unused *entry; \
531 * static struct trace_event_call event_<call>;
533 * static void trace_event_raw_event_<call>(void *__data, proto)
537 * struct trace_event_data_offsets_<call> __maybe_unused __data_offsets;
541 * struct trace_event_raw_<call> *entry; <-- defined in stage 1
557 * __data_size = trace_event_get_offsets_<call>(&__data_offsets, args);
560 * event_<call>->event.type,
583 * static struct trace_event ftrace_event_type_<call> = {
584 * .trace = trace_raw_output_<call>, <-- stage 2
587 * static char print_fmt_<call>[] = <TP_printk>;
591 * .fields_array = trace_event_fields_<call>,
592 * .fields = LIST_HEAD_INIT(event_class_##call.fields),
594 * .probe = trace_event_raw_event_##call,
598 * static struct trace_event_call event_<call> = {
601 * .tp = &__tracepoint_<call>,
603 * .event = &ftrace_event_type_<call>,
604 * .print_fmt = print_fmt_<call>,
610 * __section("_ftrace_events") *__event_<call> = &event_<call>;
616 #define _TRACE_PERF_PROTO(call, proto) \ argument
618 perf_trace_##call(void *__data, proto);
620 #define _TRACE_PERF_INIT(call) \ argument
621 .perf_probe = perf_trace_##call,
624 #define _TRACE_PERF_PROTO(call, proto) argument
625 #define _TRACE_PERF_INIT(call) argument
671 #define DECLARE_EVENT_CLASS(call, proto, args, tstruct, assign, print) \ argument
674 trace_event_raw_event_##call(void *__data, proto) \
677 struct trace_event_data_offsets_##call __maybe_unused __data_offsets;\
679 struct trace_event_raw_##call *entry; \
685 __data_size = trace_event_get_offsets_##call(&__data_offsets, args); \
706 #define DEFINE_EVENT(template, call, proto, args) \ argument
707 static inline void ftrace_test_probe_##call(void) \
709 check_trace_callback_type_##call(trace_event_raw_event_##template); \
732 #define DECLARE_EVENT_CLASS(call, proto, args, tstruct, assign, print) \ argument
733 _TRACE_PERF_PROTO(call, PARAMS(proto)); \
734 static char print_fmt_##call[] = print; \
735 static struct trace_event_class __used __refdata event_class_##call = { \
737 .fields_array = trace_event_fields_##call, \
738 .fields = LIST_HEAD_INIT(event_class_##call.fields),\
740 .probe = trace_event_raw_event_##call, \
742 _TRACE_PERF_INIT(call) \
746 #define DEFINE_EVENT(template, call, proto, args) \ argument
748 static struct trace_event_call __used event_##call = { \
751 .tp = &__tracepoint_##call, \
758 __section("_ftrace_events") *__event_##call = &event_##call
761 #define DEFINE_EVENT_PRINT(template, call, proto, args, print) \ argument
763 static char print_fmt_##call[] = print; \
765 static struct trace_event_call __used event_##call = { \
768 .tp = &__tracepoint_##call, \
770 .event.funcs = &trace_event_type_funcs_##call, \
771 .print_fmt = print_fmt_##call, \
775 __section("_ftrace_events") *__event_##call = &event_##call