2009-01-13 05:15:46 +07: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 02:47:18 +07:00
|
|
|
TP_PROTO(struct task_struct *wq_thread, struct work_struct *work),
|
|
|
|
TP_ARGS(wq_thread, work));
|
2009-01-13 05:15:46 +07:00
|
|
|
|
|
|
|
DECLARE_TRACE(workqueue_execution,
|
2009-03-10 02:47:18 +07:00
|
|
|
TP_PROTO(struct task_struct *wq_thread, struct work_struct *work),
|
|
|
|
TP_ARGS(wq_thread, work));
|
2009-01-13 05:15:46 +07:00
|
|
|
|
|
|
|
/* Trace the creation of one workqueue thread on a cpu */
|
|
|
|
DECLARE_TRACE(workqueue_creation,
|
2009-03-10 02:47:18 +07:00
|
|
|
TP_PROTO(struct task_struct *wq_thread, int cpu),
|
|
|
|
TP_ARGS(wq_thread, cpu));
|
2009-01-13 05:15:46 +07:00
|
|
|
|
|
|
|
DECLARE_TRACE(workqueue_destruction,
|
2009-03-10 02:47:18 +07:00
|
|
|
TP_PROTO(struct task_struct *wq_thread),
|
|
|
|
TP_ARGS(wq_thread));
|
2009-01-13 05:15:46 +07:00
|
|
|
|
|
|
|
#endif /* __TRACE_WORKQUEUE_H */
|