Lines Matching +full:foo +full:- +full:bar
1 /* SPDX-License-Identifier: GPL-2.0 */
8 * In this case, it would look for sample-trace.h
14 * This file is called trace-events-sample.h but we want the system
15 * to be called "sample-trace". Therefore we must define the name of this
18 * #define TRACE_INCLUDE_FILE trace-events-sample
26 #define TRACE_SYSTEM sample-trace
29 * TRACE_SYSTEM is expected to be a C valid variable (alpha-numeric
36 * But the above is only needed if TRACE_SYSTEM is not alpha-numeric
38 * TRACE_SYSTEM. As TRACE_SYSTEM_VAR must be alpha-numeric, if
40 * only alpha-numeric and underscores.
70 * Here it is trace_foo_bar(char *foo, int bar).
73 * Here it is simply "foo, bar".
85 * __field(int, foo)
87 * __entry->foo = 5;
94 * __field_struct(struct bar, foo)
96 * __entry->bar.x = y;
102 * __array( char, foo, 10) is the same as saying: char foo[10];
106 * __entry->foo[0] = 'a';
108 * memcpy(__entry->foo, bar, 10);
119 * __dynamic_array( int, foo, bar) is similar to: int foo[bar];
124 * memcpy(__get_dynamic_array(foo), bar, 10);
135 * __string(foo, bar) is similar to: strcpy(foo, bar)
139 * __assign_str(foo, bar);
153 * __assign_bitmask(target_cpus, cpumask_bits(bar), nr_cpumask_bits);
170 * For __dynamic_array(int, foo, bar) use __get_dynamic_array(foo)
171 * Use __get_dynamic_array_len(foo) to get the length of the array
177 * For __string(foo, bar) use __get_str(foo)
231 TP_PROTO(const char *foo, int bar, const int *lst,
234 TP_ARGS(foo, bar, lst, string, mask),
237 __array( char, foo, 10 )
238 __field( int, bar )
245 strlcpy(__entry->foo, foo, 10);
246 __entry->bar = bar;
253 TP_printk("foo %s %d %s %s %s %s (%s)", __entry->foo, __entry->bar,
263 * version of the number (if __entry->bar == 7 then "7" is returned).
265 __print_symbolic(__entry->bar,
283 __print_flags(__entry->bar, "|",
339 TP_PROTO(const char *foo, int bar),
341 TP_ARGS(foo, bar),
343 TP_CONDITION(!(bar % 10)),
346 __string( foo, foo )
347 __field( int, bar )
351 __assign_str(foo, foo);
352 __entry->bar = bar;
355 TP_printk("foo %s %d", __get_str(foo), __entry->bar)
382 TP_PROTO(const char *foo, int bar),
384 TP_ARGS(foo, bar),
387 __string( foo, foo )
388 __field( int, bar )
392 __assign_str(foo, foo);
393 __entry->bar = bar;
396 TP_printk("foo %s %d", __get_str(foo), __entry->bar),
429 TP_PROTO(const char *foo, int bar),
431 TP_ARGS(foo, bar),
434 __string( foo, foo )
435 __field( int, bar )
439 __assign_str(foo, foo);
440 __entry->bar = bar;
443 TP_printk("foo %s %d", __get_str(foo), __entry->bar)
451 TP_PROTO(const char *foo, int bar),
452 TP_ARGS(foo, bar));
455 TP_PROTO(const char *foo, int bar),
456 TP_ARGS(foo, bar),
457 TP_CONDITION(!(bar % 8)));
461 TP_PROTO(const char *foo, int bar),
462 TP_ARGS(foo, bar),
478 TP_PROTO(const char *foo, int bar),
479 TP_ARGS(foo, bar),
480 TP_printk("bar %s %d", __get_str(foo), __entry->bar));
500 * CFLAGS_trace-events-sample.o := -I$(src)
507 * CFLAGS_trace-events-sample.o := -I$(PWD)
523 #define TRACE_INCLUDE_FILE trace-events-sample