Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set thread name on pc-linux #199

Closed
jphickey opened this issue Oct 2, 2020 · 0 comments · Fixed by #212 or #213
Closed

Set thread name on pc-linux #199

jphickey opened this issue Oct 2, 2020 · 0 comments · Fixed by #212 or #213
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@jphickey
Copy link
Contributor

jphickey commented Oct 2, 2020

Is your feature request related to a problem? Please describe.
OSAL currently does not inform the OS kernel of the actual thread names, because this is not a standard POSIX feature. But Linux has this capability and it helps with debugging to see real thread names.

Describe the solution you'd like
Use the OSAL callback framework introduced in nasa/osal#541 to set the thread name at the kernel level when using the pc-linux PSP.

Additional context
Originally suggested in nasa/osal#532

Requester Info
Joseph Hickey, Vantage Systems, Inc.

@jphickey jphickey self-assigned this Oct 2, 2020
@jphickey jphickey added the enhancement New feature or request label Oct 2, 2020
jphickey added a commit to jphickey/PSP that referenced this issue Oct 23, 2020
Use event callback mechanism to invoke pthread_setname_np() such
that the OS kernel is informed of the OSAL task name.
jphickey added a commit to jphickey/PSP that referenced this issue Oct 28, 2020
astrogeco added a commit that referenced this issue Oct 30, 2020
Fix #199, set kernel task name for OSAL tasks
@astrogeco astrogeco modified the milestones: 2.0.0, 1.6.0 Oct 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
2 participants