Re: [PATCH] perf tools: ensure comm properly terminated If threadsin a multi-threaded process have names shorter than the main thread the commfor the named threads is not properly terminated.

From: Arnaldo Carvalho de Melo
Date: Fri Feb 24 2012 - 14:40:09 EST


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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/