summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJuri Lelli <juri.lelli@arm.com>2015-11-09 12:07:48 +0000
committerAmit Pundir <amit.pundir@linaro.org>2016-09-14 14:58:22 +0530
commit69852bd9a380fdd066e156d3511db645340b9e8c (patch)
tree8bf19f13e6050155ad28bb9a7460e5d7dd800d23 /include
parentc604a5fa23600c15999d0a8e75669bb58f906fe7 (diff)
DEBUG: sched: add tracepoint for CPU load/util signals
Signed-off-by: Juri Lelli <juri.lelli@arm.com>
Diffstat (limited to 'include')
-rw-r--r--include/trace/events/sched.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/include/trace/events/sched.h b/include/trace/events/sched.h
index cef05f0abea2..5a8951cb4a10 100644
--- a/include/trace/events/sched.h
+++ b/include/trace/events/sched.h
@@ -678,6 +678,31 @@ TRACE_EVENT(sched_load_avg_task,
(u32)__entry->util_sum,
(u32)__entry->period_contrib)
);
+
+/*
+ * Tracepoint for accounting sched averages for cpus.
+ */
+TRACE_EVENT(sched_load_avg_cpu,
+
+ TP_PROTO(int cpu, struct cfs_rq *cfs_rq),
+
+ TP_ARGS(cpu, cfs_rq),
+
+ TP_STRUCT__entry(
+ __field( int, cpu )
+ __field( unsigned long, load_avg )
+ __field( unsigned long, util_avg )
+ ),
+
+ TP_fast_assign(
+ __entry->cpu = cpu;
+ __entry->load_avg = cfs_rq->avg.load_avg;
+ __entry->util_avg = cfs_rq->avg.util_avg;
+ ),
+
+ TP_printk("cpu=%d load_avg=%lu util_avg=%lu",
+ __entry->cpu, __entry->load_avg, __entry->util_avg)
+);
#endif /* _TRACE_SCHED_H */
/* This part must be outside protection */