Generating stack trace in android bluetooth.c

view story

http://stackoverflow.com – Is there a way to generate stack trace from functions: bt_enable() and bt_disable() (present in system/bluetooth/bluedroid/)? According to my understanding these functions are called when a user tries to switch ON/OFF Bluetooth from Settings [Android ICS]. ISSUE: While trying to turn ON bluetooth, it tries to do so for sometime and then goes OFF ANALYSIS: I have tried to debug the issue from the kernel. However while trying to enable bluetooth, it seems that it receives a signal to disable it. Hence I need to find out why bt_disable is called. Thanks in advance! (HowTos)