[PATCH 0/5] add lcore set name and get name API
Tyler Retzlaff
roretzla at linux.microsoft.com
Wed Dec 7 20:00:12 CET 2022
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(-)
--
1.8.3.1
More information about the dev
mailing list