Project

General

Profile

Actions

Feature #3573

closed

osmo-trx: Use pthread_setname to identify threads

Added by pespin over 5 years ago. Updated over 5 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
09/19/2018
Due date:
% Done:

100%

Spec Reference:

Description

Pthread allow changing the name of each created thread, which is handy when debugging multi-threaded processes (to quickly identify threads based on TID by reading the name in /proc).

Doing so is quite easy, afair only involves a call to pthread_setname_np():
http://man7.org/linux/man-pages/man3/pthread_setname_np.3.html


Related issues

Related to OsmoTRX - Bug #3575: osmo-trx: User Manual: Add section explaining osmo-trx thread architectureResolvedpespin09/19/2018

Actions
Actions #1

Updated by pespin over 5 years ago

  • Related to Bug #3575: osmo-trx: User Manual: Add section explaining osmo-trx thread architecture added
Actions #2

Updated by pespin over 5 years ago

  • Status changed from New to Feedback
  • % Done changed from 0 to 90

Submitted in: https://gerrit.osmocom.org/#/c/osmo-trx/+/11047 Use pthread_setname_np to name threads

Actions #3

Updated by pespin over 5 years ago

  • Status changed from Feedback to Resolved
  • % Done changed from 90 to 100

Merged, closing.

Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)