mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-12 00:38:55 +00:00
ftrace: trace scheduler rbtree
Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
parent
1a3c303433
commit
4ac3ba41d3
@ -129,6 +129,7 @@ static const char *trace_options[] = {
|
|||||||
"bin",
|
"bin",
|
||||||
"block",
|
"block",
|
||||||
"stacktrace",
|
"stacktrace",
|
||||||
|
"sched-tree",
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -286,6 +286,7 @@ enum trace_iterator_flags {
|
|||||||
TRACE_ITER_BIN = 0x40,
|
TRACE_ITER_BIN = 0x40,
|
||||||
TRACE_ITER_BLOCK = 0x80,
|
TRACE_ITER_BLOCK = 0x80,
|
||||||
TRACE_ITER_STACKTRACE = 0x100,
|
TRACE_ITER_STACKTRACE = 0x100,
|
||||||
|
TRACE_ITER_SCHED_TREE = 0x200,
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* _LINUX_KERNEL_TRACE_H */
|
#endif /* _LINUX_KERNEL_TRACE_H */
|
||||||
|
@ -36,7 +36,8 @@ ctx_switch_func(void *__rq, struct task_struct *prev, struct task_struct *next)
|
|||||||
|
|
||||||
if (likely(disabled == 1)) {
|
if (likely(disabled == 1)) {
|
||||||
tracing_sched_switch_trace(tr, data, prev, next, flags);
|
tracing_sched_switch_trace(tr, data, prev, next, flags);
|
||||||
ftrace_all_fair_tasks(__rq, tr, data);
|
if (trace_flags & TRACE_ITER_SCHED_TREE)
|
||||||
|
ftrace_all_fair_tasks(__rq, tr, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
atomic_dec(&data->disabled);
|
atomic_dec(&data->disabled);
|
||||||
@ -62,7 +63,8 @@ wakeup_func(void *__rq, struct task_struct *wakee, struct task_struct *curr)
|
|||||||
|
|
||||||
if (likely(disabled == 1)) {
|
if (likely(disabled == 1)) {
|
||||||
tracing_sched_wakeup_trace(tr, data, wakee, curr, flags);
|
tracing_sched_wakeup_trace(tr, data, wakee, curr, flags);
|
||||||
ftrace_all_fair_tasks(__rq, tr, data);
|
if (trace_flags & TRACE_ITER_SCHED_TREE)
|
||||||
|
ftrace_all_fair_tasks(__rq, tr, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
atomic_dec(&data->disabled);
|
atomic_dec(&data->disabled);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user