|
@@ -57,7 +57,7 @@ DECLARE_EVENT_CLASS(sched_wakeup_template,
|
|
|
|
|
|
TP_PROTO(struct task_struct *p, int success),
|
|
|
|
|
|
- TP_ARGS(p, success),
|
|
|
+ TP_ARGS(__perf_task(p), success),
|
|
|
|
|
|
TP_STRUCT__entry(
|
|
|
__array( char, comm, TASK_COMM_LEN )
|
|
@@ -73,9 +73,6 @@ DECLARE_EVENT_CLASS(sched_wakeup_template,
|
|
|
__entry->prio = p->prio;
|
|
|
__entry->success = success;
|
|
|
__entry->target_cpu = task_cpu(p);
|
|
|
- )
|
|
|
- TP_perf_assign(
|
|
|
- __perf_task(p);
|
|
|
),
|
|
|
|
|
|
TP_printk("comm=%s pid=%d prio=%d success=%d target_cpu=%03d",
|
|
@@ -313,7 +310,7 @@ DECLARE_EVENT_CLASS(sched_stat_template,
|
|
|
|
|
|
TP_PROTO(struct task_struct *tsk, u64 delay),
|
|
|
|
|
|
- TP_ARGS(tsk, delay),
|
|
|
+ TP_ARGS(__perf_task(tsk), __perf_count(delay)),
|
|
|
|
|
|
TP_STRUCT__entry(
|
|
|
__array( char, comm, TASK_COMM_LEN )
|
|
@@ -325,10 +322,6 @@ DECLARE_EVENT_CLASS(sched_stat_template,
|
|
|
memcpy(__entry->comm, tsk->comm, TASK_COMM_LEN);
|
|
|
__entry->pid = tsk->pid;
|
|
|
__entry->delay = delay;
|
|
|
- )
|
|
|
- TP_perf_assign(
|
|
|
- __perf_count(delay);
|
|
|
- __perf_task(tsk);
|
|
|
),
|
|
|
|
|
|
TP_printk("comm=%s pid=%d delay=%Lu [ns]",
|
|
@@ -372,11 +365,11 @@ DEFINE_EVENT(sched_stat_template, sched_stat_blocked,
|
|
|
* Tracepoint for accounting runtime (time the task is executing
|
|
|
* on a CPU).
|
|
|
*/
|
|
|
-TRACE_EVENT(sched_stat_runtime,
|
|
|
+DECLARE_EVENT_CLASS(sched_stat_runtime,
|
|
|
|
|
|
TP_PROTO(struct task_struct *tsk, u64 runtime, u64 vruntime),
|
|
|
|
|
|
- TP_ARGS(tsk, runtime, vruntime),
|
|
|
+ TP_ARGS(tsk, __perf_count(runtime), vruntime),
|
|
|
|
|
|
TP_STRUCT__entry(
|
|
|
__array( char, comm, TASK_COMM_LEN )
|
|
@@ -390,9 +383,6 @@ TRACE_EVENT(sched_stat_runtime,
|
|
|
__entry->pid = tsk->pid;
|
|
|
__entry->runtime = runtime;
|
|
|
__entry->vruntime = vruntime;
|
|
|
- )
|
|
|
- TP_perf_assign(
|
|
|
- __perf_count(runtime);
|
|
|
),
|
|
|
|
|
|
TP_printk("comm=%s pid=%d runtime=%Lu [ns] vruntime=%Lu [ns]",
|
|
@@ -401,6 +391,10 @@ TRACE_EVENT(sched_stat_runtime,
|
|
|
(unsigned long long)__entry->vruntime)
|
|
|
);
|
|
|
|
|
|
+DEFINE_EVENT(sched_stat_runtime, sched_stat_runtime,
|
|
|
+ TP_PROTO(struct task_struct *tsk, u64 runtime, u64 vruntime),
|
|
|
+ TP_ARGS(tsk, runtime, vruntime));
|
|
|
+
|
|
|
/*
|
|
|
* Tracepoint for showing priority inheritance modifying a tasks
|
|
|
* priority.
|