Fix: Use MAX_RT_PRIO offset in sched_wakeup_template
authorAntoine Busque <abusque@efficios.com>
Fri, 4 Dec 2015 20:16:59 +0000 (15:16 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sat, 5 Dec 2015 08:33:46 +0000 (09:33 +0100)
commit5aa835c01d3b5e319f21c1bd850a98cbf9066a3e
treebcbf6aff1a3b0258e09e385e5f697a986478860f
parent3ee729fef47b3559f2f5de83654b92c57df5ee7d
Fix: Use MAX_RT_PRIO offset in sched_wakeup_template

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's task_prio function, and thus with the
prio context field.

This adds the same offset to sched_wakeup, sched_wakeup_new, and
sched_waking, via the sched_wakeup_template event class. This way
their value is comparable to other sched_* events, and the prio
context.

Signed-off-by: Antoine Busque <abusque@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
instrumentation/events/lttng-module/sched.h
This page took 0.026816 seconds and 4 git commands to generate.