blob: 7626523deeba5f8611c70777878d500ada0d7cb3 [file] [log] [blame]
Frederic Weisbeckere1d8aa92009-01-12 23:15:46 +01001#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
8DECLARE_TRACE(workqueue_insertion,
Steven Rostedt2939b042009-03-09 15:47:18 -04009 TP_PROTO(struct task_struct *wq_thread, struct work_struct *work),
10 TP_ARGS(wq_thread, work));
Frederic Weisbeckere1d8aa92009-01-12 23:15:46 +010011
12DECLARE_TRACE(workqueue_execution,
Steven Rostedt2939b042009-03-09 15:47:18 -040013 TP_PROTO(struct task_struct *wq_thread, struct work_struct *work),
14 TP_ARGS(wq_thread, work));
Frederic Weisbeckere1d8aa92009-01-12 23:15:46 +010015
16/* Trace the creation of one workqueue thread on a cpu */
17DECLARE_TRACE(workqueue_creation,
Steven Rostedt2939b042009-03-09 15:47:18 -040018 TP_PROTO(struct task_struct *wq_thread, int cpu),
19 TP_ARGS(wq_thread, cpu));
Frederic Weisbeckere1d8aa92009-01-12 23:15:46 +010020
21DECLARE_TRACE(workqueue_destruction,
Steven Rostedt2939b042009-03-09 15:47:18 -040022 TP_PROTO(struct task_struct *wq_thread),
23 TP_ARGS(wq_thread));
Frederic Weisbeckere1d8aa92009-01-12 23:15:46 +010024
25#endif /* __TRACE_WORKQUEUE_H */