From: Chris Muller christian.muller@linaro.org
Thread name shall match the thread name from configuration file. The name cannot exceed 16 characters.
Signed-off-by: Chris Muller christian.muller@linaro.org --- src/rt-app.c | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/src/rt-app.c b/src/rt-app.c index 78d9a21..1f5e969 100644 --- a/src/rt-app.c +++ b/src/rt-app.c @@ -148,6 +148,12 @@ void *thread_body(void *arg) int ret, i = 0; int j;
+ /* set thread name */ + ret = pthread_setname_np(pthread_self(), data->name); + if (ret != 0) { + perror("pthread_setname_np thread name over 16 characters"); + } + /* set thread affinity */ if (data->cpuset != NULL) {