summaryrefslogtreecommitdiff
path: root/include/trace
diff options
context:
space:
mode:
authorJamie Gennis <jgennis@google.com>2013-04-18 20:36:21 -0700
committerJohn Stultz <john.stultz@linaro.org>2016-02-16 13:53:28 -0800
commit48236926abea0f6a1367f61f8ba997aa3d106eee (patch)
tree91f9ea5878d5c2055908a5d98298958a5a78ff10 /include/trace
parente33c31a0916861e63c333c815ee5a1afc151bfe3 (diff)
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
Diffstat (limited to 'include/trace')
-rw-r--r--include/trace/events/gpu.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/trace/events/gpu.h b/include/trace/events/gpu.h
index 09efa71d66c6..7e15cdfafe5a 100644
--- a/include/trace/events/gpu.h
+++ b/include/trace/events/gpu.h
@@ -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),