Re: [PATCH bpf-next v2] selftests/bpf: Switch test_vmlinux to use hrtimer_range_start_ns.

2020-07-01 Thread Alexei Starovoitov
On Wed, Jul 1, 2020 at 11:04 AM Yonghong Song wrote: > > > > On 7/1/20 10:53 AM, Hao Luo wrote: > > The test_vmlinux test uses hrtimer_nanosleep as hook to test tracing > > programs. But in a kernel built by clang, which performs more aggresive > > inlining, that function gets inlined into its cal

Re: [PATCH bpf-next v2] selftests/bpf: Switch test_vmlinux to use hrtimer_range_start_ns.

2020-07-01 Thread Yonghong Song
On 7/1/20 10:53 AM, Hao Luo wrote: The test_vmlinux test uses hrtimer_nanosleep as hook to test tracing programs. But in a kernel built by clang, which performs more aggresive inlining, that function gets inlined into its caller SyS_nanosleep. Therefore, even though fentry and kprobe do hook o