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