Home
last modified time | relevance | path

Searched refs:read_ctx (Results 1 – 3 of 3) sorted by relevance

/linux/tools/testing/selftests/bpf/progs/
H A Dtest_core_reloc_module.c41 struct bpf_testmod_test_read_ctx *read_ctx) in BPF_PROG() argument
55 out->len = BPF_CORE_READ(read_ctx, len); in BPF_PROG()
56 out->off = BPF_CORE_READ(read_ctx, off); in BPF_PROG()
60 out->buf_exists = bpf_core_field_exists(read_ctx->buf); in BPF_PROG()
61 out->off_exists = bpf_core_field_exists(read_ctx->off); in BPF_PROG()
62 out->len_exists = bpf_core_field_exists(read_ctx->len); in BPF_PROG()
75 struct bpf_testmod_test_read_ctx *read_ctx) in BPF_PROG() argument
89 out->len = read_ctx->len; in BPF_PROG()
90 out->off = read_ctx->off; in BPF_PROG()
94 out->buf_exists = bpf_core_field_exists(read_ctx->buf); in BPF_PROG()
[all …]
H A Dtest_module_attach.c14 struct task_struct *task, struct bpf_testmod_test_read_ctx *read_ctx) in BPF_PROG() argument
16 raw_tp_read_sz = BPF_CORE_READ(read_ctx, len); in BPF_PROG()
48 struct task_struct *task, struct bpf_testmod_test_read_ctx *read_ctx) in BPF_PROG() argument
50 tp_btf_read_sz = read_ctx->len; in BPF_PROG()
/linux/fs/cachefiles/
H A Dondemand.c647 struct cachefiles_read_ctx *read_ctx = private; in cachefiles_ondemand_init_read_req() local
649 load->off = read_ctx->off; in cachefiles_ondemand_init_read_req()
650 load->len = read_ctx->len; in cachefiles_ondemand_init_read_req()
740 struct cachefiles_read_ctx read_ctx = {pos, len}; in cachefiles_ondemand_read() local
744 cachefiles_ondemand_init_read_req, &read_ctx); in cachefiles_ondemand_read()