-
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.
- Loading branch information
Larry Finger
authored and
Larry Finger
committed
Aug 22, 2010
1 parent
d5eebe8
commit 7cc3c31
Showing
12 changed files
with
134 additions
and
29 deletions.
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: 5519ec120d6617640dc2812a2cf05154422878ad | ||
refs/heads/master: 2c1179afc3bc92a2db930a085fee33214bd886e3 |
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
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
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
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
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
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
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
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
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
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