diff options
author | Don Zickus <[email protected]> | 2013-11-13 15:32:06 -0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2013-11-14 16:00:01 -0300 |
commit | 9d4ecc8893832337daf241236841db966fa53489 (patch) | |
tree | a585ae8a20208b8f1afe85d584cac2bfd42323a9 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
parent | ea432a8bb940e6bea2aaeca3c0ff3d931ad81f2e (diff) |
perf tools: Synthesize anon MMAP records again
When introducing the PERF_RECORD_MMAP2 in:
5c5e854bc760 perf tools: Add attr->mmap2 support
A check for the number of entries parsed by sscanf was introduced that
assumed all of the 8 fields needed to be correctly parsed so that
particular /proc/pid/maps line would be considered synthesizable.
That broke anon records synthesizing, as it doesn't have the 'execname'
field.
Fix it by keeping the sscanf return check, changing it to not require
that the 'execname' variable be parsed, so that the preexisting logic
can kick in and set it to '//anon'.
This should get things like JIT profiling working again.
Signed-off-by: Don Zickus <[email protected]>
Cc: Bill Gray <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Joe Mario <[email protected]>
Cc: Richard Fowles <[email protected]>
Cc: Stephane Eranian <[email protected]>
Cc: [email protected]
Link: http://lkml.kernel.org/n/[email protected]
[ commit log message is mine, dzickus reported the problem with a patch ]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions