From ae229b1df1ecceb483afb6e34cbeaad297fa4dab Mon Sep 17 00:00:00 2001 From: Marcin Maka Date: Mon, 2 Mar 2020 16:42:21 +0100 Subject: [PATCH] ll-scheduler: trace task activities using uuids Replacing pointers that varies from build to build with stable uuids makes analysis of traces much easier. Signed-off-by: Marcin Maka --- src/schedule/ll_schedule.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/schedule/ll_schedule.c b/src/schedule/ll_schedule.c index 9f6aa6ce1..b6857c8a6 100644 --- a/src/schedule/ll_schedule.c +++ b/src/schedule/ll_schedule.c @@ -101,7 +101,8 @@ static void schedule_ll_tasks_execute(struct ll_schedule_data *sch, /* don't enable irq, if no more tasks to do */ if (!atomic_sub(&sch->num_tasks, 1)) sch->domain->registered[cpu] = false; - trace_ll("task complete %p", (uintptr_t)task); + trace_ll("task complete %p %s", (uintptr_t)task, + task->uid); trace_ll("num_tasks %d total_num_tasks %d", atomic_read(&sch->num_tasks), atomic_read(&sch->domain->total_num_tasks)); @@ -296,8 +297,9 @@ static void schedule_ll_task(void *data, struct task *task, uint64_t start, pdata = ll_sch_get_pdata(task); - trace_ll("task add %p task->priority %d start %u period %u", - (uintptr_t)task, task->priority, start, period); + trace_ll("task add %p %s", (uintptr_t)task, task->uid); + trace_ll("task params pri %d flags %d start %u period %u", + task->priority, task->flags, start, period); pdata->period = period; @@ -377,7 +379,7 @@ static void schedule_ll_task_cancel(void *data, struct task *task) irq_local_disable(flags); - trace_ll("task cancel %p", (uintptr_t)task); + trace_ll("task cancel %p %s", (uintptr_t)task, task->uid); /* check to see if we are scheduled */ list_for_item(tlist, &sch->tasks) {