Re: [PATCH bpf-next] samples/bpf: fix kprobe attachment issue on x64

2018-04-29 Thread Yonghong Song
On 4/29/18 5:06 PM, Alexei Starovoitov wrote: On Sun, Apr 29, 2018 at 05:00:23PM -0700, Yonghong Song wrote: On 4/29/18 4:20 PM, Alexei Starovoitov wrote: On Sun, Apr 29, 2018 at 03:06:31PM -0700, Yonghong Song wrote: Commit d5a00528b58c ("syscalls/core, syscalls/x86: Rename struct

Re: [PATCH bpf-next] samples/bpf: fix kprobe attachment issue on x64

2018-04-29 Thread Alexei Starovoitov
On Sun, Apr 29, 2018 at 05:00:23PM -0700, Yonghong Song wrote: > > > On 4/29/18 4:20 PM, Alexei Starovoitov wrote: > > On Sun, Apr 29, 2018 at 03:06:31PM -0700, Yonghong Song wrote: > > > Commit d5a00528b58c ("syscalls/core, syscalls/x86: Rename > > > struct pt_regs-based sys_*() to

Re: [PATCH bpf-next] samples/bpf: fix kprobe attachment issue on x64

2018-04-29 Thread Yonghong Song
On 4/29/18 4:20 PM, Alexei Starovoitov wrote: On Sun, Apr 29, 2018 at 03:06:31PM -0700, Yonghong Song wrote: Commit d5a00528b58c ("syscalls/core, syscalls/x86: Rename struct pt_regs-based sys_*() to __x64_sys_*()") renamed a lot of syscall function sys_*() to __x64_sys_*(). This caused

Re: [PATCH bpf-next] samples/bpf: fix kprobe attachment issue on x64

2018-04-29 Thread Alexei Starovoitov
On Sun, Apr 29, 2018 at 03:06:31PM -0700, Yonghong Song wrote: > Commit d5a00528b58c ("syscalls/core, syscalls/x86: Rename > struct pt_regs-based sys_*() to __x64_sys_*()") renamed a lot > of syscall function sys_*() to __x64_sys_*(). > This caused several kprobe based samples/bpf tests failing. >

[PATCH bpf-next] samples/bpf: fix kprobe attachment issue on x64

2018-04-29 Thread Yonghong Song
Commit d5a00528b58c ("syscalls/core, syscalls/x86: Rename struct pt_regs-based sys_*() to __x64_sys_*()") renamed a lot of syscall function sys_*() to __x64_sys_*(). This caused several kprobe based samples/bpf tests failing. This patch fixed the problem by using __x64_sys_*(), instead of