search for: bpf_x

Displaying 8 results from an estimated 8 matches for "bpf_x".

Did you mean: bpf_k
2017 Sep 18
0
[PATCH RFC 0/4] Initial 32-bit eBPF encoding support
...uld > construct 32-bit eBPF tests through hand-written assembly. > > A new 32-bit register set is introduced, its name is with "w" prefix and LLVM > assembler will encode statements like "w1 += w2" into the following 8-bit code > field: > > BPF_ADD | BPF_X | BPF_ALU > > BPF_ALU will be used instead of BPF_ALU64. > > NOTE, currently you can only use "w" register with ALU statements, not with > others like branches etc as they don't have different encoding for 32-bit > target. Great to see work in this direction! Can...
2017 Sep 21
0
[iovisor-dev] [PATCH RFC 0/4] Initial 32-bit eBPF encoding support
...; >    A new 32-bit register set is introduced, its name is with "w" > > > prefix and LLVM > > > assembler will encode statements like "w1 += w2" into the following > > > 8-bit code > > > field: > > > > > >      BPF_ADD | BPF_X | BPF_ALU > > > > > > BPF_ALU will be used instead of BPF_ALU64. > > > > > >    NOTE, currently you can only use "w" register with ALU > > > statements, not with > > > others like branches etc as they don't have different encodin...
2017 Sep 23
0
[iovisor-dev] [PATCH RFC 0/4] Initial 32-bit eBPF encoding support
...>>>>> prefix and LLVM >> >>>>> assembler will encode statements like "w1 += w2" into the following >> >>>>> 8-bit code >> >>>>> field: >> >>>>> >> >>>>> BPF_ADD | BPF_X | BPF_ALU >> >>>>> >> >>>>> BPF_ALU will be used instead of BPF_ALU64. >> >>>>> >> >>>>> NOTE, currently you can only use "w" register with ALU >> >>>>> statements, not with >&g...
2020 Jun 30
0
[PATCH 01/18] tools: bpf: Use local copy of headers including uapi/linux/filter.h
.../* Actual filter code */ + __u8 jt; /* Jump true */ + __u8 jf; /* Jump false */ + __u32 k; /* Generic multiuse field */ +}; + +struct sock_fprog { /* Required for SO_ATTACH_FILTER. */ + unsigned short len; /* Number of filter blocks */ + struct sock_filter *filter; +}; + +/* ret - BPF_K and BPF_X also apply */ +#define BPF_RVAL(code) ((code) & 0x18) +#define BPF_A 0x10 + +/* misc */ +#define BPF_MISCOP(code) ((code) & 0xf8) +#define BPF_TAX 0x00 +#define BPF_TXA 0x80 + +/* + * Macros for filter block array initializers. + */ +#ifnde...
2020 Jul 10
0
[PATCH v3 01/19] tools: bpf: Use local copy of headers including uapi/linux/filter.h
.../* Actual filter code */ + __u8 jt; /* Jump true */ + __u8 jf; /* Jump false */ + __u32 k; /* Generic multiuse field */ +}; + +struct sock_fprog { /* Required for SO_ATTACH_FILTER. */ + unsigned short len; /* Number of filter blocks */ + struct sock_filter *filter; +}; + +/* ret - BPF_K and BPF_X also apply */ +#define BPF_RVAL(code) ((code) & 0x18) +#define BPF_A 0x10 + +/* misc */ +#define BPF_MISCOP(code) ((code) & 0xf8) +#define BPF_TAX 0x00 +#define BPF_TXA 0x80 + +/* + * Macros for filter block array initializers. + */ +#ifnde...
2020 Jul 10
24
[PATCH 00/18] Allow architectures to override __READ_ONCE()
Hi all, This is version three of the patches I previously posted here: v1: https://lore.kernel.org/lkml/20191108170120.22331-1-will at kernel.org/ v2: https://lore.kernel.org/r/20200630173734.14057-1-will at kernel.org Changes since v2 include: * Actually add the barrier in READ_ONCE() for Alpha! * Implement Alpha's smp_load_acquire() using __READ_ONCE(), rather than the other
2020 Jun 30
32
[PATCH 00/18] Allow architectures to override __READ_ONCE()
Hi everyone, This is the long-awaited version two of the patches I previously posted in November last year: https://lore.kernel.org/lkml/20191108170120.22331-1-will at kernel.org/ I ended up parking the series while the READ_ONCE() implementation was being overhauled, but with that merged during the recent merge window and LTO patches being posted again [1], it was time for a refresh. The
2020 Jun 30
32
[PATCH 00/18] Allow architectures to override __READ_ONCE()
Hi everyone, This is the long-awaited version two of the patches I previously posted in November last year: https://lore.kernel.org/lkml/20191108170120.22331-1-will at kernel.org/ I ended up parking the series while the READ_ONCE() implementation was being overhauled, but with that merged during the recent merge window and LTO patches being posted again [1], it was time for a refresh. The