Re: [PATCH V5 1/3] tools/perf: Add text_end to "struct dso" to save .text section size

2023-10-08 Thread Namhyung Kim
On Mon, Oct 2, 2023 at 11:47 PM Athira Rajeev wrote: > > > > > On 03-Oct-2023, at 9:58 AM, Namhyung Kim wrote: > > > > Hello, > > > > On Thu, Sep 28, 2023 at 12:52 AM Athira Rajeev > > wrote: > >> > >> Update "struct dso" to include new member "text_end". > >> This new field will represent the

Re: [PATCH V5 1/3] tools/perf: Add text_end to "struct dso" to save .text section size

2023-10-03 Thread Athira Rajeev
> On 03-Oct-2023, at 9:58 AM, Namhyung Kim wrote: > > Hello, > > On Thu, Sep 28, 2023 at 12:52 AM Athira Rajeev > wrote: >> >> Update "struct dso" to include new member "text_end". >> This new field will represent the offset for end of text >> section for a dso. For elf, this value is

Re: [PATCH V5 1/3] tools/perf: Add text_end to "struct dso" to save .text section size

2023-10-02 Thread Namhyung Kim
Hello, On Thu, Sep 28, 2023 at 12:52 AM Athira Rajeev wrote: > > Update "struct dso" to include new member "text_end". > This new field will represent the offset for end of text > section for a dso. For elf, this value is derived as: > sh_size (Size of section in byes) + sh_offset (Section file

[PATCH V5 1/3] tools/perf: Add text_end to "struct dso" to save .text section size

2023-09-28 Thread Athira Rajeev
Update "struct dso" to include new member "text_end". This new field will represent the offset for end of text section for a dso. For elf, this value is derived as: sh_size (Size of section in byes) + sh_offset (Section file offst) of the elf header for text. For bfd, this value is derived as: 1.