From f73552baea1ed48758bfece039aaf0c02102e0e7 Mon Sep 17 00:00:00 2001 From: Konsta Holtta Date: Thu, 13 Nov 2014 14:42:22 +0200 Subject: 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 Reviewed-on: http://git-master/r/602886 GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom --- include/trace/events/gk20a.h | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) (limited to 'include/trace/events') 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, __entry->engine, __entry->client, __entry->fault_type) ); +DECLARE_EVENT_CLASS(gk20a_cde, + TP_PROTO(const void *ctx), + TP_ARGS(ctx), + TP_STRUCT__entry(__field(const void *, ctx)), + TP_fast_assign(__entry->ctx = ctx;), + TP_printk("ctx=%p", __entry->ctx) +); + +DEFINE_EVENT(gk20a_cde, gk20a_cde_remove_ctx, + TP_PROTO(const void *ctx), + TP_ARGS(ctx) +); + +DEFINE_EVENT(gk20a_cde, gk20a_cde_release, + TP_PROTO(const void *ctx), + TP_ARGS(ctx) +); + +DEFINE_EVENT(gk20a_cde, gk20a_cde_get_context, + TP_PROTO(const void *ctx), + TP_ARGS(ctx) +); + +DEFINE_EVENT(gk20a_cde, gk20a_cde_allocate_context, + TP_PROTO(const void *ctx), + TP_ARGS(ctx) +); + +DEFINE_EVENT(gk20a_cde, gk20a_cde_finished_ctx_cb, + TP_PROTO(const void *ctx), + TP_ARGS(ctx) +); + #endif /* _TRACE_GK20A_H */ /* This part must be outside protection */ -- cgit v1.2.2