lkml.org 
[lkml]   [2014]   [Apr]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 1/8] sched & trace: Add a trace event for wait.
Date
From: Dongsheng <yangds.fnst@cn.fujitsu.com>

Signed-off-by: Dongsheng <yangds.fnst@cn.fujitsu.com>
---
include/trace/events/sched.h | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)

diff --git a/include/trace/events/sched.h b/include/trace/events/sched.h
index 67e1bbf..7aa7d43a 100644
--- a/include/trace/events/sched.h
+++ b/include/trace/events/sched.h
@@ -51,6 +51,26 @@ TRACE_EVENT(sched_kthread_stop_ret,
);

/*
+ * Tracepoint for wait:
+ */
+TRACE_EVENT(sched_wait,
+
+ TP_PROTO(struct task_struct *p),
+
+ TP_ARGS(p),
+
+ TP_STRUCT__entry(
+ __field( pid_t, pid )
+ ),
+
+ TP_fast_assign(
+ __entry->pid = p->pid;
+ ),
+
+ TP_printk("pid=%d", __entry->pid)
+);
+
+/*
* Tracepoint for waking up a task:
*/
DECLARE_EVENT_CLASS(sched_wakeup_template,
--
1.8.2.1


\
 
 \ /
  Last update: 2014-04-15 15:41    [W:0.100 / U:5.064 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site