Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1193081
| From | yangoliver <yang_oliver@hotmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 1/2] sched: Some sched trace points should depend on SCHEDSTATS |
| Date | 2015-07-27 15:20 +0200 |
| Message-ID | <pQQtY-2W3-29@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
When SCHEDSTATS is not enabled, follow trace points shouldn't be accessed by default, sched:sched_stat_wait sched:sched_stat_sleep sched:sched_stat_iowait sched:sched_stat_blocked These trace points should only be available when SCHEDSTATS is enabled. Signed-off-by: Yong Yang <yangoliver@gmail.com> --- include/trace/events/sched.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/trace/events/sched.h b/include/trace/events/sched.h index d57a575..5b34309 100644 --- a/include/trace/events/sched.h +++ b/include/trace/events/sched.h @@ -334,6 +334,7 @@ DECLARE_EVENT_CLASS(sched_stat_template, ); +#ifdef CONFIG_SCHEDSTATS /* * Tracepoint for accounting wait time (time the task is runnable * but not actually running due to scheduler contention). @@ -364,6 +365,7 @@ DEFINE_EVENT(sched_stat_template, sched_stat_iowait, DEFINE_EVENT(sched_stat_template, sched_stat_blocked, TP_PROTO(struct task_struct *tsk, u64 delay), TP_ARGS(tsk, delay)); +#endif /* * Tracepoint for accounting runtime (time the task is executing -- 2.4.0 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH 1/2] sched: Some sched trace points should depend on SCHEDSTATS yangoliver <yang_oliver@hotmail.com> - 2015-07-27 15:20 +0200
Re: [PATCH 1/2] sched: Some sched trace points should depend on SCHEDSTATS Steven Rostedt <rostedt@goodmis.org> - 2015-08-03 19:40 +0200
Re: [PATCH 1/2] sched: Some sched trace points should depend on SCHEDSTATS Oliver Yang <yang_oliver@hotmail.com> - 2015-08-04 09:10 +0200
csiph-web