summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPatrick Bellasi <patrick.bellasi@arm.com>2016-01-14 18:43:37 +0000
committerJohn Stultz <john.stultz@linaro.org>2016-08-10 15:06:58 -0700
commit962b7c10ab3a09cc30114d5ddf01abd9e6979278 (patch)
tree91119dc3765be00815930548a8008c4c82966721 /include
parent687fa2dcd285d3344fe89cd6a3c992fcaba13b6f (diff)
DEBUG: sched/tune: add tracepoint for task boost signal
Change-Id: I545d3bf5569fc41c0fa70f51dff9a19c11d532ee Signed-off-by: Patrick Bellasi <patrick.bellasi@arm.com>
Diffstat (limited to 'include')
-rw-r--r--include/trace/events/sched.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/include/trace/events/sched.h b/include/trace/events/sched.h
index 7ec9dcfc701a..606509500446 100644
--- a/include/trace/events/sched.h
+++ b/include/trace/events/sched.h
@@ -764,6 +764,36 @@ TRACE_EVENT(sched_tune_boostgroup_update,
__entry->cpu, __entry->variation, __entry->max_boost)
);
+/*
+ * Tracepoint for accounting task boosted utilization
+ */
+TRACE_EVENT(sched_boost_task,
+
+ TP_PROTO(struct task_struct *tsk, unsigned long util, unsigned long margin),
+
+ TP_ARGS(tsk, util, margin),
+
+ TP_STRUCT__entry(
+ __array( char, comm, TASK_COMM_LEN )
+ __field( pid_t, pid )
+ __field( unsigned long, util )
+ __field( unsigned long, margin )
+
+ ),
+
+ TP_fast_assign(
+ memcpy(__entry->comm, tsk->comm, TASK_COMM_LEN);
+ __entry->pid = tsk->pid;
+ __entry->util = util;
+ __entry->margin = margin;
+ ),
+
+ TP_printk("comm=%s pid=%d util=%lu margin=%lu",
+ __entry->comm, __entry->pid,
+ __entry->util,
+ __entry->margin)
+);
+
#endif /* _TRACE_SCHED_H */
/* This part must be outside protection */