tracing: add sched_set_prio tracepoint
[deliverable/linux.git] / include / trace / events / sched.h
index 9b90c57517a918687189933ae6920b80d251e98e..3b83ddbfe3319487c3e76e654fcf1658b596fb89 100644 (file)
@@ -407,11 +407,7 @@ 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.
- */
-TRACE_EVENT(sched_pi_setprio,
+DECLARE_EVENT_CLASS(sched_prio_template,
 
        TP_PROTO(struct task_struct *tsk, int newprio),
 
@@ -436,6 +432,21 @@ TRACE_EVENT(sched_pi_setprio,
                        __entry->oldprio, __entry->newprio)
 );
 
+/*
+ * Tracepoint for showing priority inheritance modifying a tasks
+ * priority.
+ */
+DEFINE_EVENT(sched_prio_template, sched_pi_setprio,
+               TP_PROTO(struct task_struct *tsk, int newprio),
+               TP_ARGS(tsk, newprio));
+
+/*
+ * Tracepoint for priority changes of a task.
+ */
+DEFINE_EVENT(sched_prio_template, sched_set_prio,
+               TP_PROTO(struct task_struct *tsk, int newprio),
+               TP_ARGS(tsk, newprio));
+
 #ifdef CONFIG_DETECT_HUNG_TASK
 TRACE_EVENT(sched_process_hang,
        TP_PROTO(struct task_struct *tsk),
This page took 0.025211 seconds and 5 git commands to generate.