projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update kernel probes to more detailed match to kernel versions
[lttng-modules.git]
/
instrumentation
/
events
/
mainline
/
sched.h
diff --git
a/instrumentation/events/mainline/sched.h
b/instrumentation/events/mainline/sched.h
index 6700ecc9a6055b38936d63f254c59eabfcea8229..ea7a2035456d4f913e15b9997696ab5ca4934ad1 100644
(file)
--- a/
instrumentation/events/mainline/sched.h
+++ b/
instrumentation/events/mainline/sched.h
@@
-6,6
+6,7
@@
#include <linux/sched.h>
#include <linux/tracepoint.h>
#include <linux/sched.h>
#include <linux/tracepoint.h>
+#include <linux/binfmts.h>
/*
* Tracepoint for calling kthread_stop, performed to end a kthread:
/*
* Tracepoint for calling kthread_stop, performed to end a kthread:
@@
-100,7
+101,7
@@
static inline long __trace_sched_switch_state(struct task_struct *p)
* For all intents and purposes a preempted task is a running task.
*/
if (task_thread_info(p)->preempt_count & PREEMPT_ACTIVE)
* For all intents and purposes a preempted task is a running task.
*/
if (task_thread_info(p)->preempt_count & PREEMPT_ACTIVE)
- state = TASK_RUNNING;
+ state = TASK_RUNNING
| TASK_STATE_MAX
;
#endif
return state;
#endif
return state;
@@
-137,13
+138,14
@@
TRACE_EVENT(sched_switch,
__entry->next_prio = next->prio;
),
__entry->next_prio = next->prio;
),
- TP_printk("prev_comm=%s prev_pid=%d prev_prio=%d prev_state=%s ==> next_comm=%s next_pid=%d next_prio=%d",
+ TP_printk("prev_comm=%s prev_pid=%d prev_prio=%d prev_state=%s
%s
==> next_comm=%s next_pid=%d next_prio=%d",
__entry->prev_comm, __entry->prev_pid, __entry->prev_prio,
__entry->prev_comm, __entry->prev_pid, __entry->prev_prio,
- __entry->prev_state ?
- __print_flags(__entry->prev_state, "|",
+ __entry->prev_state
& (TASK_STATE_MAX-1)
?
+ __print_flags(__entry->prev_state
& (TASK_STATE_MAX-1)
, "|",
{ 1, "S"} , { 2, "D" }, { 4, "T" }, { 8, "t" },
{ 16, "Z" }, { 32, "X" }, { 64, "x" },
{ 128, "W" }) : "R",
{ 1, "S"} , { 2, "D" }, { 4, "T" }, { 8, "t" },
{ 16, "Z" }, { 32, "X" }, { 64, "x" },
{ 128, "W" }) : "R",
+ __entry->prev_state & TASK_STATE_MAX ? "+" : "",
__entry->next_comm, __entry->next_pid, __entry->next_prio)
);
__entry->next_comm, __entry->next_pid, __entry->next_prio)
);
@@
-355,6
+357,13
@@
DEFINE_EVENT(sched_stat_template, sched_stat_iowait,
TP_PROTO(struct task_struct *tsk, u64 delay),
TP_ARGS(tsk, delay));
TP_PROTO(struct task_struct *tsk, u64 delay),
TP_ARGS(tsk, delay));
+/*
+ * Tracepoint for accounting blocked time (time the task is in uninterruptible).
+ */
+DEFINE_EVENT(sched_stat_template, sched_stat_blocked,
+ TP_PROTO(struct task_struct *tsk, u64 delay),
+ TP_ARGS(tsk, delay));
+
/*
* Tracepoint for accounting runtime (time the task is executing
* on a CPU).
/*
* Tracepoint for accounting runtime (time the task is executing
* on a CPU).
This page took
0.024309 seconds
and
4
git commands to generate.