mirror of
https://github.com/armbian/linux.git
synced 2026-01-06 10:13:00 -08:00
trace/events: fix gpu event timestamp formatting
This change fixes the how the gpu_sched_switch timestamp field is formatted. Signed-off-by: Jamie Gennis <jgennis@google.com> Change-Id: I273234935254ed15772c9e561c9af20e480004ae
This commit is contained in:
committed by
Arve Hjønnevåg
parent
930d53b7c0
commit
8202b6b71b
@@ -11,6 +11,7 @@
|
||||
({ \
|
||||
u64 t = ns + (NSEC_PER_USEC / 2); \
|
||||
do_div(t, NSEC_PER_SEC); \
|
||||
t; \
|
||||
})
|
||||
|
||||
#define show_usecs_from_ns(ns) \
|
||||
@@ -77,7 +78,7 @@ TRACE_EVENT(gpu_sched_switch,
|
||||
__entry->next_job_id = next_job_id;
|
||||
),
|
||||
|
||||
TP_printk("gpu_name=%s ts=%5llu.%06lu next_ctx_id=%lu next_prio=%ld "
|
||||
TP_printk("gpu_name=%s ts=%llu.%06lu next_ctx_id=%lu next_prio=%ld "
|
||||
"next_job_id=%lu",
|
||||
__get_str(gpu_name),
|
||||
(unsigned long long)show_secs_from_ns(__entry->timestamp),
|
||||
|
||||
Reference in New Issue
Block a user