diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2012-03-16 13:55:24 +0200 |
---|---|---|
committer | Simone Willett <swillett@nvidia.com> | 2012-03-23 17:28:25 -0700 |
commit | e5b5fd672b03e36080c34720b976551f5526d8e9 (patch) | |
tree | bada3aade9eca380ccc8072464d97550ef65c78a /include | |
parent | 97139a5d89b2a80fb8464dda86fcb1c968be2b63 (diff) |
video: tegra: host: Split submit into subfunctions
Split host1x_channel_submit() into subfunctions.
Bug 926690
Change-Id: I8be55cbc9d25ee76c758a918de4a9bb27e2ea846
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/90626
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/trace/events/nvhost.h | 35 |
1 files changed, 26 insertions, 9 deletions
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, |