Skip to content

Commit 5d95cbf

Browse files
Juston Lilucasdemarchi
authored andcommitted
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 <[email protected]> Reviewed-by: Lucas De Marchi <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lucas De Marchi <[email protected]>
1 parent 3e89a8c commit 5d95cbf

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

drivers/Kconfig

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,6 @@ source "drivers/thunderbolt/Kconfig"
209209

210210
source "drivers/android/Kconfig"
211211

212-
source "drivers/gpu/trace/Kconfig"
213-
214212
source "drivers/nvdimm/Kconfig"
215213

216214
source "drivers/dax/Kconfig"

drivers/gpu/trace/Kconfig

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
# SPDX-License-Identifier: GPL-2.0-only
22

33
config TRACE_GPU_MEM
4-
bool
4+
bool "Enable GPU memory usage tracepoints"
5+
default n
6+
help
7+
Choose this option to enable tracepoints for tracking
8+
global and per-process GPU memory usage. Intended for
9+
performance profiling and required for Android.
10+
11+
Tracepoint availability varies by GPU driver.
12+
13+
If in doubt, say "N".

drivers/video/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,6 @@ if FB_CORE || SGI_NEWPORT_CONSOLE
8787

8888
endif
8989

90+
source "drivers/gpu/trace/Kconfig"
91+
9092
endmenu

0 commit comments

Comments
 (0)