summaryrefslogtreecommitdiff
path: root/include/trace
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2011-11-17 13:11:21 +0200
committerDan Willemsen <dwillemsen@nvidia.com>2013-09-14 01:22:29 -0700
commit7cd8b80df6385570f43cce2174a584700d7f7a7a (patch)
tree19ad9e030d4908953d6e0e3fec2cdc39afcd14b7 /include/trace
parenteec718525660e38865b314f481dd23a2c6326b5e (diff)
video: tegra: host: Add syncpt value to traces
Add current values of sync points to sync point read and wait IOCTL's. Change-Id: I479a66e283b47867ed13685b75c1858b4fb65c2d Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/80006 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com> Rebase-Id: R3fd517ecfd8bc616e6fcc30778a3442ec44c25ff
Diffstat (limited to 'include/trace')
-rw-r--r--include/trace/events/nvhost.h32
1 files changed, 21 insertions, 11 deletions
diff --git a/include/trace/events/nvhost.h b/include/trace/events/nvhost.h
index 6c266b9f2ea4..1e28559c9287 100644
--- a/include/trace/events/nvhost.h
+++ b/include/trace/events/nvhost.h
@@ -3,7 +3,7 @@
*
* Nvhost event logging to ftrace.
*
- * Copyright (c) 2010-2011, NVIDIA Corporation.
+ * Copyright (c) 2010-2012, NVIDIA Corporation.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -291,40 +291,47 @@ TRACE_EVENT(nvhost_ioctl_ctrl_syncpt_incr,
);
TRACE_EVENT(nvhost_ioctl_ctrl_syncpt_read,
- TP_PROTO(u32 id),
+ TP_PROTO(u32 id, u32 value),
- TP_ARGS(id),
+ TP_ARGS(id, value),
TP_STRUCT__entry(
__field(u32, id);
+ __field(u32, value);
),
TP_fast_assign(
__entry->id = id;
+ __entry->value = value;
),
- TP_printk("id=%d", __entry->id)
+ TP_printk("id=%d, value=%d", __entry->id, __entry->value)
);
TRACE_EVENT(nvhost_ioctl_ctrl_syncpt_wait,
- TP_PROTO(u32 id, u32 threshold, s32 timeout),
+ TP_PROTO(u32 id, u32 threshold, s32 timeout, u32 value, int err),
- TP_ARGS(id, threshold, timeout),
+ TP_ARGS(id, threshold, timeout, value, err),
TP_STRUCT__entry(
__field(u32, id)
__field(u32, threshold)
__field(s32, timeout)
+ __field(u32, value)
+ __field(int, err)
),
TP_fast_assign(
__entry->id = id;
__entry->threshold = threshold;
__entry->timeout = timeout;
+ __entry->value = value;
+ __entry->err = err;
),
- TP_printk("id=%u, threshold=%u, timeout=%d",
- __entry->id, __entry->threshold, __entry->timeout)
+ TP_printk("id=%u, threshold=%u, timeout=%d, value=%u, err=%d",
+ __entry->id, __entry->threshold, __entry->timeout,
+ __entry->value, __entry->err)
);
TRACE_EVENT(nvhost_ioctl_ctrl_module_regrdwr,
@@ -370,21 +377,24 @@ TRACE_EVENT(nvhost_channel_submitted,
);
TRACE_EVENT(nvhost_channel_submit_complete,
- TP_PROTO(const char *name, int count),
+ TP_PROTO(const char *name, int count, u32 thresh),
- TP_ARGS(name, count),
+ TP_ARGS(name, count, thresh),
TP_STRUCT__entry(
__field(const char *, name)
__field(int, count)
+ __field(u32, thresh)
),
TP_fast_assign(
__entry->name = name;
__entry->count = count;
+ __entry->thresh = thresh;
),
- TP_printk("name=%s, count=%d", __entry->name, __entry->count)
+ TP_printk("name=%s, count=%d, thresh=%d",
+ __entry->name, __entry->count, __entry->thresh)
);
TRACE_EVENT(nvhost_wait_cdma,