]> git.itanic.dy.fi Git - scan-pagemap/commit
Handle the process name better
authorTimo Kokkonen <kaapeli@itanic.dy.fi>
Mon, 5 Jul 2010 19:21:46 +0000 (22:21 +0300)
committerTimo Kokkonen <kaapeli@itanic.dy.fi>
Mon, 5 Jul 2010 19:21:46 +0000 (22:21 +0300)
commitf68012c7f96d4f659470c6cf26a8ac0a9b15a2c9
treefffb7015f1b3ec616b73fa19bda620fa8806e9cd
parentaabdb51cba0a94572b7b5e613bf0e65d6244eacc
Handle the process name better

Read the name from cmdline instead of the comm file. It appears that
at least in ubuntu kernel the comm file is not even
exposed. Furthermore, the newline in the end of the cmdline is
replaced with null byte. This also ensures that the string is always
null terminated even though the string is otherwise truncated.

Signed-off-by: Timo Kokkonen <kaapeli@itanic.dy.fi>
analyze.c
parse.c