Re: [PATCH] perf tools: Fixup end address of modules

2025-01-09 Thread Arnaldo Carvalho de Melo
On Wed, Dec 18, 2024 at 02:15:35PM -0800, Ian Rogers wrote: > On Wed, Dec 18, 2024 at 2:04 PM Namhyung Kim wrote: > > > > In machine__create_module(), it reads /proc/modules to get a list of > > modules in the system. The file shows the start address (of text) and > > the size of the module so it

Re: [PATCH] perf tools: Fixup end address of modules

2024-12-18 Thread Ian Rogers
On Wed, Dec 18, 2024 at 2:04 PM Namhyung Kim wrote: > > In machine__create_module(), it reads /proc/modules to get a list of > modules in the system. The file shows the start address (of text) and > the size of the module so it uses the info to reconstruct system memory > maps for symbol resoluti

[PATCH] perf tools: Fixup end address of modules

2024-12-18 Thread Namhyung Kim
In machine__create_module(), it reads /proc/modules to get a list of modules in the system. The file shows the start address (of text) and the size of the module so it uses the info to reconstruct system memory maps for symbol resolution. But module memory consists of multiple segments and they c