Debian Codegraph @

runtime/linux/autoconf-tracepoint-has-data.c

raw
1 #include <linux/tracepoint.h>
2 #include <trace/events/sched.h>
3
4
5 void baz (void *cb_data, struct task_struct *parent, struct task_struct *child);
6
7 void baz (void *cb_data, struct task_struct *parent, struct task_struct *child) {
8 (void) cb_data;
9 (void) parent;
10 (void) child;
11 }
12
13 /* Until 2.6.35 (commit 38516ab59fbc5b), register_trace_* took one argument.
14 Until 5.7.0 (commit a2806ef77ff9a9), this could be checked by checking
15 for the absence of DECLARE_TRACE_NOARGS. Now _NOARGS variant is removed. */
16 void bar (void);
17
18 void bar (void) {
19 register_trace_sched_process_fork(baz, NULL);
20 }