aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mpi/mpi-gcd.c
diff options
context:
space:
mode:
authorDavid Ahern <[email protected]>2012-02-24 19:31:38 +0000
committerArnaldo Carvalho de Melo <[email protected]>2012-02-29 21:29:45 +0000
commitcfbd70c17c4535e64be92ea442a2a45078a18184 (patch)
tree4c78934457516617938fe62100cb5f4a230874cb /lib/mpi/mpi-gcd.c
parentperf probe: Ensure offset provided is not greater than function length (diff)
downloadkernel-cfbd70c17c4535e64be92ea442a2a45078a18184.tar.gz
kernel-cfbd70c17c4535e64be92ea442a2a45078a18184.zip
perf tools: Ensure comm string is 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. 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) Cc: Frederic Weisbecker <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Thomas Gleixner <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: David Ahern <[email protected]> Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-gcd.c')
0 files changed, 0 insertions, 0 deletions