Lines Matching refs:off
1377 static bool kprobe_prog_is_valid_access(int off, int size, enum bpf_access_type type, in kprobe_prog_is_valid_access() argument
1381 if (off < 0 || off >= sizeof(struct pt_regs)) in kprobe_prog_is_valid_access()
1385 if (off % size != 0) in kprobe_prog_is_valid_access()
1391 if (off + size > sizeof(struct pt_regs)) in kprobe_prog_is_valid_access()
1486 static bool tp_prog_is_valid_access(int off, int size, enum bpf_access_type type, in tp_prog_is_valid_access() argument
1490 if (off < sizeof(void *) || off >= PERF_MAX_TRACE_SIZE) in tp_prog_is_valid_access()
1494 if (off % size != 0) in tp_prog_is_valid_access()
1756 static bool raw_tp_prog_is_valid_access(int off, int size, in raw_tp_prog_is_valid_access() argument
1761 if (off < 0 || off >= sizeof(__u64) * MAX_BPF_FUNC_ARGS) in raw_tp_prog_is_valid_access()
1765 if (off % size != 0) in raw_tp_prog_is_valid_access()
1770 static bool tracing_prog_is_valid_access(int off, int size, in tracing_prog_is_valid_access() argument
1775 if (off < 0 || off >= sizeof(__u64) * MAX_BPF_FUNC_ARGS) in tracing_prog_is_valid_access()
1779 if (off % size != 0) in tracing_prog_is_valid_access()
1781 return btf_ctx_access(off, size, type, prog, info); in tracing_prog_is_valid_access()
1811 static bool raw_tp_writable_prog_is_valid_access(int off, int size, in raw_tp_writable_prog_is_valid_access() argument
1816 if (off == 0) { in raw_tp_writable_prog_is_valid_access()
1821 return raw_tp_prog_is_valid_access(off, size, type, prog, info); in raw_tp_writable_prog_is_valid_access()
1832 static bool pe_prog_is_valid_access(int off, int size, enum bpf_access_type type, in pe_prog_is_valid_access() argument
1838 if (off < 0 || off >= sizeof(struct bpf_perf_event_data)) in pe_prog_is_valid_access()
1842 if (off % size != 0) { in pe_prog_is_valid_access()
1847 if (off % size != 4) in pe_prog_is_valid_access()
1851 switch (off) { in pe_prog_is_valid_access()
1854 if (!bpf_ctx_narrow_access_ok(off, size, size_u64)) in pe_prog_is_valid_access()
1859 if (!bpf_ctx_narrow_access_ok(off, size, size_u64)) in pe_prog_is_valid_access()
1877 switch (si->off) { in pe_prog_convert_ctx_access()
1899 si->off); in pe_prog_convert_ctx_access()