From 5d95cbf21a4a550f2a2050c947083de2587cf46d Mon Sep 17 00:00:00 2001 From: Juston Li Date: Wed, 11 Jun 2025 15:51:23 -0700 Subject: [PATCH] gpu/trace: make TRACE_GPU_MEM configurable Move the source to a better place in Device Drivers -> Graphics support now that its configurable. v4: - Move source location (Tvrtko) v3: - Patch introduced to replace per-driver config (Lucas) Signed-off-by: Juston Li Reviewed-by: Lucas De Marchi Link: https://lore.kernel.org/r/20250611225145.1739201-1-justonli@chromium.org Signed-off-by: Lucas De Marchi --- drivers/Kconfig | 2 -- drivers/gpu/trace/Kconfig | 11 ++++++++++- drivers/video/Kconfig | 2 ++ 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/drivers/Kconfig b/drivers/Kconfig index 7c556c5ac4fd..c5edbd2288a1 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig @@ -209,8 +209,6 @@ source "drivers/thunderbolt/Kconfig" source "drivers/android/Kconfig" -source "drivers/gpu/trace/Kconfig" - source "drivers/nvdimm/Kconfig" source "drivers/dax/Kconfig" diff --git a/drivers/gpu/trace/Kconfig b/drivers/gpu/trace/Kconfig index c24e9edd022e..cd3d19c4a201 100644 --- a/drivers/gpu/trace/Kconfig +++ b/drivers/gpu/trace/Kconfig @@ -1,4 +1,13 @@ # SPDX-License-Identifier: GPL-2.0-only config TRACE_GPU_MEM - bool + bool "Enable GPU memory usage tracepoints" + default n + help + Choose this option to enable tracepoints for tracking + global and per-process GPU memory usage. Intended for + performance profiling and required for Android. + + Tracepoint availability varies by GPU driver. + + If in doubt, say "N". diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig index c3da6c0bfca6..d51777df12d1 100644 --- a/drivers/video/Kconfig +++ b/drivers/video/Kconfig @@ -87,4 +87,6 @@ if FB_CORE || SGI_NEWPORT_CONSOLE endif +source "drivers/gpu/trace/Kconfig" + endmenu -- 2.25.1