-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 209703 b: refs/heads/master c: e36c886 h: refs/heads/master i: 209701: 599dd69 209699: f30e6f9 209695: fdba08e v: v3
- Loading branch information
Arjan van de Ven
authored and
Linus Torvalds
committed
Aug 21, 2010
1 parent
3f708ad
commit 5d17747
Showing
3 changed files
with
72 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 69b26c7ad00fd5b6129400725e2ffb95134a0e1b | ||
refs/heads/master: e36c886a0f9d624377977fa6cae309cfd7f362fa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
#undef TRACE_SYSTEM | ||
#define TRACE_SYSTEM workqueue | ||
|
||
#if !defined(_TRACE_WORKQUEUE_H) || defined(TRACE_HEADER_MULTI_READ) | ||
#define _TRACE_WORKQUEUE_H | ||
|
||
#include <linux/tracepoint.h> | ||
#include <linux/workqueue.h> | ||
|
||
/** | ||
* workqueue_execute_start - called immediately before the workqueue callback | ||
* @work: pointer to struct work_struct | ||
* | ||
* Allows to track workqueue execution. | ||
*/ | ||
TRACE_EVENT(workqueue_execute_start, | ||
|
||
TP_PROTO(struct work_struct *work), | ||
|
||
TP_ARGS(work), | ||
|
||
TP_STRUCT__entry( | ||
__field( void *, work ) | ||
__field( void *, function) | ||
), | ||
|
||
TP_fast_assign( | ||
__entry->work = work; | ||
__entry->function = work->func; | ||
), | ||
|
||
TP_printk("work struct %p: function %pf", __entry->work, __entry->function) | ||
); | ||
|
||
/** | ||
* workqueue_execute_end - called immediately before the workqueue callback | ||
* @work: pointer to struct work_struct | ||
* | ||
* Allows to track workqueue execution. | ||
*/ | ||
TRACE_EVENT(workqueue_execute_end, | ||
|
||
TP_PROTO(struct work_struct *work), | ||
|
||
TP_ARGS(work), | ||
|
||
TP_STRUCT__entry( | ||
__field( void *, work ) | ||
), | ||
|
||
TP_fast_assign( | ||
__entry->work = work; | ||
), | ||
|
||
TP_printk("work struct %p", __entry->work) | ||
); | ||
|
||
|
||
#endif /* _TRACE_WORKQUEUE_H */ | ||
|
||
/* This part must be outside protection */ | ||
#include <trace/define_trace.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters