On Thu, Aug 11, 2022 at 11:15:21AM +0200, Jiri Olsa wrote: > Adding KPROBE_FLAG_ON_FUNC_ENTRY kprobe flag to indicate that > attach address is on function entry. This is used in following > changes in get_func_ip helper to return correct function address. IIRC (and I've not digested patch) the intent was to have func+0 mean this. x86-IBT is not the only case where this applies, there are multiple architectures where function entry is not +0.