Frederic Weisbecker | e1d8aa9 | 2009-01-12 23:15:46 +0100 | [diff] [blame] | 1 | #ifndef __TRACE_WORKQUEUE_H |
| 2 | #define __TRACE_WORKQUEUE_H |
| 3 | |
| 4 | #include <linux/tracepoint.h> |
| 5 | #include <linux/workqueue.h> |
| 6 | #include <linux/sched.h> |
| 7 | |
| 8 | DECLARE_TRACE(workqueue_insertion, |
Steven Rostedt | 2939b04 | 2009-03-09 15:47:18 -0400 | [diff] [blame] | 9 | TP_PROTO(struct task_struct *wq_thread, struct work_struct *work), |
| 10 | TP_ARGS(wq_thread, work)); |
Frederic Weisbecker | e1d8aa9 | 2009-01-12 23:15:46 +0100 | [diff] [blame] | 11 | |
| 12 | DECLARE_TRACE(workqueue_execution, |
Steven Rostedt | 2939b04 | 2009-03-09 15:47:18 -0400 | [diff] [blame] | 13 | TP_PROTO(struct task_struct *wq_thread, struct work_struct *work), |
| 14 | TP_ARGS(wq_thread, work)); |
Frederic Weisbecker | e1d8aa9 | 2009-01-12 23:15:46 +0100 | [diff] [blame] | 15 | |
| 16 | /* Trace the creation of one workqueue thread on a cpu */ |
| 17 | DECLARE_TRACE(workqueue_creation, |
Steven Rostedt | 2939b04 | 2009-03-09 15:47:18 -0400 | [diff] [blame] | 18 | TP_PROTO(struct task_struct *wq_thread, int cpu), |
| 19 | TP_ARGS(wq_thread, cpu)); |
Frederic Weisbecker | e1d8aa9 | 2009-01-12 23:15:46 +0100 | [diff] [blame] | 20 | |
| 21 | DECLARE_TRACE(workqueue_destruction, |
Steven Rostedt | 2939b04 | 2009-03-09 15:47:18 -0400 | [diff] [blame] | 22 | TP_PROTO(struct task_struct *wq_thread), |
| 23 | TP_ARGS(wq_thread)); |
Frederic Weisbecker | e1d8aa9 | 2009-01-12 23:15:46 +0100 | [diff] [blame] | 24 | |
| 25 | #endif /* __TRACE_WORKQUEUE_H */ |