diff options
author | Juri Lelli <juri.lelli@arm.com> | 2015-11-13 10:52:19 +0000 |
---|---|---|
committer | Juri Lelli <juri.lelli@arm.com> | 2015-11-13 10:52:19 +0000 |
commit | 79a7cea3f849aab3355963d1d1ddb6628ac1fbde (patch) | |
tree | c67b1ea98ab61cafa082838e95f6971a75d8751d | |
parent | a975509f7aa00162333b9cb2bc371c4d95fa2484 (diff) | |
download | linux-linaro-stable-79a7cea3f849aab3355963d1d1ddb6628ac1fbde.tar.gz |
trace/events/sched: guard PELT related tracepoint with CONFIG_SMP
We have to guard PELT related tracepoints with CONFIG_SMP as some cfs_rq
fields are not defined for !CONFIG_SMP.
Signed-off-by: Juri Lelli <juri.lelli@arm.com>
-rw-r--r-- | include/trace/events/sched.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/trace/events/sched.h b/include/trace/events/sched.h index 7308931f88d7..e20c73238f42 100644 --- a/include/trace/events/sched.h +++ b/include/trace/events/sched.h @@ -551,6 +551,7 @@ TRACE_EVENT(sched_wake_idle_without_ipi, TP_printk("cpu=%d", __entry->cpu) ); +#ifdef CONFIG_SMP TRACE_EVENT(sched_contrib_scale_f, TP_PROTO(int cpu, unsigned long freq_scale_factor, @@ -639,6 +640,7 @@ TRACE_EVENT(sched_load_avg_cpu, TP_printk("cpu=%d load=%lu utilization=%lu", __entry->cpu, __entry->load, __entry->utilization) ); +#endif /* CONFIG_SMP */ /* * Tracepoint for sched_tune_config settings |