Re: [PATCH 2/4] perf report: Load PE files from debug cache only

2021-02-16 Thread Nicholas Fraser
Oops, you are correct; it is doing these checks twice. Not sure how I missed that. I'll send another patch to fix it. Nick On 2021-02-15 9:36 a.m., Jiri Olsa wrote: > On Wed, Feb 10, 2021 at 02:17:38PM -0500, Nicholas Fraser wrote: >> dso__load_bfd_symbols() attempts to load a DSO at its

Re: [PATCH 2/4] perf report: Load PE files from debug cache only

2021-02-15 Thread Jiri Olsa
On Wed, Feb 10, 2021 at 02:17:38PM -0500, Nicholas Fraser wrote: > dso__load_bfd_symbols() attempts to load a DSO at its original path, > then closes it and loads the file in the debug cache. This is incorrect. > It should ignore the original file and work with only the debug cache. > The original

Re: [PATCH 2/4] perf report: Load PE files from debug cache only

2021-02-12 Thread Arnaldo Carvalho de Melo
Em Fri, Feb 12, 2021 at 11:34:24AM -0500, Nicholas Fraser escreveu: > Sorry, I should have been more clear in the commit message. The use case > you outlined still works even with this patch. Ok, I'll clarify that in the commit log then. - Arnaldo > dso__load_bfd_symbols() is called in a loop

Re: [PATCH 2/4] perf report: Load PE files from debug cache only

2021-02-12 Thread Nicholas Fraser
Sorry, I should have been more clear in the commit message. The use case you outlined still works even with this patch. dso__load_bfd_symbols() is called in a loop from dso__load() for a variety of paths. These are generated by the various DSO_BINARY_TYPEs in the binary_type_symtab list at the

Re: [PATCH 2/4] perf report: Load PE files from debug cache only

2021-02-12 Thread Arnaldo Carvalho de Melo
Em Wed, Feb 10, 2021 at 02:17:38PM -0500, Nicholas Fraser escreveu: > dso__load_bfd_symbols() attempts to load a DSO at its original path, > then closes it and loads the file in the debug cache. This is incorrect. > It should ignore the original file and work with only the debug cache. > The

[PATCH 2/4] perf report: Load PE files from debug cache only

2021-02-10 Thread Nicholas Fraser
dso__load_bfd_symbols() attempts to load a DSO at its original path, then closes it and loads the file in the debug cache. This is incorrect. It should ignore the original file and work with only the debug cache. The original file may have changed or may not even exist, for example if the debug