Home
last modified time | relevance | path

Searched refs:bpf_core_read (Results 1 – 17 of 17) sorted by relevance

/linux-6.12.1/samples/bpf/
Dtracex5.bpf.c50 bpf_core_read(&sd, sizeof(sd), (void *)PT_REGS_PARM2(ctx)); in PROG()
63 bpf_core_read(&sd, sizeof(sd), (void *)PT_REGS_PARM2(ctx)); in PROG()
Dtracex1.bpf.c31 bpf_core_read(&skb, sizeof(skb), (void *)PT_REGS_PARM1(ctx)); in bpf_prog1()
/linux-6.12.1/tools/testing/selftests/bpf/progs/
Dtest_core_reloc_mods.c46 #define CORE_READ(dst, src) bpf_core_read(dst, sizeof(*(dst)), src)
51 bpf_core_read((char *)(dst) + sizeof(*(dst)) - __sz, __sz, \
Dtest_core_autosize.c129 #define bpf_core_read_int bpf_core_read
134 bpf_core_read((char *)(dst) + __off, sz, src); \
Dtest_core_reloc_ptr_as_arr.c20 #define CORE_READ(dst, src) bpf_core_read(dst, sizeof(*(dst)), src)
Dtest_core_reloc_nesting.c34 #define CORE_READ(dst, src) bpf_core_read(dst, sizeof(*(dst)), src)
Dtest_core_reloc_misc.c36 #define CORE_READ(dst, src) bpf_core_read(dst, sizeof(*(dst)), src)
Dtest_core_reloc_primitives.c29 #define CORE_READ(dst, src) bpf_core_read(dst, sizeof(*(dst)), src)
Dtest_core_reloc_flavors.c43 #define CORE_READ(dst, src) bpf_core_read(dst, sizeof(*(dst)), src)
Dtest_core_reloc_arrays.c37 #define CORE_READ(dst, src) bpf_core_read(dst, sizeof(*(dst)), src)
Dtest_core_reloc_ints.c27 #define CORE_READ(dst, src) bpf_core_read(dst, sizeof(*(dst)), src)
Dtest_core_reloc_kernel.c43 #define CORE_READ(dst, src) bpf_core_read(dst, sizeof(*(dst)), src)
/linux-6.12.1/tools/lib/bpf/
Dbpf_core_read.h311 #define bpf_core_read(dst, sz, src) \ macro
428 ___core_read(bpf_core_read, bpf_core_read, \
464 ___core_read(bpf_core_read_str, bpf_core_read, \
DMakefile248 bpf_helpers.h bpf_tracing.h bpf_endian.h bpf_core_read.h \
/linux-6.12.1/Documentation/bpf/libbpf/
Dlibbpf_overview.rst173 CO-RE relocatable manner is ``bpf_core_read(dst, sz, src)``, which will read
185 err = bpf_core_read(&parent_task, sizeof(void *), &task->parent);
193 ``bpf_get_current_task()``. We then use ``bpf_core_read()`` to read the parent
194 field of task struct into the ``parent_task`` variable. ``bpf_core_read()`` is
/linux-6.12.1/tools/perf/util/bpf_skel/
Dlock_contention.bpf.c226 err = bpf_core_read(&pid, sizeof(pid), &task->pid); in update_task_data()
/linux-6.12.1/tools/testing/selftests/bpf/
DMakefile542 $(addprefix $(BPFDIR)/, bpf_core_read.h \