summaryrefslogtreecommitdiffstats
path: root/hci
diff options
context:
space:
mode:
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;