From 33f126a4981af3598afcbf935243b42cdfbb5599 Mon Sep 17 00:00:00 2001 From: Li Zefan Date: Mon, 24 May 2010 16:23:35 +0800 Subject: [PATCH] --- yaml --- r: 205289 b: refs/heads/master c: 210f766915207636acccba7bec42248bfe882998 h: refs/heads/master i: 205287: 06d0035616797c81780fc84ef2e32c77fbe1e4ed v: v3 --- [refs] | 2 +- trunk/include/trace/events/sched.h | 32 +++++++----------------------- 2 files changed, 8 insertions(+), 26 deletions(-) diff --git a/[refs] b/[refs] index 2b69ca73678d..470694227a13 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 363d0f6490f319d0dd69b7ec7503c5f6cbab36d9 +refs/heads/master: 210f766915207636acccba7bec42248bfe882998 diff --git a/trunk/include/trace/events/sched.h b/trunk/include/trace/events/sched.h index b9e1dd6c6208..9208c92aeab5 100644 --- a/trunk/include/trace/events/sched.h +++ b/trunk/include/trace/events/sched.h @@ -49,31 +49,6 @@ TRACE_EVENT(sched_kthread_stop_ret, TP_printk("ret=%d", __entry->ret) ); -/* - * Tracepoint for waiting on task to unschedule: - */ -TRACE_EVENT(sched_wait_task, - - TP_PROTO(struct task_struct *p), - - TP_ARGS(p), - - TP_STRUCT__entry( - __array( char, comm, TASK_COMM_LEN ) - __field( pid_t, pid ) - __field( int, prio ) - ), - - TP_fast_assign( - memcpy(__entry->comm, p->comm, TASK_COMM_LEN); - __entry->pid = p->pid; - __entry->prio = p->prio; - ), - - TP_printk("comm=%s pid=%d prio=%d", - __entry->comm, __entry->pid, __entry->prio) -); - /* * Tracepoint for waking up a task: */ @@ -239,6 +214,13 @@ DEFINE_EVENT(sched_process_template, sched_process_exit, TP_PROTO(struct task_struct *p), TP_ARGS(p)); +/* + * Tracepoint for waiting on task to unschedule: + */ +DEFINE_EVENT(sched_process_template, sched_wait_task, + TP_PROTO(struct task_struct *p), + TP_ARGS(p)); + /* * Tracepoint for a waiting task: */