Re: [V2 1/2] tools/perf: Add text_end to "struct dso" to save .text section size

2023-09-14 Thread Athira Rajeev
> On 14-Sep-2023, at 11:49 PM, Adrian Hunter wrote: > > On 7/09/23 19:45, 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

Re: [V2 1/2] tools/perf: Add text_end to "struct dso" to save .text section size

2023-09-14 Thread Adrian Hunter
On 7/09/23 19:45, 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 > offst) of the elf header

[V2 1/2] tools/perf: Add text_end to "struct dso" to save .text section size

2023-09-07 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.

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

2023-09-07 Thread Athira Rajeev
> On 18-Aug-2023, at 12:07 PM, Adrian Hunter wrote: > > On 17/08/23 20:18, 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. This value is derived as: >> sh_size (Size of section in

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

2023-08-18 Thread Adrian Hunter
On 17/08/23 20:18, 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. This value is derived as: > sh_size (Size of section in byes) + sh_offset (Section file > offst) of the elf header for

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

2023-08-17 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. This value is derived as: sh_size (Size of section in byes) + sh_offset (Section file offst) of the elf header for text. To resolve the address from a sample, perf