[PATCH 0/5] PERF fixes

From: David Miller
Date: Sun Mar 25 2012 - 16:28:06 EST



This fixes the histogram out-of-date map entry issue as well
as other problems I hit or discovered along the way.

To be honest the histogram entry map pointer is completely
superfluous.

When histogram entries are being used when processing a perf
event, we have the computed and most uptodate map already
in the addr_location that has been built, so we can just
pass that map pointer down into perf_top__record_precise_ip()
and similar.

The other cases, when annotating, are also superfluous. We don't need
the map file at all to compute the address to pass into addr2line and
objdump. We have exactly two cases:

1) Dynamic object, use the raw unchanged address

2) ET_EXEC or .gnu.prelink_undo section, we can read the ELF file
PT_LOAD entries or similar to adjust the address properly.

So neither case needs the map pointer at all. Then all we're
left with are perf internal debugging printf's and those can
be simply removed.

Signed-off-by: David S. Miller <davem@xxxxxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/