summaryrefslogtreecommitdiffstats
path: root/hci
diff options
context:
space:
mode:
authorRavi Nagarajan <nravi@broadcom.com>2012-08-22 06:27:17 -0700
committerMatthew Xie <mattx@google.com>2012-08-22 11:26:25 -0700
commit3cef628c3327479a58e37ae7a641e1c24f393fc8 (patch)
tree113ebac88700259b3bf875c4b4dd6c471e0934c1 /hci
parent7564d20e41c7538d390a387c1210688cc161d9ed (diff)
downloadexternal_bluetooth_bluedroid-3cef628c3327479a58e37ae7a641e1c24f393fc8.zip
external_bluetooth_bluedroid-3cef628c3327479a58e37ae7a641e1c24f393fc8.tar.gz
external_bluetooth_bluedroid-3cef628c3327479a58e37ae7a641e1c24f393fc8.tar.bz2
Set thread names for debugging
Set thread names for easier debugging Change-Id: I1beeaae24a7782ab97be22db57060c773721bc46
Diffstat (limited to 'hci')
-rwxr-xr-x[-rw-r--r--]hci/src/bt_hci_bdroid.c2
-rwxr-xr-x[-rw-r--r--]hci/src/userial.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/hci/src/bt_hci_bdroid.c b/hci/src/bt_hci_bdroid.c
index a655650..19610e5 100644..100755
--- a/hci/src/bt_hci_bdroid.c
+++ b/hci/src/bt_hci_bdroid.c
@@ -63,6 +63,7 @@
#include "utils.h"
#include "hci.h"
#include "userial.h"
+#include <sys/prctl.h>
#ifndef BTHC_DBG
#define BTHC_DBG FALSE
@@ -369,6 +370,7 @@ static void *bt_hc_worker_thread(void *arg)
HC_BT_HDR *p_msg, *p_next_msg;
ALOGI("bt_hc_worker_thread started");
+ prctl(PR_SET_NAME, (unsigned long)"bt_hc_worker", 0, 0, 0);
tx_cmd_pkts_pending = FALSE;
while (lib_running)
diff --git a/hci/src/userial.c b/hci/src/userial.c
index 71f5ae8..2d468b7 100644..100755
--- a/hci/src/userial.c
+++ b/hci/src/userial.c
@@ -65,6 +65,7 @@
#include "userial.h"
#include "utils.h"
#include "bt_vendor_lib.h"
+#include <sys/prctl.h>
/******************************************************************************
** Constants & Macros
@@ -242,6 +243,7 @@ static void *userial_read_thread(void *arg)
uint8_t *p;
USERIALDBG("Entering userial_read_thread()");
+ prctl(PR_SET_NAME, (unsigned long)"userial_read", 0, 0, 0);
rx_flow_on = TRUE;
userial_running = 1;