Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e15fb218 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "sched/tracing: Fix format specifiers in sched_compute_energy"

parents 49ed411f ca7e6941
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -245,6 +245,7 @@ TRACE_EVENT(sched_migrate_task,
		__field(	int,	prio			)
		__field(	int,	orig_cpu		)
		__field(	int,	dest_cpu		)
		__field(	int,	running			)
	),

	TP_fast_assign(
@@ -253,11 +254,13 @@ TRACE_EVENT(sched_migrate_task,
		__entry->prio		= p->prio; /* XXX SCHED_DEADLINE */
		__entry->orig_cpu	= task_cpu(p);
		__entry->dest_cpu	= dest_cpu;
		__entry->running	= (p->state == TASK_RUNNING);
	),

	TP_printk("comm=%s pid=%d prio=%d orig_cpu=%d dest_cpu=%d",
	TP_printk("comm=%s pid=%d prio=%d orig_cpu=%d dest_cpu=%d running=%d",
		  __entry->comm, __entry->pid, __entry->prio,
		  __entry->orig_cpu, __entry->dest_cpu)
		  __entry->orig_cpu, __entry->dest_cpu,
		  __entry->running)
);

/*
@@ -987,7 +990,7 @@ TRACE_EVENT(sched_compute_energy,
		__entry->best_energy            = best_energy;
	),

	TP_printk("pid=%d comm=%s util=%lu prev_cpu=%d prev_energy=%llu eval_cpu=%d eval_energy=%llu best_energy_cpu=%d best_energy=%llu",
	TP_printk("pid=%d comm=%s util=%lu prev_cpu=%d prev_energy=%lu eval_cpu=%d eval_energy=%lu best_energy_cpu=%d best_energy=%lu",
		__entry->pid, __entry->comm, __entry->util, __entry->prev_cpu,
		__entry->prev_energy, __entry->eval_cpu, __entry->eval_energy,
		__entry->best_energy_cpu, __entry->best_energy)