bpf_sysctl
struct bpf_sysctl, struct bpf_sysctl_kern)
if (off < 0 || off + size > sizeof(struct bpf_sysctl) || off % size)
case bpf_ctx_range(struct bpf_sysctl, write):
case bpf_ctx_range(struct bpf_sysctl, file_pos):
case offsetof(struct bpf_sysctl, write):
case offsetof(struct bpf_sysctl, file_pos):
BPF_RETVAL_HOOK(sysctl, "cgroup/sysctl", bpf_sysctl, 0)
N(CGROUP_SYSCTL, struct bpf_sysctl, file_pos),
offsetof(struct bpf_sysctl, write)),
offsetof(struct bpf_sysctl, write) + 2),
offsetof(struct bpf_sysctl, write)),
offsetof(struct bpf_sysctl, file_pos)),
offsetof(struct bpf_sysctl, file_pos)),
offsetof(struct bpf_sysctl, file_pos) + 3),
offsetof(struct bpf_sysctl, file_pos)),
offsetof(struct bpf_sysctl, write)),
offsetof(struct bpf_sysctl, write)),
static __always_inline int is_tcp_mem(struct bpf_sysctl *ctx)
int sysctl_tcp_mem(struct bpf_sysctl *ctx)
static __attribute__((noinline)) int is_tcp_mem(struct bpf_sysctl *ctx)
int sysctl_tcp_mem(struct bpf_sysctl *ctx)
static __always_inline int is_tcp_mem(struct bpf_sysctl *ctx)
int sysctl_tcp_mem(struct bpf_sysctl *ctx)