diff options
author | Alexander Wenzel <Alexander.AW.Wenzel@bmw.de> | 2013-11-26 14:57:39 +0100 |
---|---|---|
committer | Alexander Wenzel <Alexander.AW.Wenzel@bmw.de> | 2014-01-10 07:15:40 +0100 |
commit | 7fc88bab3d8388ca1c62c55c36c82f6efb9978d5 (patch) | |
tree | af81f45d7ccbf3120b3adb39bef8d33f99e8edef /src | |
parent | 34150c069cb4ec209d6ac9dfe066a77e1073936e (diff) | |
download | DLT-daemon-7fc88bab3d8388ca1c62c55c36c82f6efb9978d5.tar.gz |
Add threadnames to libdlt threads.
Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/dlt_user.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/dlt_user.c b/src/lib/dlt_user.c index 867031c..37b1262 100644 --- a/src/lib/dlt_user.c +++ b/src/lib/dlt_user.c @@ -83,6 +83,7 @@ #include <sys/uio.h> /* writev() */ #include <limits.h> +#include <sys/prctl.h> #include "dlt_user.h" #include "dlt_user_shared.h" @@ -2207,6 +2208,8 @@ void dlt_user_trace_network_segmented_thread(void *unused) /* Unused on purpose. */ (void) unused; + prctl(PR_SET_NAME, "dlt_segmented", 0, 0, 0); + s_segmented_data *data; while(1) @@ -2741,6 +2744,7 @@ int dlt_disable_local_print(void) void dlt_user_receiverthread_function(__attribute__((unused)) void *ptr) { + prctl(PR_SET_NAME, "dlt_receiver", 0, 0, 0); while (1) { /* Check for new messages from DLT daemon */ |