diff options
author | Jiri Slaby <[email protected]> | 2011-07-26 16:08:33 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2011-07-26 16:49:43 -0700 |
commit | 2c563731fee0f625924f72e854957bc77601e8b3 (patch) | |
tree | 76091ee6de5c2ca1eea2919b4dc5322e9472cf52 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
parent | 3141c8b165644774eb0e83d8330fbe47e45b37bf (diff) |
coredump: escape / in hostname and comm
Change every occurence of / in comm and hostname to !. If the process
changes its name to contain /, the core is not dumped (if the directory
tree doesn't exist like that). The same with hostname being something
like myhost/3. Fix this behaviour by using the escape loop used in %E.
(We extract it to a separate function.)
Now both with comm == myprocess/1 and hostname == myhost/1, the core is
dumped like (kernel.core_pattern='core.%p.%e.%h):
core.2349.myprocess!1.myhost!1
Signed-off-by: Jiri Slaby <[email protected]>
Cc: Alan Cox <[email protected]>
Cc: Al Viro <[email protected]>
Cc: Andi Kleen <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions