summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/Kconfig
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/Kconfig')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/Kconfig17
1 files changed, 17 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/Kconfig b/drivers/gpu/drm/amd/amdgpu/Kconfig
index 7f515be5185d..7fb0b93bc1ca 100644
--- a/drivers/gpu/drm/amd/amdgpu/Kconfig
+++ b/drivers/gpu/drm/amd/amdgpu/Kconfig
@@ -103,6 +103,23 @@ config DRM_AMDGPU_WERROR
Add -Werror to the build flags for amdgpu.ko.
Only enable this if you are warning code for amdgpu.ko.
+
+config GCOV_PROFILE_AMDGPU
+ bool "Enable GCOV profiling on amdgpu"
+ depends on DRM_AMDGPU
+ depends on GCOV_KERNEL
+ default n
+ help
+ Enable GCOV profiling on the amdgpu driver for checking which
+ functions/lines are executed during testing. This adds compiler
+ instrumentation flags to all amdgpu source files, producing
+ .gcda/.gcno coverage data accessible via debugfs.
+
+ This increases the amdgpu module size by ~50% and adds ~2-5%
+ runtime overhead on GPU submission paths.
+
+ If unsure, say N.
+
source "drivers/gpu/drm/amd/acp/Kconfig"
source "drivers/gpu/drm/amd/display/Kconfig"
source "drivers/gpu/drm/amd/amdkfd/Kconfig"