Commit 5ee00bd4691e7364bb7b62e2068d473cd5cb9320
1 parent
0bd5c4f7c8
Exists in
master
and in
4 other branches
dma-debug: add Kconfig entry
Impact: add a Kconfig entry for DMA-API debugging Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Showing 2 changed files with 13 additions and 0 deletions Side-by-side Diff
arch/Kconfig
lib/Kconfig.debug
... | ... | @@ -902,6 +902,17 @@ |
902 | 902 | debugging for all modules. This mode can be turned off via the above |
903 | 903 | disable command. |
904 | 904 | |
905 | +config DMA_API_DEBUG | |
906 | + bool "Enable debugging of DMA-API usage" | |
907 | + depends on HAVE_DMA_API_DEBUG | |
908 | + help | |
909 | + Enable this option to debug the use of the DMA API by device drivers. | |
910 | + With this option you will be able to detect common bugs in device | |
911 | + drivers like double-freeing of DMA mappings or freeing mappings that | |
912 | + were never allocated. | |
913 | + This option causes a performance degredation. Use only if you want | |
914 | + to debug device drivers. If unsure, say N. | |
915 | + | |
905 | 916 | source "samples/Kconfig" |
906 | 917 | |
907 | 918 | source "lib/Kconfig.kgdb" |