4 BPF_LDX_MEM(BPF_W
, BPF_REG_1
, BPF_REG_1
, 0),
5 BPF_MOV64_REG(BPF_REG_2
, BPF_REG_10
),
6 BPF_ALU64_IMM(BPF_ADD
, BPF_REG_2
, -8),
7 BPF_MOV64_IMM(BPF_REG_6
, 0),
8 BPF_STX_MEM(BPF_DW
, BPF_REG_2
, BPF_REG_6
, 0),
9 BPF_LD_IMM64(BPF_REG_3
, 8),
10 BPF_RAW_INSN(BPF_JMP
| BPF_CALL
, 0, 0, 0, BPF_FUNC_d_path
),
11 BPF_MOV64_IMM(BPF_REG_0
, 0),
15 .prog_type
= BPF_PROG_TYPE_TRACING
,
16 .expected_attach_type
= BPF_TRACE_FENTRY
,
17 .kfunc
= "dentry_open",
22 BPF_LDX_MEM(BPF_W
, BPF_REG_1
, BPF_REG_1
, 0),
23 BPF_MOV64_REG(BPF_REG_2
, BPF_REG_10
),
24 BPF_ALU64_IMM(BPF_ADD
, BPF_REG_2
, -8),
25 BPF_MOV64_IMM(BPF_REG_6
, 0),
26 BPF_STX_MEM(BPF_DW
, BPF_REG_2
, BPF_REG_6
, 0),
27 BPF_LD_IMM64(BPF_REG_3
, 8),
28 BPF_RAW_INSN(BPF_JMP
| BPF_CALL
, 0, 0, 0, BPF_FUNC_d_path
),
29 BPF_MOV64_IMM(BPF_REG_0
, 0),
32 .errstr
= "helper call is not allowed in probe",
34 .prog_type
= BPF_PROG_TYPE_TRACING
,
35 .expected_attach_type
= BPF_TRACE_FENTRY
,