Use MAX_RT_PRIO offset in sched_wakeup_template
Merged as a "fix" into master and stable-2.7.
Thanks,
Mathieu
Quoted 40 lines · ----- On Dec 4, 2015, at 9:16 PM, Antoine Busque [email protected] wrote:
All other sched_* events with prio fields offset the task_struct's prio value by subtracting
MAX_RT_PRIO. This way the value corresponds to that given by the kernel'stask_priofunction, and thus with the prio context field.This adds the same offset to
sched_wakeup,sched_wakeup_new, andsched_waking, via thesched_wakeup_templateevent class. This way their value is comparable to other sched_* events, and the prio context.Signed-off-by Antoine Busque <[email protected]>---
instrumentation/events/lttng-module/sched.h| 4 ++--1 file changed, 2 insertions(+), 2 deletions(-)instrumentation/events/lttng-module/sched.h +2
-3@@ -155,7 +155,7 @@ LTTNG_TRACEPOINT_EVENT_CLASS(sched_wakeup_template,TP_FIELDS ( ctf_array_text(char, comm, p->comm, TASK_COMM_LEN) ctf_integer(pid_t, tid, p->pid) - ctf_integer(int, prio, p->prio) + ctf_integer(int, prio, p->prio - MAX_RT_PRIO)ctf_integer (int, target_cpu,task_cpu (p)) ) )@@ -175,7 +175,7 @@ LTTNG_TRACEPOINT_EVENT_CLASS(sched_wakeup_template,TP_FIELDS ( ctf_array_text(char, comm, p->comm, TASK_COMM_LEN) ctf_integer(pid_t, tid, p->pid) - ctf_integer(int, prio, p->prio) + ctf_integer(int, prio, p->prio - MAX_RT_PRIO) ctf_integer(int, success, success) #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,32)) ctf_integer(int, target_cpu, task_cpu(p)) --2.6.3
Signature · 3 lines
Mathieu Desnoyers EfficiOS Inc. http://www.efficios.com