summaryrefslogtreecommitdiff
path: root/kernel/sched/hmp.c
diff options
context:
space:
mode:
authorPuja Gupta <pujag@codeaurora.org>2017-11-16 14:18:04 -0800
committerPavankumar Kondeti <pkondeti@codeaurora.org>2018-01-05 09:15:54 +0530
commitf9e96dfcb886acb632bb287982fae51e7e31f289 (patch)
tree593e2608c6a86e7f31cd032e3fb74d20b23079be /kernel/sched/hmp.c
parent6e92713cbafca57d48efdf2108fedb68addbb00b (diff)
sched: Update tracepoint to include task info
Update sched_get_task_cpu_cycles trace to include pid and name of the task to help with debug better. Change-Id: Ic307ebcf0a44c94bf0a2aa1a02b8aeff39010b29 Signed-off-by: Puja Gupta <pujag@codeaurora.org> Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
Diffstat (limited to 'kernel/sched/hmp.c')
-rw-r--r--kernel/sched/hmp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/sched/hmp.c b/kernel/sched/hmp.c
index ae6876e62c0f..a665b559f4e9 100644
--- a/kernel/sched/hmp.c
+++ b/kernel/sched/hmp.c
@@ -2608,7 +2608,8 @@ update_task_rq_cpu_cycles(struct task_struct *p, struct rq *rq, int event,
p->cpu_cycles = cur_cycles;
- trace_sched_get_task_cpu_cycles(cpu, event, rq->cc.cycles, rq->cc.time);
+ trace_sched_get_task_cpu_cycles(cpu, event, rq->cc.cycles,
+ rq->cc.time, p);
}
static int