diff options
Diffstat (limited to 'src')
-rwxr-xr-x | src/build/tools/hbGenConfig | 16 | ||||
-rw-r--r-- | src/usr/trace/HBconfig | 8 | ||||
-rw-r--r-- | src/usr/trace/service.C | 10 |
3 files changed, 29 insertions, 5 deletions
diff --git a/src/build/tools/hbGenConfig b/src/build/tools/hbGenConfig index d33b086f7..f846faa3c 100755 --- a/src/build/tools/hbGenConfig +++ b/src/build/tools/hbGenConfig @@ -6,7 +6,7 @@ # # OpenPOWER HostBoot Project # -# Contributors Listed Below - COPYRIGHT 2014 +# Contributors Listed Below - COPYRIGHT 2014,2015 # [+] International Business Machines Corp. # # @@ -137,9 +137,17 @@ sub parseOverride chomp $line; $line =~ s/#.*//; - if ($line =~ m/^\s*set\s*(\S*)/) + if ($line =~ m/^\s*set\s*(\S*)\s*(.*)/) { - $config_set{$1} = 1; + if ( $2 eq "" ) + { + $config_set{$1} = 1; + } + else + { + $config_set{$1} = $2; + } + } elsif ($line =~ m/^\s*unset\s*(\S*)/) { @@ -258,7 +266,7 @@ sub outputResults if ($config_set{$option}) { print CONFIGMK "CONFIG_$option = yes\n"; - print CONFIGH "#define CONFIG_$option 1\n"; + print CONFIGH "#define CONFIG_$option $config_set{$option}\n"; } else { diff --git a/src/usr/trace/HBconfig b/src/usr/trace/HBconfig index b2a395e15..6aacf8ddb 100644 --- a/src/usr/trace/HBconfig +++ b/src/usr/trace/HBconfig @@ -3,3 +3,11 @@ config CONSOLE_OUTPUT_TRACE depends on CONSOLE help Enables output of trace to console. + +config CONSOLE_OUTPUT_TRACE_COMP_NAME + default n + depends on CONSOLE_OUTPUT_TRACE + help + Limits console output trace to a specific component by name. + User needs to add to the config file: + set CONSOLE_OUTPUT_TRACE_COMP_NAME "<component_string_name>" diff --git a/src/usr/trace/service.C b/src/usr/trace/service.C index 857ed0a6c..6606448c8 100644 --- a/src/usr/trace/service.C +++ b/src/usr/trace/service.C @@ -79,7 +79,15 @@ namespace TRACE { va_list args; va_copy(args, i_args); - CONSOLE::vdisplayf(i_td->iv_compName, i_fmt, i_args); + #ifdef CONFIG_CONSOLE_OUTPUT_TRACE_COMP_NAME + if ( !strcmp(i_td->iv_compName, + CONFIG_CONSOLE_OUTPUT_TRACE_COMP_NAME) ) + { + #endif + CONSOLE::vdisplayf(i_td->iv_compName, i_fmt, i_args); + #ifdef CONFIG_CONSOLE_OUTPUT_TRACE_COMP_NAME + } + #endif va_end(args); } #endif |