mbox

[0/5] add lcore set name and get name API

Message ID 1670439617-9054-1-git-send-email-roretzla@linux.microsoft.com (mailing list archive)
Headers

Message

Tyler Retzlaff Dec. 7, 2022, 7 p.m. UTC
  Set the lcore_config[].thread_id for the main lcore.

Introduce 2 new public APIs rte_lcore_set_name and rte_lcore_get_name
that allow set and get of the lcore name and if the underlying platform
supports it sets the platform-specific thread name.

Remove rte_thread_getname API

Deprecate rte_thread_setname public API and provide replacement
rte_thread_set_name internal API for use by the EAL.

Add basic unit test for new APIs

Tyler Retzlaff (5):
  eal: add lcore set name and get name API
  eal: set lcore config thread for lcore main
  test: add a unit test for set and get lcore name APIs
  eal: remove thread getname API
  eal: deprecate rte thread setname API

 app/test/test_lcores.c               | 52 ++++++++++++++++++++++++++++++
 doc/guides/rel_notes/deprecation.rst |  4 +++
 lib/eal/common/eal_common_lcore.c    | 32 +++++++++++++++++++
 lib/eal/common/eal_common_thread.c   | 18 ++++++-----
 lib/eal/common/eal_common_trace.c    |  2 +-
 lib/eal/freebsd/eal.c                |  5 ++-
 lib/eal/freebsd/eal_thread.c         | 15 ++++-----
 lib/eal/include/rte_lcore.h          | 62 ++++++++++++++++++++++++++----------
 lib/eal/include/rte_thread.h         |  8 +++++
 lib/eal/linux/eal.c                  |  5 ++-
 lib/eal/linux/eal_thread.c           | 18 +++++++----
 lib/eal/version.map                  |  6 +++-
 lib/eal/windows/rte_thread.c         | 41 ++++++++++++++++++++++++
 13 files changed, 221 insertions(+), 47 deletions(-)