aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/dc/dm_services.h
diff options
context:
space:
mode:
authorTony Cheng <tony.cheng@amd.com>2017-11-08 16:07:53 -0500
committerAlex Deucher <alexander.deucher@amd.com>2017-12-06 12:48:08 -0500
commitdce46c53208f90cf5a401b62b17bbe2bc629c069 (patch)
tree94f998dc20b86e4aea7bdfe573033bd2dd29fe54 /drivers/gpu/drm/amd/display/dc/dm_services.h
parentdrm/amd/display: Remove unnecessary dc_link vtable (diff)
downloadlinux-dev-dce46c53208f90cf5a401b62b17bbe2bc629c069.tar.xz
linux-dev-dce46c53208f90cf5a401b62b17bbe2bc629c069.zip
drm/amd/display: performance profiling instrumentation
Signed-off-by: Tony Cheng <tony.cheng@amd.com> Reviewed-by: Yongqiang Sun <yongqiang.sun@amd.com> Acked-by: Harry Wentland <harry.wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dm_services.h')
-rw-r--r--drivers/gpu/drm/amd/display/dc/dm_services.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dm_services.h b/drivers/gpu/drm/amd/display/dc/dm_services.h
index d4917037ac42..225b7bfb09a9 100644
--- a/drivers/gpu/drm/amd/display/dc/dm_services.h
+++ b/drivers/gpu/drm/amd/display/dc/dm_services.h
@@ -373,6 +373,13 @@ bool dm_dmcu_set_pipe(struct dc_context *ctx, unsigned int controller_id);
unsigned long long dm_get_timestamp(struct dc_context *ctx);
/*
+ * performance tracing
+ */
+void dm_perf_trace_timestamp(const char *func_name, unsigned int line);
+#define PERF_TRACE() dm_perf_trace_timestamp(__func__, __LINE__)
+
+
+/*
* Debug and verification hooks
*/
bool dm_helpers_dc_conn_log(