diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.h b/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.h index beb57664..e48d8050 100644 --- a/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.h | |||
@@ -112,7 +112,14 @@ struct dbg_profiler_object_data { | |||
112 | u32 prof_handle; | 112 | u32 prof_handle; |
113 | struct channel_gk20a *ch; | 113 | struct channel_gk20a *ch; |
114 | bool has_reservation; | 114 | bool has_reservation; |
115 | struct list_head prof_obj_entry; | 115 | struct nvgpu_list_node prof_obj_entry; |
116 | }; | ||
117 | |||
118 | static inline struct dbg_profiler_object_data * | ||
119 | dbg_profiler_object_data_from_prof_obj_entry(struct nvgpu_list_node *node) | ||
120 | { | ||
121 | return (struct dbg_profiler_object_data *) | ||
122 | ((uintptr_t)node - offsetof(struct dbg_profiler_object_data, prof_obj_entry)); | ||
116 | }; | 123 | }; |
117 | 124 | ||
118 | int dbg_unbind_single_channel_gk20a(struct dbg_session_gk20a *dbg_s, | 125 | int dbg_unbind_single_channel_gk20a(struct dbg_session_gk20a *dbg_s, |