Skip to content
Commit 5d5ffca3 authored by Brendan Jackman's avatar Brendan Jackman Committed by Patrick Bellasi
Browse files

libs/wlgen/rta: Limit task name to 15 characters

rt-app uses pthread_setname_np(3) to set the names of tasks on the
target [1]. This interface limits thread name length to 16 characters
including the null '\0'.

Although rt-app prints a message on the target, the workload execution
goes ahead when the provided task names are too long, and the tasks are
named "rt-app". This means they are not found when later examining the
trace.

Therefore, raise an exception on the host to prevent this situation
arising.

[1] https://github.com/scheduler-tools/rt-app/blob/dcaf5a04aa63b69d8b5e174d10a9e459f88772cf/src/rt-app.c#L152
parent 29527883
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment