[PATCH v2 1/2] eal: expose lcore pthread id

Stephen Hemminger stephen at networkplumber.org
Thu Jul 6 04:57:22 CEST 2023


On Tue, 29 Nov 2022 14:04:45 -0800
Tyler Retzlaff <roretzla at linux.microsoft.com> wrote:

> > Markus and I ultimately use the function in the patch to call
> > rte_thread_setname() (which takes the pthread id as an argument) to rename our
> > lcore workers from "lcore-worker-X" to something more meaningful in the scope
> > of our application. Having descriptive thread names makes debugging
> > significantly easier. For example, verifying CPU pinning worked as intended
> > with ps -T ..., or identifying threads in the Intel VTune profiler.

Why not have the worker threads rename themselves?


More information about the dev mailing list