[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <6d3aa5da995cfdb74b1d1c349c74a8c01ba9cdf6.1397562542.git.yangds.fnst@cn.fujitsu.com>
Date: Tue, 15 Apr 2014 21:32:50 +0900
From: Dongsheng Yang <yangds.fnst@...fujitsu.com>
To: <rostedt@...dmis.org>, <fweisbec@...il.com>, <mingo@...hat.com>,
<peterz@...radead.org>, <acme@...stprotocols.net>
CC: <linux-kernel@...r.kernel.org>,
Dongsheng <yangds.fnst@...fujitsu.com>
Subject: [PATCH 1/8] sched & trace: Add a trace event for wait.
From: Dongsheng <yangds.fnst@...fujitsu.com>
Signed-off-by: Dongsheng <yangds.fnst@...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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists