Loading kernel/trace/trace.c +1 −0 Original line number Diff line number Diff line Loading @@ -129,6 +129,7 @@ static const char *trace_options[] = { "bin", "block", "stacktrace", "sched-tree", NULL }; Loading kernel/trace/trace.h +1 −0 Original line number Diff line number Diff line Loading @@ -286,6 +286,7 @@ enum trace_iterator_flags { TRACE_ITER_BIN = 0x40, TRACE_ITER_BLOCK = 0x80, TRACE_ITER_STACKTRACE = 0x100, TRACE_ITER_SCHED_TREE = 0x200, }; #endif /* _LINUX_KERNEL_TRACE_H */ kernel/trace/trace_sched_switch.c +4 −2 Original line number Diff line number Diff line Loading @@ -36,6 +36,7 @@ ctx_switch_func(void *__rq, struct task_struct *prev, struct task_struct *next) if (likely(disabled == 1)) { tracing_sched_switch_trace(tr, data, prev, next, flags); if (trace_flags & TRACE_ITER_SCHED_TREE) ftrace_all_fair_tasks(__rq, tr, data); } Loading @@ -62,6 +63,7 @@ wakeup_func(void *__rq, struct task_struct *wakee, struct task_struct *curr) if (likely(disabled == 1)) { tracing_sched_wakeup_trace(tr, data, wakee, curr, flags); if (trace_flags & TRACE_ITER_SCHED_TREE) ftrace_all_fair_tasks(__rq, tr, data); } Loading Loading
kernel/trace/trace.c +1 −0 Original line number Diff line number Diff line Loading @@ -129,6 +129,7 @@ static const char *trace_options[] = { "bin", "block", "stacktrace", "sched-tree", NULL }; Loading
kernel/trace/trace.h +1 −0 Original line number Diff line number Diff line Loading @@ -286,6 +286,7 @@ enum trace_iterator_flags { TRACE_ITER_BIN = 0x40, TRACE_ITER_BLOCK = 0x80, TRACE_ITER_STACKTRACE = 0x100, TRACE_ITER_SCHED_TREE = 0x200, }; #endif /* _LINUX_KERNEL_TRACE_H */
kernel/trace/trace_sched_switch.c +4 −2 Original line number Diff line number Diff line Loading @@ -36,6 +36,7 @@ ctx_switch_func(void *__rq, struct task_struct *prev, struct task_struct *next) if (likely(disabled == 1)) { tracing_sched_switch_trace(tr, data, prev, next, flags); if (trace_flags & TRACE_ITER_SCHED_TREE) ftrace_all_fair_tasks(__rq, tr, data); } Loading @@ -62,6 +63,7 @@ wakeup_func(void *__rq, struct task_struct *wakee, struct task_struct *curr) if (likely(disabled == 1)) { tracing_sched_wakeup_trace(tr, data, wakee, curr, flags); if (trace_flags & TRACE_ITER_SCHED_TREE) ftrace_all_fair_tasks(__rq, tr, data); } Loading