diff options
author | Konsta Holtta <kholtta@nvidia.com> | 2014-11-13 07:42:22 -0500 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-03-18 15:12:15 -0400 |
commit | f73552baea1ed48758bfece039aaf0c02102e0e7 (patch) | |
tree | c52982ee749a51c79f71fda1c6b1e56bbb9411d1 /include/trace/events | |
parent | 2d7c5e1a5bf6e56e802c6e847baee5623d00431c (diff) |
gpu: nvgpu: cde: add trace events for ctx allocs
Trace cde context allocation and deallocation with ftrace.
Bug 200052943
Change-Id: Ieeb625166662971fb3eb3fb29c986fdb6809c10b
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: http://git-master/r/602886
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'include/trace/events')
-rw-r--r-- | include/trace/events/gk20a.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/include/trace/events/gk20a.h b/include/trace/events/gk20a.h index 4b3f94e7..8fa8cb94 100644 --- a/include/trace/events/gk20a.h +++ b/include/trace/events/gk20a.h | |||
@@ -293,6 +293,39 @@ TRACE_EVENT(gk20a_mmu_fault, | |||
293 | __entry->engine, __entry->client, __entry->fault_type) | 293 | __entry->engine, __entry->client, __entry->fault_type) |
294 | ); | 294 | ); |
295 | 295 | ||
296 | DECLARE_EVENT_CLASS(gk20a_cde, | ||
297 | TP_PROTO(const void *ctx), | ||
298 | TP_ARGS(ctx), | ||
299 | TP_STRUCT__entry(__field(const void *, ctx)), | ||
300 | TP_fast_assign(__entry->ctx = ctx;), | ||
301 | TP_printk("ctx=%p", __entry->ctx) | ||
302 | ); | ||
303 | |||
304 | DEFINE_EVENT(gk20a_cde, gk20a_cde_remove_ctx, | ||
305 | TP_PROTO(const void *ctx), | ||
306 | TP_ARGS(ctx) | ||
307 | ); | ||
308 | |||
309 | DEFINE_EVENT(gk20a_cde, gk20a_cde_release, | ||
310 | TP_PROTO(const void *ctx), | ||
311 | TP_ARGS(ctx) | ||
312 | ); | ||
313 | |||
314 | DEFINE_EVENT(gk20a_cde, gk20a_cde_get_context, | ||
315 | TP_PROTO(const void *ctx), | ||
316 | TP_ARGS(ctx) | ||
317 | ); | ||
318 | |||
319 | DEFINE_EVENT(gk20a_cde, gk20a_cde_allocate_context, | ||
320 | TP_PROTO(const void *ctx), | ||
321 | TP_ARGS(ctx) | ||
322 | ); | ||
323 | |||
324 | DEFINE_EVENT(gk20a_cde, gk20a_cde_finished_ctx_cb, | ||
325 | TP_PROTO(const void *ctx), | ||
326 | TP_ARGS(ctx) | ||
327 | ); | ||
328 | |||
296 | #endif /* _TRACE_GK20A_H */ | 329 | #endif /* _TRACE_GK20A_H */ |
297 | 330 | ||
298 | /* This part must be outside protection */ | 331 | /* This part must be outside protection */ |