mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 09:12:24 +03:00
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>
This commit is contained in:
committed by
Dan Willemsen
parent
2d7c5e1a5b
commit
f73552baea
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user