From e5b5fd672b03e36080c34720b976551f5526d8e9 Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Fri, 16 Mar 2012 13:55:24 +0200 Subject: video: tegra: host: Split submit into subfunctions Split host1x_channel_submit() into subfunctions. Bug 926690 Change-Id: I8be55cbc9d25ee76c758a918de4a9bb27e2ea846 Signed-off-by: Terje Bergstrom Reviewed-on: http://git-master/r/90626 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Mayuresh Kulkarni Reviewed-by: Juha Tukkinen --- include/trace/events/nvhost.h | 35 ++++++++++++++++++++++++++--------- 1 file changed, 26 insertions(+), 9 deletions(-) (limited to 'include/trace') diff --git a/include/trace/events/nvhost.h b/include/trace/events/nvhost.h index 1e28559c9287..4c44cdc99f98 100644 --- a/include/trace/events/nvhost.h +++ b/include/trace/events/nvhost.h @@ -210,25 +210,42 @@ TRACE_EVENT(nvhost_channel_write_waitchks, __entry->name, __entry->waitchks, __entry->waitmask) ); -TRACE_EVENT(nvhost_channel_context_switch, - TP_PROTO(const char *name, void *old_ctx, void *new_ctx), +TRACE_EVENT(nvhost_channel_context_save, + TP_PROTO(const char *name, void *ctx), - TP_ARGS(name, old_ctx, new_ctx), + TP_ARGS(name, ctx), TP_STRUCT__entry( __field(const char *, name) - __field(void*, old_ctx) - __field(void*, new_ctx) + __field(void*, ctx) ), TP_fast_assign( __entry->name = name; - __entry->old_ctx = old_ctx; - __entry->new_ctx = new_ctx; + __entry->ctx = ctx; ), - TP_printk("name=%s, old=%p, new=%p", - __entry->name, __entry->old_ctx, __entry->new_ctx) + TP_printk("name=%s, ctx=%p", + __entry->name, __entry->ctx) +); + +TRACE_EVENT(nvhost_channel_context_restore, + TP_PROTO(const char *name, void *ctx), + + TP_ARGS(name, ctx), + + TP_STRUCT__entry( + __field(const char *, name) + __field(void*, ctx) + ), + + TP_fast_assign( + __entry->name = name; + __entry->ctx = ctx; + ), + + TP_printk("name=%s, ctx=%p", + __entry->name, __entry->ctx) ); TRACE_EVENT(nvhost_ctrlopen, -- cgit v1.2.3