diff options
Diffstat (limited to 'kernel/trace/Kconfig')
-rw-r--r-- | kernel/trace/Kconfig | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/kernel/trace/Kconfig b/kernel/trace/Kconfig index a5da09c899dd..fedbdd7d5d1e 100644 --- a/kernel/trace/Kconfig +++ b/kernel/trace/Kconfig | |||
@@ -599,6 +599,34 @@ config RING_BUFFER_STARTUP_TEST | |||
599 | 599 | ||
600 | If unsure, say N | 600 | If unsure, say N |
601 | 601 | ||
602 | config TRACE_ENUM_MAP_FILE | ||
603 | bool "Show enum mappings for trace events" | ||
604 | depends on TRACING | ||
605 | help | ||
606 | The "print fmt" of the trace events will show the enum names instead | ||
607 | of their values. This can cause problems for user space tools that | ||
608 | use this string to parse the raw data as user space does not know | ||
609 | how to convert the string to its value. | ||
610 | |||
611 | To fix this, there's a special macro in the kernel that can be used | ||
612 | to convert the enum into its value. If this macro is used, then the | ||
613 | print fmt strings will have the enums converted to their values. | ||
614 | |||
615 | If something does not get converted properly, this option can be | ||
616 | used to show what enums the kernel tried to convert. | ||
617 | |||
618 | This option is for debugging the enum conversions. A file is created | ||
619 | in the tracing directory called "enum_map" that will show the enum | ||
620 | names matched with their values and what trace event system they | ||
621 | belong too. | ||
622 | |||
623 | Normally, the mapping of the strings to values will be freed after | ||
624 | boot up or module load. With this option, they will not be freed, as | ||
625 | they are needed for the "enum_map" file. Enabling this option will | ||
626 | increase the memory footprint of the running kernel. | ||
627 | |||
628 | If unsure, say N | ||
629 | |||
602 | endif # FTRACE | 630 | endif # FTRACE |
603 | 631 | ||
604 | endif # TRACING_SUPPORT | 632 | endif # TRACING_SUPPORT |