projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add support for RHEL 9.1
[lttng-modules.git]
/
instrumentation
/
events
/
lttng-module
/
sched.h
diff --git
a/instrumentation/events/lttng-module/sched.h
b/instrumentation/events/lttng-module/sched.h
index 492472860dc033daf19d7da052f8fa54426bdabd..6549fbdee81ae942994b9aa53c8812e82d964cad 100644
(file)
--- a/
instrumentation/events/lttng-module/sched.h
+++ b/
instrumentation/events/lttng-module/sched.h
@@
-20,7
+20,8
@@
#ifndef _TRACE_SCHED_DEF_
#define _TRACE_SCHED_DEF_
#ifndef _TRACE_SCHED_DEF_
#define _TRACE_SCHED_DEF_
-#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,18,0))
+#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,18,0) \
+ || LTTNG_RHEL_KERNEL_RANGE(5,14,0,162,0,0, 5,15,0,0,0,0))
static inline long __trace_sched_switch_state(bool preempt,
unsigned int prev_state,
static inline long __trace_sched_switch_state(bool preempt,
unsigned int prev_state,
@@
-352,15
+353,16
@@
LTTNG_TRACEPOINT_EVENT_INSTANCE(sched_wakeup_template, sched_wakeup_new,
* Tracepoint for task switches, performed by the scheduler:
*/
* Tracepoint for task switches, performed by the scheduler:
*/
-#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,18,0))
+#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,18,0) \
+ || LTTNG_RHEL_KERNEL_RANGE(5,14,0,162,0,0, 5,15,0,0,0,0))
LTTNG_TRACEPOINT_EVENT(sched_switch,
TP_PROTO(bool preempt,
LTTNG_TRACEPOINT_EVENT(sched_switch,
TP_PROTO(bool preempt,
- unsigned int prev_state,
struct task_struct *prev,
struct task_struct *prev,
- struct task_struct *next),
+ struct task_struct *next,
+ unsigned int prev_state),
- TP_ARGS(preempt, prev
_state, prev, next
),
+ TP_ARGS(preempt, prev
, next, prev_state
),
TP_FIELDS(
ctf_array_text(char, prev_comm, prev->comm, TASK_COMM_LEN)
TP_FIELDS(
ctf_array_text(char, prev_comm, prev->comm, TASK_COMM_LEN)
This page took
0.024094 seconds
and
4
git commands to generate.