Messages in this thread | | | Date | Fri, 24 Feb 2012 17:39:58 -0200 | From | Arnaldo Carvalho de Melo <> | Subject | Re: [PATCH] perf tools: ensure comm properly terminated If threads in a multi-threaded process have names shorter than the main thread the comm for the named threads is not properly terminated. |
| |
Em Fri, Feb 24, 2012 at 12:31:38PM -0700, David Ahern escreveu: > e.g., for the process 'namedthreads' where each thread is named noploop%d > where %d is the thread number: > > Before: > perf script -f comm,tid,ip,sym,dso > noploop:4ads 21616 400a49 noploop (/tmp/namedthreads) > The 'ads' in the thread comm bleeds over from the process name. > > After: > perf script -f comm,tid,ip,sym,dso > noploop:4 21616 400a49 noploop (/tmp/namedthreads)
Thanks, applied to perf/urgent.
- Arnaldo
| |