2009-01-13 06:15:46 +08:00
|
|
|
#ifndef __TRACE_WORKQUEUE_H
|
|
|
|
#define __TRACE_WORKQUEUE_H
|
|
|
|
|
|
|
|
#include <linux/tracepoint.h>
|
|
|
|
#include <linux/workqueue.h>
|
|
|
|
#include <linux/sched.h>
|
|
|
|
|
|
|
|
DECLARE_TRACE(workqueue_insertion,
|
2009-03-10 03:47:18 +08:00
|
|
|
TP_PROTO(struct task_struct *wq_thread, struct work_struct *work),
|
|
|
|
TP_ARGS(wq_thread, work));
|
2009-01-13 06:15:46 +08:00
|
|
|
|
|
|
|
DECLARE_TRACE(workqueue_execution,
|
2009-03-10 03:47:18 +08:00
|
|
|
TP_PROTO(struct task_struct *wq_thread, struct work_struct *work),
|
|
|
|
TP_ARGS(wq_thread, work));
|
2009-01-13 06:15:46 +08:00
|
|
|
|
|
|
|
/* Trace the creation of one workqueue thread on a cpu */
|
|
|
|
DECLARE_TRACE(workqueue_creation,
|
2009-03-10 03:47:18 +08:00
|
|
|
TP_PROTO(struct task_struct *wq_thread, int cpu),
|
|
|
|
TP_ARGS(wq_thread, cpu));
|
2009-01-13 06:15:46 +08:00
|
|
|
|
|
|
|
DECLARE_TRACE(workqueue_destruction,
|
2009-03-10 03:47:18 +08:00
|
|
|
TP_PROTO(struct task_struct *wq_thread),
|
|
|
|
TP_ARGS(wq_thread));
|
2009-01-13 06:15:46 +08:00
|
|
|
|
|
|
|
#endif /* __TRACE_WORKQUEUE_H */
|