Re: [PATCH 1/2] powerpc/bpf: Fix detecting BPF atomic instructions

2021-07-02 Thread Jiri Olsa
On Thu, Jul 01, 2021 at 08:38:58PM +0530, Naveen N. Rao wrote: > Commit 91c960b0056672 ("bpf: Rename BPF_XADD and prepare to encode other > atomics in .imm") converted BPF_XADD to BPF_ATOMIC and added a way to > distinguish instructions based on the immediate field. Existing JIT > implementations w

Re: [PATCH 1/2] powerpc/bpf: Fix detecting BPF atomic instructions

2021-07-01 Thread Alexei Starovoitov
On Thu, Jul 1, 2021 at 12:32 PM Naveen N. Rao wrote: > > Alexei Starovoitov wrote: > > On Thu, Jul 1, 2021 at 8:09 AM Naveen N. Rao > > wrote: > >> > >> Commit 91c960b0056672 ("bpf: Rename BPF_XADD and prepare to encode other > >> atomics in .imm") converted BPF_XADD to BPF_ATOMIC and added a way

Re: [PATCH 1/2] powerpc/bpf: Fix detecting BPF atomic instructions

2021-07-01 Thread Naveen N. Rao
Alexei Starovoitov wrote: On Thu, Jul 1, 2021 at 8:09 AM Naveen N. Rao wrote: Commit 91c960b0056672 ("bpf: Rename BPF_XADD and prepare to encode other atomics in .imm") converted BPF_XADD to BPF_ATOMIC and added a way to distinguish instructions based on the immediate field. Existing JIT imple

Re: [PATCH 1/2] powerpc/bpf: Fix detecting BPF atomic instructions

2021-07-01 Thread Alexei Starovoitov
On Thu, Jul 1, 2021 at 8:09 AM Naveen N. Rao wrote: > > Commit 91c960b0056672 ("bpf: Rename BPF_XADD and prepare to encode other > atomics in .imm") converted BPF_XADD to BPF_ATOMIC and added a way to > distinguish instructions based on the immediate field. Existing JIT > implementations were upda