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 <[email protected]> > Cc: Naveen N. Rao <[email protected]> > Signed-off-by: Jiri Olsa <[email protected]> > --- > .../selftests/bpf/prog_tests/attach_probe.c | 40 ++++++++++++++++++- > 1 file changed, 39 insertions(+), 1 deletion(-)
LGTM. FWIW: Acked-by: Naveen N. Rao <[email protected]> Thanks, - Naveen
