]> git.hungrycats.org Git - linux/commit
drm/amd/display: Enable gcov coverage for amdgpu_dm KUnit builds
authorAlex Hung <alex.hung@amd.com>
Mon, 4 May 2026 23:20:44 +0000 (17:20 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 3 Jun 2026 17:31:41 +0000 (13:31 -0400)
commit29480acd8f95d4267702cefc48e216b31de03cf9
tree219fa1ab825cdf1888440c8534489e7a7d631101
parent51e6668ab4baf55b082c376318d51ef965757196
drm/amd/display: Enable gcov coverage for amdgpu_dm KUnit builds

[Why & How]
Add GCOV_PROFILE := y to amdgpu_dm/Makefile under the
CONFIG_DRM_AMD_DC_KUNIT_TEST guard so coverage instrumentation
is only applied during KUnit builds, not all amdgpu_dm builds.

Add coverage config options (CONFIG_GCOV, CONFIG_DEBUG_INFO,
CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT, CONFIG_DEBUG_KERNEL)
to tests/.kunitconfig so the kunit.py runner enables the kernel
coverage configuration automatically.

Assisted-by: Copilot:Claude-Sonnet-4.6
Reviewed-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Ray Wu <ray.wu@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/Makefile
drivers/gpu/drm/amd/display/amdgpu_dm/tests/.kunitconfig