• Home
  • Raw
  • Download

Lines Matching refs:off

1560 static bool kprobe_prog_is_valid_access(int off, int size, enum bpf_access_type type,  in kprobe_prog_is_valid_access()  argument
1564 if (off < 0 || off >= sizeof(struct pt_regs)) in kprobe_prog_is_valid_access()
1568 if (off % size != 0) in kprobe_prog_is_valid_access()
1574 if (off + size > sizeof(struct pt_regs)) in kprobe_prog_is_valid_access()
1671 static bool tp_prog_is_valid_access(int off, int size, enum bpf_access_type type, in tp_prog_is_valid_access() argument
1675 if (off < sizeof(void *) || off >= PERF_MAX_TRACE_SIZE) in tp_prog_is_valid_access()
1679 if (off % size != 0) in tp_prog_is_valid_access()
1974 static bool raw_tp_prog_is_valid_access(int off, int size, in raw_tp_prog_is_valid_access() argument
1979 return bpf_tracing_ctx_access(off, size, type); in raw_tp_prog_is_valid_access()
1982 static bool tracing_prog_is_valid_access(int off, int size, in tracing_prog_is_valid_access() argument
1987 return bpf_tracing_btf_ctx_access(off, size, type, prog, info); in tracing_prog_is_valid_access()
2017 static bool raw_tp_writable_prog_is_valid_access(int off, int size, in raw_tp_writable_prog_is_valid_access() argument
2022 if (off == 0) { in raw_tp_writable_prog_is_valid_access()
2027 return raw_tp_prog_is_valid_access(off, size, type, prog, info); in raw_tp_writable_prog_is_valid_access()
2038 static bool pe_prog_is_valid_access(int off, int size, enum bpf_access_type type, in pe_prog_is_valid_access() argument
2044 if (off < 0 || off >= sizeof(struct bpf_perf_event_data)) in pe_prog_is_valid_access()
2048 if (off % size != 0) { in pe_prog_is_valid_access()
2053 if (off % size != 4) in pe_prog_is_valid_access()
2057 switch (off) { in pe_prog_is_valid_access()
2060 if (!bpf_ctx_narrow_access_ok(off, size, size_u64)) in pe_prog_is_valid_access()
2065 if (!bpf_ctx_narrow_access_ok(off, size, size_u64)) in pe_prog_is_valid_access()
2083 switch (si->off) { in pe_prog_convert_ctx_access()
2105 si->off); in pe_prog_convert_ctx_access()