2 #define TRACE_SYSTEM workqueue
4 #if !defined(_TRACE_WORKQUEUE_H) || defined(TRACE_HEADER_MULTI_READ)
5 #define _TRACE_WORKQUEUE_H
7 #include <linux/tracepoint.h>
8 #include <linux/workqueue.h>
11 * workqueue_execute_start - called immediately before the workqueue callback
12 * @work: pointer to struct work_struct
14 * Allows to track workqueue execution.
16 TRACE_EVENT(workqueue_execute_start,
18 TP_PROTO(struct work_struct *work),
23 __field( void *, work )
24 __field( void *, function)
29 __entry->function = work->func;
32 TP_printk("work struct %p: function %pf", __entry->work, __entry->function)
36 * workqueue_execute_end - called immediately before the workqueue callback
37 * @work: pointer to struct work_struct
39 * Allows to track workqueue execution.
41 TRACE_EVENT(workqueue_execute_end,
43 TP_PROTO(struct work_struct *work),
48 __field( void *, work )
55 TP_printk("work struct %p", __entry->work)
59 #endif /* _TRACE_WORKQUEUE_H */
61 /* This part must be outside protection */
62 #include <trace/define_trace.h>