Re: [PATCH 4/4] perf tools: determine if LR is the return address

2021-02-10 Thread Alexandre Truong
On 2/8/21 3:39 PM, James Clark wrote: On 22/01/2021 18:18, Alexandre Truong wrote: +} + +static int add_entry(struct unwind_entry *entry, void *arg) +{ +struct entries *entries = arg; + +entries->stack[entries->i++] = entry->ip; +return 0; +} + +u64 get_leaf_frame_caller_aarch6

Re: [PATCH 4/4] perf tools: determine if LR is the return address

2021-02-08 Thread James Clark
On 22/01/2021 18:18, Alexandre Truong wrote: > +} > + > +static int add_entry(struct unwind_entry *entry, void *arg) > +{ > + struct entries *entries = arg; > + > + entries->stack[entries->i++] = entry->ip; > + return 0; > +} > + > +u64 get_leaf_frame_caller_aarch64(struct perf_samp

Re: [PATCH 4/4] perf tools: determine if LR is the return address

2021-01-26 Thread James Clark
On 24/01/2021 02:05, Jiri Olsa wrote: > On Fri, Jan 22, 2021 at 04:18:54PM +, Alexandre Truong wrote: >> On arm64 and frame pointer mode (e.g: perf record --callgraph fp), >> use dwarf unwind info to check if the link register is the return >> address in order to inject it to the frame point

Re: [PATCH 4/4] perf tools: determine if LR is the return address

2021-01-23 Thread Jiri Olsa
On Fri, Jan 22, 2021 at 04:18:54PM +, Alexandre Truong wrote: > On arm64 and frame pointer mode (e.g: perf record --callgraph fp), > use dwarf unwind info to check if the link register is the return > address in order to inject it to the frame pointer stack. > > Write the following application

[PATCH 4/4] perf tools: determine if LR is the return address

2021-01-22 Thread Alexandre Truong
On arm64 and frame pointer mode (e.g: perf record --callgraph fp), use dwarf unwind info to check if the link register is the return address in order to inject it to the frame pointer stack. Write the following application: int a = 10; void f2(void) { for