From 7a04605636a4af78951fe0830fa9f1630fdfccd4 Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Mon, 17 Jun 2013 15:02:06 +0300 Subject: video: tegra: host: Add gpfifo tracing Add gpfifo tracing. This needs decoding of the gpfifo, so adds also PBDMA entry constants to hardware headers, and takes them into use. Also changes submit event to be called before sending to hw, and a new submitted event that indicates we've written submit. Change-Id: I546a2ba770fe803795f660a2ff7aabc506f2004c Signed-off-by: Terje Bergstrom Reviewed-on: http://git-master/r/241894 Reviewed-by: Bharat Nihalani Tested-by: Bharat Nihalani --- include/trace/events/nvhost.h | 48 +++++++++++++++++++++++++++++++++++++++---- 1 file changed, 44 insertions(+), 4 deletions(-) (limited to 'include/trace') diff --git a/include/trace/events/nvhost.h b/include/trace/events/nvhost.h index 7217cc29e632..35c83608ce73 100644 --- a/include/trace/events/nvhost.h +++ b/include/trace/events/nvhost.h @@ -707,9 +707,11 @@ TRACE_EVENT(nvhost_module_update_rate, TRACE_EVENT(nvhost_channel_submit_gpfifo, TP_PROTO(const char *name, u32 hw_chid, u32 num_entries, - u32 flags, u32 wait_id, u32 incr_id), + u32 flags, u32 wait_id, u32 wait_value, + u32 incr_id), - TP_ARGS(name, hw_chid, num_entries, flags, wait_id, incr_id), + TP_ARGS(name, hw_chid, num_entries, flags, wait_id, wait_value, + incr_id), TP_STRUCT__entry( __field(const char *, name) @@ -717,6 +719,7 @@ TRACE_EVENT(nvhost_channel_submit_gpfifo, __field(u32, num_entries) __field(u32, flags) __field(u32, wait_id) + __field(u32, wait_value) __field(u32, incr_id) ), @@ -726,16 +729,53 @@ TRACE_EVENT(nvhost_channel_submit_gpfifo, __entry->num_entries = num_entries; __entry->flags = flags; __entry->wait_id = wait_id; + __entry->wait_value = wait_value; __entry->incr_id = incr_id; ), TP_printk("name=%s, hw_chid=%d, num_entries=%u, flags=%u, wait_id=%d," - " incr_id=%u", + " wait_value=%u, incr_id=%u", __entry->name, __entry->hw_chid, __entry->num_entries, - __entry->flags, __entry->wait_id, + __entry->flags, __entry->wait_id, __entry->wait_value, __entry->incr_id) ); +TRACE_EVENT(nvhost_channel_submitted_gpfifo, + TP_PROTO(const char *name, u32 hw_chid, u32 num_entries, + u32 flags, u32 wait_id, u32 wait_value, + u32 incr_id, u32 incr_value), + + TP_ARGS(name, hw_chid, num_entries, flags, wait_id, wait_value, + incr_id, incr_value), + + TP_STRUCT__entry( + __field(const char *, name) + __field(u32, hw_chid) + __field(u32, num_entries) + __field(u32, flags) + __field(u32, wait_id) + __field(u32, wait_value) + __field(u32, incr_id) + __field(u32, incr_value) + ), + + TP_fast_assign( + __entry->name = name; + __entry->hw_chid = hw_chid; + __entry->num_entries = num_entries; + __entry->flags = flags; + __entry->wait_id = wait_id; + __entry->wait_value = wait_value; + __entry->incr_id = incr_id; + __entry->incr_value = incr_value; + ), + + TP_printk("name=%s, hw_chid=%d, num_entries=%u, flags=%u, wait_id=%d," + " wait_value=%u, incr_id=%u, incr_value=%u", + __entry->name, __entry->hw_chid, __entry->num_entries, + __entry->flags, __entry->wait_id, __entry->wait_value, + __entry->incr_id, __entry->incr_value) +); #endif /* _TRACE_NVHOST_H */ /* This part must be outside protection */ -- cgit v1.2.3