Re: [PATCH/RFC 6/9] perf symbols: Use already loaded module dso when loading kcore

2017-06-25 Thread Namhyung Kim
On Fri, Jun 23, 2017 at 10:55:47AM -0300, Arnaldo Carvalho de Melo wrote: > Em Fri, Jun 23, 2017 at 02:48:24PM +0900, Namhyung Kim escreveu: > > Even every module has loaded onto same addresses, some modules can be > > changed and reloaded. > > Can you rephrase the above statement? > > You mean

Re: [PATCH/RFC 6/9] perf symbols: Use already loaded module dso when loading kcore

2017-06-25 Thread Namhyung Kim
On Fri, Jun 23, 2017 at 10:55:47AM -0300, Arnaldo Carvalho de Melo wrote: > Em Fri, Jun 23, 2017 at 02:48:24PM +0900, Namhyung Kim escreveu: > > Even every module has loaded onto same addresses, some modules can be > > changed and reloaded. > > Can you rephrase the above statement? > > You mean

Re: [PATCH/RFC 6/9] perf symbols: Use already loaded module dso when loading kcore

2017-06-23 Thread Arnaldo Carvalho de Melo
Em Fri, Jun 23, 2017 at 02:48:24PM +0900, Namhyung Kim escreveu: > Even every module has loaded onto same addresses, some modules can be > changed and reloaded. Can you rephrase the above statement? You mean even if a module is reloaded at the same address it can have a different symtab and thus

Re: [PATCH/RFC 6/9] perf symbols: Use already loaded module dso when loading kcore

2017-06-23 Thread Arnaldo Carvalho de Melo
Em Fri, Jun 23, 2017 at 02:48:24PM +0900, Namhyung Kim escreveu: > Even every module has loaded onto same addresses, some modules can be > changed and reloaded. Can you rephrase the above statement? You mean even if a module is reloaded at the same address it can have a different symtab and thus

[PATCH/RFC 6/9] perf symbols: Use already loaded module dso when loading kcore

2017-06-22 Thread Namhyung Kim
Even every module has loaded onto same addresses, some modules can be changed and reloaded. In that case it needs to access to the old module in the build-id cache. Cc: Adrian Hunter Cc: Wang Nan Signed-off-by: Namhyung Kim

[PATCH/RFC 6/9] perf symbols: Use already loaded module dso when loading kcore

2017-06-22 Thread Namhyung Kim
Even every module has loaded onto same addresses, some modules can be changed and reloaded. In that case it needs to access to the old module in the build-id cache. Cc: Adrian Hunter Cc: Wang Nan Signed-off-by: Namhyung Kim --- tools/perf/util/symbol.c | 45