/openbmc/linux/tools/testing/selftests/bpf/verifier/ |
H A D | ld_abs.c | 6 BPF_LD_ABS(BPF_W, -0x200000), 18 BPF_LD_ABS(BPF_W, -0x200000), 30 BPF_LD_ABS(BPF_W, -0x200000), 42 BPF_LD_ABS(BPF_W, -0x200000), 54 BPF_LD_ABS(BPF_W, -0x200000), 66 BPF_LD_ABS(BPF_W, -0x200000), 78 BPF_LD_ABS(BPF_W, 0), 88 BPF_LD_ABS(BPF_W, 0), 130 BPF_LD_IND(BPF_W, BPF_REG_7, 14), 254 BPF_LD_ABS(BPF_W, 0), [all …]
|
H A D | ctx_skb.c | 4 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1, 7 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1, 10 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1, 13 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1, 16 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1, 19 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1, 22 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1, 25 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1, 53 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1, 66 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1, [all …]
|
H A D | atomic_cmpxchg.c | 42 BPF_ST_MEM(BPF_W, BPF_REG_10, -4, 3), 46 BPF_ATOMIC_OP(BPF_W, BPF_CMPXCHG, BPF_REG_10, BPF_REG_1, -4), 52 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_10, -4), 59 BPF_ATOMIC_OP(BPF_W, BPF_CMPXCHG, BPF_REG_10, BPF_REG_1, -4), 65 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_10, -4), 96 BPF_ATOMIC_OP(BPF_W, BPF_CMPXCHG, BPF_REG_10, BPF_REG_1, -8), 184 BPF_ATOMIC_OP(BPF_W, BPF_CMPXCHG, BPF_REG_10, BPF_REG_5, -8), 199 BPF_STX_MEM(BPF_W, BPF_REG_10, BPF_REG_0, -8), 205 BPF_LDX_MEM(BPF_W, BPF_REG_1, BPF_REG_10, -8), 220 BPF_STX_MEM(BPF_W, BPF_REG_10, BPF_REG_0, -8), [all …]
|
H A D | map_kptr.c | 10 BPF_ST_MEM(BPF_W, BPF_REG_2, 0, 0), 30 BPF_ST_MEM(BPF_W, BPF_REG_2, 0, 0), 34 BPF_ST_MEM(BPF_W, BPF_REG_0, 0, 0), 50 BPF_ST_MEM(BPF_W, BPF_REG_2, 0, 0), 81 BPF_ST_MEM(BPF_W, BPF_REG_2, 0, 0), 113 BPF_ST_MEM(BPF_W, BPF_REG_2, 0, 0), 135 BPF_ST_MEM(BPF_W, BPF_REG_2, 0, 0), 165 BPF_ST_MEM(BPF_W, BPF_REG_2, 0, 0), 189 BPF_ST_MEM(BPF_W, BPF_REG_2, 0, 0), 210 BPF_ST_MEM(BPF_W, BPF_REG_2, 0, 0), [all …]
|
H A D | ctx_sk_lookup.c | 19 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1, 37 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1, 55 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1, 109 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1, 111 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1, 113 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1, 115 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1, 133 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1, 151 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1, 205 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1, [all …]
|
H A D | calls.c | 932 BPF_LD_ABS(BPF_W, 0), 939 BPF_LD_ABS(BPF_W, 0), 1885 BPF_ST_MEM(BPF_W, BPF_REG_2, 0, 0), 1901 BPF_ST_MEM(BPF_W, BPF_REG_4, 0, 0), 1917 BPF_ST_MEM(BPF_W, BPF_REG_2, 0, 0), 1934 BPF_ST_MEM(BPF_W, BPF_REG_4, 0, 0), 1952 BPF_ST_MEM(BPF_W, BPF_REG_2, 0, 0), 1970 BPF_ST_MEM(BPF_W, BPF_REG_4, 0, 0), 1987 BPF_ST_MEM(BPF_W, BPF_REG_2, 0, 0), 2021 BPF_ST_MEM(BPF_W, BPF_REG_2, 0, 0), [all …]
|
H A D | atomic_or.c | 57 BPF_ST_MEM(BPF_W, BPF_REG_10, -4, 0x110), 60 BPF_ATOMIC_OP(BPF_W, BPF_OR | BPF_FETCH, BPF_REG_10, BPF_REG_1, -4), 66 BPF_LDX_MEM(BPF_W, BPF_REG_1, BPF_REG_10, -4), 88 BPF_ATOMIC_OP(BPF_W, BPF_OR | BPF_FETCH, BPF_REG_10, BPF_REG_1, -8),
|
H A D | atomic_xchg.c | 28 BPF_ST_MEM(BPF_W, BPF_REG_10, -4, 3), 31 BPF_ATOMIC_OP(BPF_W, BPF_XCHG, BPF_REG_10, BPF_REG_1, -4), 37 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_10, -4),
|
H A D | atomic_xor.c | 57 BPF_ST_MEM(BPF_W, BPF_REG_10, -4, 0x110), 60 BPF_ATOMIC_OP(BPF_W, BPF_XOR | BPF_FETCH, BPF_REG_10, BPF_REG_1, -4), 66 BPF_LDX_MEM(BPF_W, BPF_REG_1, BPF_REG_10, -4),
|
H A D | atomic_fetch_add.c | 28 BPF_ST_MEM(BPF_W, BPF_REG_10, -4, 3), 31 BPF_ATOMIC_OP(BPF_W, BPF_ADD | BPF_FETCH, BPF_REG_10, BPF_REG_1, -4), 37 BPF_LDX_MEM(BPF_W, BPF_REG_1, BPF_REG_10, -4),
|
H A D | atomic_and.c | 57 BPF_ST_MEM(BPF_W, BPF_REG_10, -4, 0x110), 60 BPF_ATOMIC_OP(BPF_W, BPF_AND | BPF_FETCH, BPF_REG_10, BPF_REG_1, -4), 66 BPF_LDX_MEM(BPF_W, BPF_REG_1, BPF_REG_10, -4),
|
H A D | perf_event_sample_period.c | 38 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1, 41 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1,
|
/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | verifier_ld_ind.c | 22 : __imm_insn(ld_ind, BPF_LD_IND(BPF_W, BPF_REG_1, -0x200000)) in ind_check_calling_conv_r1() 39 : __imm_insn(ld_ind, BPF_LD_IND(BPF_W, BPF_REG_2, -0x200000)) in ind_check_calling_conv_r2() 56 : __imm_insn(ld_ind, BPF_LD_IND(BPF_W, BPF_REG_3, -0x200000)) in ind_check_calling_conv_r3() 73 : __imm_insn(ld_ind, BPF_LD_IND(BPF_W, BPF_REG_4, -0x200000)) in ind_check_calling_conv_r4() 90 : __imm_insn(ld_ind, BPF_LD_IND(BPF_W, BPF_REG_5, -0x200000)) in ind_check_calling_conv_r5() 106 : __imm_insn(ld_ind, BPF_LD_IND(BPF_W, BPF_REG_7, -0x200000)) in ind_check_calling_conv_r7()
|
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | sockopt.c | 129 BPF_LDX_MEM(BPF_W, BPF_REG_6, BPF_REG_1, 136 BPF_STX_MEM(BPF_W, BPF_REG_1, BPF_REG_0, 159 BPF_STX_MEM(BPF_W, BPF_REG_1, BPF_REG_0, 172 BPF_LDX_MEM(BPF_W, BPF_REG_6, BPF_REG_1, 179 BPF_STX_MEM(BPF_W, BPF_REG_1, BPF_REG_0, 201 BPF_LDX_MEM(BPF_W, BPF_REG_6, BPF_REG_1, 220 BPF_STX_MEM(BPF_W, BPF_REG_1, BPF_REG_0, 233 BPF_LDX_MEM(BPF_W, BPF_REG_6, BPF_REG_1, 240 BPF_STX_MEM(BPF_W, BPF_REG_1, BPF_REG_0, 261 BPF_STX_MEM(BPF_W, BPF_REG_1, BPF_REG_0, [all …]
|
H A D | align.c | 132 BPF_LDX_MEM(BPF_W, BPF_REG_2, BPF_REG_1, \ 134 BPF_LDX_MEM(BPF_W, BPF_REG_3, BPF_REG_1, \ 230 BPF_LDX_MEM(BPF_W, BPF_REG_4, BPF_REG_5, 0), 263 BPF_LDX_MEM(BPF_W, BPF_REG_4, BPF_REG_5, 0), 276 BPF_LDX_MEM(BPF_W, BPF_REG_4, BPF_REG_5, 0), 291 BPF_LDX_MEM(BPF_W, BPF_REG_4, BPF_REG_5, 0), 379 BPF_LDX_MEM(BPF_W, BPF_REG_6, BPF_REG_5, 0), 390 BPF_LDX_MEM(BPF_W, BPF_REG_6, BPF_REG_5, 0), 455 BPF_LDX_MEM(BPF_W, BPF_REG_4, BPF_REG_6, 0), 507 BPF_LDX_MEM(BPF_W, BPF_REG_6, BPF_REG_5, 0), [all …]
|
H A D | raw_tp_writable_test_run.c | 14 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_6, 0), in serial_test_raw_tp_writable_test_run() 16 BPF_STX_MEM(BPF_W, BPF_REG_6, BPF_REG_0, 0), in serial_test_raw_tp_writable_test_run()
|
H A D | cgroup_attach_multi.c | 41 BPF_STX_MEM(BPF_W, BPF_REG_10, BPF_REG_0, -4), /* *(u32 *)(fp - 4) = r0 */ in prog_load_cnt() 54 BPF_ATOMIC_OP(BPF_W, BPF_ADD, BPF_REG_0, BPF_REG_1, 0), in prog_load_cnt() 59 BPF_LDX_MEM(BPF_W, BPF_REG_3, BPF_REG_0, 0), in prog_load_cnt() 61 BPF_STX_MEM(BPF_W, BPF_REG_0, BPF_REG_3, 0), in prog_load_cnt()
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | test_sock.c | 54 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_6, 67 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_6, 80 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_6, 93 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_6, 202 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_6, 206 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_6, 232 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_6, 236 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_6, 262 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_6, 266 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_6, [all …]
|
/openbmc/linux/tools/lib/bpf/ |
H A D | gen_loader.c | 203 case 4: return BPF_W; in insn_bytes_to_bpf_size() 366 emit(gen, BPF_LDX_MEM(BPF_W, BPF_REG_1, BPF_REG_0, 0)); in emit_sys_close_blob() 510 emit(gen, BPF_STX_MEM(BPF_W, BPF_REG_10, BPF_REG_7, in bpf_gen__map_create() 722 emit(gen, BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_8, in emit_relo_kfunc_btf() 740 emit(gen, BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_8, in emit_ksym_relo_log() 781 emit(gen, BPF_STX_MEM(BPF_W, BPF_REG_8, BPF_REG_9, in emit_relo_ksym_typeless() 837 emit(gen, BPF_STX_MEM(BPF_W, BPF_REG_8, BPF_REG_7, in emit_relo_ksym_btf() 1010 emit(gen, BPF_STX_MEM(BPF_W, BPF_REG_0, BPF_REG_7, in bpf_gen__prog_load() 1013 emit(gen, BPF_STX_MEM(BPF_W, BPF_REG_0, BPF_REG_7, in bpf_gen__prog_load() 1029 emit(gen, BPF_STX_MEM(BPF_W, BPF_REG_10, BPF_REG_7, in bpf_gen__prog_load() [all …]
|
/openbmc/linux/lib/ |
H A D | test_bpf.c | 8129 BPF_STX_MEM(BPF_W, R1, R2, 13), 8130 BPF_LDX_MEM(BPF_W, R0, R1, 13), 11805 BPF_ST_MEM(BPF_W, R10, -4, 0), 14977 BPF_LDX_MEM(BPF_W, R2, R1, 0), 14979 BPF_STX_MEM(BPF_W, R1, R2, 0), 14989 BPF_LDX_MEM(BPF_W, R2, R1, 0), 14991 BPF_STX_MEM(BPF_W, R1, R2, 0), 15011 BPF_LDX_MEM(BPF_W, R2, R1, 0), 15013 BPF_STX_MEM(BPF_W, R1, R2, 0), 15023 BPF_LDX_MEM(BPF_W, R2, R1, 0), [all …]
|
/openbmc/linux/samples/bpf/ |
H A D | test_cgrp2_attach.c | 50 BPF_STX_MEM(BPF_W, BPF_REG_10, BPF_REG_0, -4), /* *(u32 *)(fp - 4) = r0 */ in prog_load() 61 BPF_STX_MEM(BPF_W, BPF_REG_10, BPF_REG_0, -4), /* *(u32 *)(fp - 4) = r0 */ in prog_load() 67 BPF_LDX_MEM(BPF_W, BPF_REG_1, BPF_REG_6, offsetof(struct __sk_buff, len)), /* r1 = skb->len */ in prog_load()
|
H A D | test_cgrp2_sock.c | 45 BPF_STX_MEM(BPF_W, BPF_REG_1, BPF_REG_3, offsetof(struct bpf_sock, bound_dev_if)), in prog_load() 63 BPF_STX_MEM(BPF_W, BPF_REG_1, BPF_REG_3, offsetof(struct bpf_sock, mark)), in prog_load() 71 BPF_STX_MEM(BPF_W, BPF_REG_1, BPF_REG_3, offsetof(struct bpf_sock, priority)), in prog_load()
|
/openbmc/linux/samples/seccomp/ |
H A D | dropper.c | 31 BPF_STMT(BPF_LD+BPF_W+BPF_ABS, in install_filter() 34 BPF_STMT(BPF_LD+BPF_W+BPF_ABS, in install_filter()
|
H A D | bpf-direct.c | 115 BPF_STMT(BPF_LD+BPF_W+BPF_ABS, syscall_nr), in install_filter() 131 BPF_STMT(BPF_LD+BPF_W+BPF_ABS, syscall_arg(0)), in install_filter() 136 BPF_STMT(BPF_LD+BPF_W+BPF_ABS, syscall_arg(0)), in install_filter()
|
H A D | bpf-helper.h | 140 BPF_STMT(BPF_LD+BPF_W+BPF_ABS, LO_ARG(idx)) 144 BPF_STMT(BPF_LD+BPF_W+BPF_ABS, LO_ARG(idx)), \ 146 BPF_STMT(BPF_LD+BPF_W+BPF_ABS, HI_ARG(idx)), \ 260 BPF_STMT(BPF_LD+BPF_W+BPF_ABS, \
|