[PATCH 05/10] tracing: add subsystem sched for sched events

Steven Rostedt
2009-02-28T09:12:15Z

[-- Attachment #1: 0005-tracing-add-subsystem-sched-for-sched-events.patch --]
[-- Type: text/plain, Size: 852 bytes --]

From: Steven Rostedt <srostedt@redhat.com>

Add the TRACE_SYSTEM sched for the sched events.

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
---
include/trace/sched_event_types.h | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/include/trace/sched_event_types.h b/include/trace/sched_event_types.h
index a3d3d66..2ada206 100644
--- a/include/trace/sched_event_types.h
+++ b/include/trace/sched_event_types.h
@@ -5,6 +5,9 @@
# error Unless you know what you are doing.
#endif

+#undef TRACE_SYSTEM
+#define TRACE_SYSTEM sched
+
TRACE_FORMAT(sched_kthread_stop,
TPPROTO(struct task_struct *t),
TPARGS(t),
@@ -70,3 +73,5 @@ TRACE_FORMAT(sched_signal_send,
TPPROTO(int sig, struct task_struct *p),
TPARGS(sig, p),
TPFMT("sig: %d task %s:%d", sig, p->comm, p->pid));
+
+#undef TRACE_SYSTEM
--
1.5.6.5

--