diff options
author | Stephane Eranian <[email protected]> | 2010-10-22 17:25:01 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2011-09-23 14:37:41 -0300 |
commit | be96ea8ffa788dccb1ba895cced29db6687c4911 (patch) | |
tree | 17b805c4d27f2b06d8a11fdc0b33845321f8765e /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 936be50306a92356367f330ef9d44f1f62478d22 (diff) |
perf symbols: Fix issue with binaries using 16-bytes buildids (v2)
Buildid can vary in size. According to the man page of ld, buildid can
be 160 bits (sha1) or 128 bits (md5, uuid). Perf assumes buildid size of
20 bytes (160 bits) regardless. When dealing with md5 buildids, it would
thus read more than needed and that would cause mismatches and samples
without symbols.
This patch fixes this by taking into account the actual buildid size as
encoded int he section header. The leftover bytes are also cleared.
This second version fixes a minor issue with the memset() base position.
Cc: David S. Miller <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Robert Richter <[email protected]>
Cc: Stephane Eranian <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Stephane Eranian <[email protected]>
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions