Mark Johnston af84329100 addr2line: Cache CU DIEs upon a successful address lookup.
Previously, addr2line would sequentially search all CUs for each input
address.  For some uses, notably syzkaller's code coverage map generator,
this was extremely slow.  Add a CU cache into which entries are added
following a successful lookup, and search the cache before falling back
to a scan.  When translating a large number of addresses this yields
slightly better performance than GNU addr2line.

Garbage-collect an unused hash table which appears to have been intended
for the same purpose.  A hash table doesn't seem particularly suitable
since each CU spans a range of addresses.

Submitted by:	Tiger Gao <tig@freebsdfoundation.org>
MFC after:	2 weeks
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D23418
2020-02-03 16:41:40 +00:00
..
2019-02-26 05:59:22 +00:00
2020-01-31 18:04:04 +00:00
2019-08-11 06:26:03 +00:00
2019-11-18 04:22:04 +00:00
2019-11-01 11:28:43 +00:00
2019-06-29 18:41:40 +00:00
2020-01-06 13:21:10 +00:00
2019-12-21 21:05:53 +00:00
2019-09-01 16:41:24 +00:00
2020-01-25 21:16:45 +00:00
2020-02-02 16:34:57 +00:00
2019-12-09 17:58:22 +00:00
2019-05-08 11:04:09 +00:00
2019-02-25 18:41:16 +00:00
2019-11-20 23:56:20 +00:00
2020-01-28 13:13:41 +00:00
2019-12-21 21:02:50 +00:00
2019-09-12 00:19:16 +00:00
2019-08-22 18:52:30 +00:00