|
Details
Since ADHD is a multithreaded application, where different threads
will use the same functions, I think it is beneficial to provide
more context, at sufficient verbosity, about how functions are being
entered an exited.
This change alters VERBOSE_FUNCTION_ENTER() and
VERBOSE_FUNCTION_EXIT() to take a varadic set of parameters,
facilitating the output of the arguments passed to the function.
Testing
o tegra2_kaen
killed default instance of gavd
/usr/bin/gavd --verbose=10
grep gavd /var/log/messages
gavd[2859]: daemonize: release mode.
gavd[2859]: signal_start
gavd[2859]: threads_start: 'Internal Microphone'
gavd[2859]: threads_start: 'Internal Headphone'
gavd[2859]: beg gpio_switch_monitor(Internal Microphone, tegra-seaboard Mic Jack, 4, (null), (null))
gavd[2859]: beg sys_input_find_device_by_name(tegra-seaboard Mic Jack)
gavd[2859]: utils_execute_command: '/usr/bin/amixer set 'Speaker' 100% && /usr/bin/amixer set 'Headphone' 100% && /usr/bin/amixer set 'Digital' 100% && /usr/bin/amixer set 'Left Speaker Mixer DACL' on && /usr/bin/amixer set 'Right Speaker Mixer DACL' on && /usr/bin/amixer set 'Left Speaker Mixer DACR' on && /usr/bin/amixer set 'Right Speaker Mixer DACR' on && /usr/bin/amixer set 'ADC Input' 'DMIC'' succeeded.
gavd[2859]: beg gpio_switch_monitor(Internal Headphone, tegra-seaboard Headphone Jack, 2, /usr/bin/amixer set 'Speaker' off && /usr/bin/amixer set 'Int Spk' off && /usr/bin/amixer set 'Headphone' on, /usr/bin/amixer set 'Speaker' on && /usr/bin/amixer set 'Int Spk' on && /usr/bin/amixer set 'Headphone' off)
gavd[2859]: beg sys_input_find_device_by_name(tegra-seaboard Headphone Jack)
gavd[2859]: end sys_input_find_device_by_name(tegra-seaboard Mic Jack)
o x86-mario
killed default instance of gavd
/usr/bin/gavd --verbose=10
grep gavd /var/log/messages
gavd[2967]: compiled for target machine: 'x86-mario'
gavd[2967]: beg daemonize(void)
gavd[2967]: Child process: '2968'.
gavd[2968]: daemonize: release mode.
gavd[2968]: signal_start
There is less output because x86-based machines do not have any
hardware monitoring yet.
BUG=chromium-os:19558
TEST=See above.
Change-Id: I711403710fbfe42f2fe3ee77d95063efbd19c6bb
Signed-off-by: Taylor Hutt <thutt@chromium.org>
|