diff options
| author | Alexei Starovoitov <ast@kernel.org> | 2018-05-04 02:49:21 +0300 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2018-05-04 02:49:22 +0300 |
| commit | 5234ccf2be0e51b2cd052fe5e2fcc978e67aebc7 (patch) | |
| tree | 92221b6309ccd5c231dde62a2a7ca1d21cbca9fe /include/linux/filter.h | |
| parent | 08dbc7a66af2321661173c04d872eba44003cc13 (diff) | |
| parent | 32b3652c307ef62f624182fac1fd6328ccc8fcbe (diff) | |
| download | linux-5234ccf2be0e51b2cd052fe5e2fcc978e67aebc7.tar.xz | |
Merge branch 'move-ld_abs-to-native-BPF'
Daniel Borkmann says:
====================
This set simplifies BPF JITs significantly by moving ld_abs/ld_ind
to native BPF, for details see individual patches. Main rationale
is in patch 'implement ld_abs/ld_ind in native bpf'. Thanks!
v1 -> v2:
- Added missing seen_lds_abs in LDX_MSH and use X = A
initially due to being preserved on func call.
- Added a large batch of cBPF tests into test_bpf.
- Added x32 removal of LD_ABS/LD_IND, so all JITs are
covered.
====================
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'include/linux/filter.h')
| -rw-r--r-- | include/linux/filter.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/filter.h b/include/linux/filter.h index b7f81e3a70cb..da7e16523128 100644 --- a/include/linux/filter.h +++ b/include/linux/filter.h @@ -47,7 +47,9 @@ struct xdp_buff; /* Additional register mappings for converted user programs. */ #define BPF_REG_A BPF_REG_0 #define BPF_REG_X BPF_REG_7 -#define BPF_REG_TMP BPF_REG_8 +#define BPF_REG_TMP BPF_REG_2 /* scratch reg */ +#define BPF_REG_D BPF_REG_8 /* data, callee-saved */ +#define BPF_REG_H BPF_REG_9 /* hlen, callee-saved */ /* Kernel hidden auxiliary/helper register for hardening step. * Only used by eBPF JITs. It's nothing more than a temporary |
