summaryrefslogtreecommitdiff
path: root/osi
diff options
context:
space:
mode:
authorSrinu Jella <sjella@codeaurora.org>2016-03-01 16:59:35 +0530
committerAndre Eisenbach <eisenbach@google.com>2016-03-25 13:02:36 -0700
commitb5754d2fdfce8acba35ac8a03aae2ab88152dc6b (patch)
tree02213d9c73e31ccf873904fb4dd81726ae27a81d /osi
parent874e09529503f223b2c3a87a90d9a6cc72c90d7b (diff)
downloadandroid-system-bt-b5754d2fdfce8acba35ac8a03aae2ab88152dc6b.tar.gz
android-system-bt-b5754d2fdfce8acba35ac8a03aae2ab88152dc6b.tar.xz
Enable debug logs for bluetooth process threads, modules
Use case: Debug enhancement for bluetooth threads, modules - Most of the bluetooth process threads,modules uses APIs provided from the OSI layer. - This patch enables the debug logs to know when the thread, module is created and exited. - This would be useful while debugging the ON/OFF, ANR issues. Bug: 27852645 Change-Id: I17f4f583d2c431725a8c44c586b29980b4bdab3f
Diffstat (limited to 'osi')
-rw-r--r--osi/src/thread.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/osi/src/thread.c b/osi/src/thread.c
index 6120039..ebeab56 100644
--- a/osi/src/thread.c
+++ b/osi/src/thread.c
@@ -195,6 +195,8 @@ static void *run_thread(void *start_arg) {
}
thread->tid = gettid();
+ LOG_WARN(LOG_TAG, "%s: thread id %d, thread name %s started", __func__, thread->tid, thread->name);
+
semaphore_post(start->start_sem);
int fd = fixed_queue_get_dequeue_fd(thread->work_queue);
@@ -219,6 +221,7 @@ static void *run_thread(void *start_arg) {
if (count > fixed_queue_capacity(thread->work_queue))
LOG_DEBUG(LOG_TAG, "%s growing event queue on shutdown.", __func__);
+ LOG_WARN(LOG_TAG, "%s: thread id %d, thread name %s exited", __func__, thread->tid, thread->name);
return NULL;
}