]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
gpu/trace: make TRACE_GPU_MEM configurable
authorJuston Li <justonli@chromium.org>
Wed, 11 Jun 2025 22:51:23 +0000 (15:51 -0700)
committerLucas De Marchi <lucas.demarchi@intel.com>
Tue, 8 Jul 2025 16:34:47 +0000 (09:34 -0700)
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 <justonli@chromium.org>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://lore.kernel.org/r/20250611225145.1739201-1-justonli@chromium.org
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
drivers/Kconfig
drivers/gpu/trace/Kconfig
drivers/video/Kconfig

index 7c556c5ac4fddca16a47532d524f738e8e3f6a75..c5edbd2288a192147ab10e2309e680be5ade0dd0 100644 (file)
@@ -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"
index c24e9edd022e68c73e1a9ddc1ff600ef54646dbc..cd3d19c4a201c9c6356257df8be5cb0c7dca4fb7 100644 (file)
@@ -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".
index c3da6c0bfca6c70dca264771d9020d0eef98a31b..d51777df12d164d3ed937775664586a006c3e300 100644 (file)
@@ -87,4 +87,6 @@ if FB_CORE || SGI_NEWPORT_CONSOLE
 
 endif
 
+source "drivers/gpu/trace/Kconfig"
+
 endmenu