Lines Matching +full:event +full:- +full:name
1 /* SPDX-License-Identifier: GPL-2.0 */
5 * Override the macros in the event tracepoint header <trace/events/XXX.h>
39 #define TRACE_EVENT(name, proto, args, tstruct, assign, print) \ argument
40 DECLARE_EVENT_CLASS(name, \
46 DEFINE_EVENT(name, name, PARAMS(proto), PARAMS(args));
49 #define TRACE_EVENT_SYSCALL(name, proto, args, tstruct, assign, print, reg, unreg) \ argument
50 DECLARE_EVENT_SYSCALL_CLASS(name, \
56 DEFINE_EVENT(name, name, PARAMS(proto), PARAMS(args));
61 #define DECLARE_EVENT_CLASS(name, proto, args, tstruct, assign, print) \ argument
62 struct trace_event_raw_##name { \
68 static struct trace_event_class event_class_##name;
74 #define DEFINE_EVENT(template, name, proto, args) \ argument
76 __attribute__((__aligned__(4))) event_##name
79 #define DEFINE_EVENT_FN(template, name, proto, args, reg, unreg) \ argument
80 DEFINE_EVENT(template, name, PARAMS(proto), PARAMS(args))
83 #define DEFINE_EVENT_PRINT(template, name, proto, args, print) \ argument
84 DEFINE_EVENT(template, name, PARAMS(proto), PARAMS(args))
88 #define TRACE_EVENT_FN(name, proto, args, tstruct, \ argument
90 TRACE_EVENT(name, PARAMS(proto), PARAMS(args), \
94 #define TRACE_EVENT_FN_COND(name, proto, args, cond, tstruct, \ argument
96 TRACE_EVENT_CONDITION(name, PARAMS(proto), PARAMS(args), PARAMS(cond), \
100 #define TRACE_EVENT_FLAGS(name, value) \ argument
101 __TRACE_EVENT_FLAGS(name, value)
104 #define TRACE_EVENT_PERF_PERM(name, expr...) \ argument
105 __TRACE_EVENT_PERF_PERM(name, expr)
121 * to keep the offset of each array from the beginning of the event.
137 #define DEFINE_EVENT(template, name, proto, args) argument
140 #define DEFINE_EVENT_PRINT(template, name, proto, args, print) argument
143 #define TRACE_EVENT_FLAGS(event, flag) argument
146 #define TRACE_EVENT_PERF_PERM(event, expr...) argument
153 * Override the macros in the event tracepoint header <trace/events/XXX.h>
159 * struct trace_seq *s = &iter->seq;
160 * struct trace_event_raw_<call> *field; <-- defined in stage 1
161 * struct trace_seq *p = &iter->tmp_seq;
163 * -------(for event)-------
167 * entry = iter->ent;
169 * if (entry->type != event_<call>->event.type) {
179 * ------(or, for event class)------
183 * field = (typeof(field))iter->ent;
192 * -------
195 * This is the method used to print the raw event to the trace
208 struct trace_seq *s = &iter->seq; \
209 struct trace_seq __maybe_unused *p = &iter->tmp_seq; \
213 field = (typeof(field))iter->ent; \
234 struct trace_event *event) \
238 struct trace_seq *p = &iter->tmp_seq; \
240 entry = iter->ent; \
242 if (entry->type != event_##call.event.type) { \
270 #define DEFINE_EVENT_PRINT(template, name, proto, args, print) argument
298 * Override the macros in the event tracepoint header <trace/events/XXX.h>
308 * struct trace_event_call *event_call = trace_file->event_call;
310 * unsigned long eflags = trace_file->flags;
312 * struct ring_buffer_event *event;
313 * struct trace_event_raw_<call> *entry; <-- defined in stage 1
331 * event = trace_event_buffer_lock_reserve(&buffer, trace_file,
332 * event_<call>->event.type,
335 * if (!event)
337 * entry = ring_buffer_event_data(event);
339 * { <assign>; } <-- Here we assign the entries by the __field and
346 * &trace_file->flags))
347 * ring_buffer_discard_commit(buffer, event);
348 * else if (!filter_check_discard(trace_file, entry, buffer, event))
349 * trace_buffer_unlock_commit(buffer, event, irq_flags, pc);
356 * .trace = trace_raw_output_<call>, <-- stage 2
375 * .event = &ftrace_event_type_<call>,
499 .event.funcs = &trace_event_type_funcs_##template, \
516 .event.funcs = &trace_event_type_funcs_##call, \