On 2021/03/05 02:40PM, Jiri Olsa wrote: > When testing uprobes we the test gets GEP (Global Entry Point) > address from kallsyms, but then the function is called locally > so the uprobe is not triggered. > > Fixing this by adjusting the address to LEP (Local Entry Point) > for powerpc arch plus instruction check stolen from ppc_function_entry > function pointed out and explained by Michael and Naveen. > > Cc: Michael Ellerman <mpe@xxxxxxxxxxxxxx> > Cc: Naveen N. Rao <naveen.n.rao@xxxxxxxxxxxxxxxxxx> > Signed-off-by: Jiri Olsa <jolsa@xxxxxxxxxx> > --- > .../selftests/bpf/prog_tests/attach_probe.c | 40 ++++++++++++++++++- > 1 file changed, 39 insertions(+), 1 deletion(-) LGTM. FWIW: Acked-by: Naveen N. Rao <naveen.n.rao@xxxxxxxxxxxxxxxxxx> Thanks, - Naveen