i2c: mxs: use MXS_DMA_CTRL_WAIT4END instead of DMA_CTRL_ACK
[linux/fpc-iii.git] / include / trace / events / workqueue.h
blobe172549283beaa1ed24d02871032b945ef8f800d
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #undef TRACE_SYSTEM
3 #define TRACE_SYSTEM workqueue
5 #if !defined(_TRACE_WORKQUEUE_H) || defined(TRACE_HEADER_MULTI_READ)
6 #define _TRACE_WORKQUEUE_H
8 #include <linux/tracepoint.h>
9 #include <linux/workqueue.h>
11 DECLARE_EVENT_CLASS(workqueue_work,
13 TP_PROTO(struct work_struct *work),
15 TP_ARGS(work),
17 TP_STRUCT__entry(
18 __field( void *, work )
21 TP_fast_assign(
22 __entry->work = work;
25 TP_printk("work struct %p", __entry->work)
28 struct pool_workqueue;
30 /**
31 * workqueue_queue_work - called when a work gets queued
32 * @req_cpu: the requested cpu
33 * @pwq: pointer to struct pool_workqueue
34 * @work: pointer to struct work_struct
36 * This event occurs when a work is queued immediately or once a
37 * delayed work is actually queued on a workqueue (ie: once the delay
38 * has been reached).
40 TRACE_EVENT(workqueue_queue_work,
42 TP_PROTO(unsigned int req_cpu, struct pool_workqueue *pwq,
43 struct work_struct *work),
45 TP_ARGS(req_cpu, pwq, work),
47 TP_STRUCT__entry(
48 __field( void *, work )
49 __field( void *, function)
50 __field( void *, workqueue)
51 __field( unsigned int, req_cpu )
52 __field( unsigned int, cpu )
55 TP_fast_assign(
56 __entry->work = work;
57 __entry->function = work->func;
58 __entry->workqueue = pwq->wq;
59 __entry->req_cpu = req_cpu;
60 __entry->cpu = pwq->pool->cpu;
63 TP_printk("work struct=%p function=%ps workqueue=%p req_cpu=%u cpu=%u",
64 __entry->work, __entry->function, __entry->workqueue,
65 __entry->req_cpu, __entry->cpu)
68 /**
69 * workqueue_activate_work - called when a work gets activated
70 * @work: pointer to struct work_struct
72 * This event occurs when a queued work is put on the active queue,
73 * which happens immediately after queueing unless @max_active limit
74 * is reached.
76 DEFINE_EVENT(workqueue_work, workqueue_activate_work,
78 TP_PROTO(struct work_struct *work),
80 TP_ARGS(work)
83 /**
84 * workqueue_execute_start - called immediately before the workqueue callback
85 * @work: pointer to struct work_struct
87 * Allows to track workqueue execution.
89 TRACE_EVENT(workqueue_execute_start,
91 TP_PROTO(struct work_struct *work),
93 TP_ARGS(work),
95 TP_STRUCT__entry(
96 __field( void *, work )
97 __field( void *, function)
100 TP_fast_assign(
101 __entry->work = work;
102 __entry->function = work->func;
105 TP_printk("work struct %p: function %ps", __entry->work, __entry->function)
109 * workqueue_execute_end - called immediately after the workqueue callback
110 * @work: pointer to struct work_struct
112 * Allows to track workqueue execution.
114 DEFINE_EVENT(workqueue_work, workqueue_execute_end,
116 TP_PROTO(struct work_struct *work),
118 TP_ARGS(work)
121 #endif /* _TRACE_WORKQUEUE_H */
123 /* This part must be outside protection */
124 #include <trace/define_trace.h>