13 lines
320 B
C
13 lines
320 B
C
|
{
|
||
|
"btf_ctx_access accept",
|
||
|
.insns = {
|
||
|
BPF_LDX_MEM(BPF_W, BPF_REG_2, BPF_REG_1, 8), /* load 2nd argument value (int pointer) */
|
||
|
BPF_MOV64_IMM(BPF_REG_0, 0),
|
||
|
BPF_EXIT_INSN(),
|
||
|
},
|
||
|
.result = ACCEPT,
|
||
|
.prog_type = BPF_PROG_TYPE_TRACING,
|
||
|
.expected_attach_type = BPF_TRACE_FENTRY,
|
||
|
.kfunc = "bpf_modify_return_test",
|
||
|
},
|