Home
last modified time | relevance | path

Searched refs:bpf_cookie (Results 1 - 24 of 24) sorted by relevance

/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/
H A Dbpf_cookie.c29 opts.bpf_cookie = 0x1; in kprobe_subtest()
36 opts.bpf_cookie = 0x2; in kprobe_subtest()
44 opts.bpf_cookie = 0x10; in kprobe_subtest()
51 opts.bpf_cookie = 0x20; in kprobe_subtest()
330 opts.bpf_cookie = 0x100; in uprobe_subtest()
337 opts.bpf_cookie = 0x200; in uprobe_subtest()
345 opts.bpf_cookie = 0x1000; in uprobe_subtest()
352 opts.bpf_cookie = 0x2000; in uprobe_subtest()
378 opts.bpf_cookie = 0x10000; in tp_subtest()
385 opts.bpf_cookie in tp_subtest()
[all...]
/kernel/linux/linux-6.6/tools/bpf/bpftool/skeleton/
H A Dpid_iter.bpf.c24 u64 bpf_cookie; member
62 return BPF_CORE_READ(event, bpf_cookie); in get_bpf_cookie()
108 e.bpf_cookie = get_bpf_cookie(link); in iter()
H A Dpid_iter.h9 __u64 bpf_cookie; member
/kernel/linux/linux-6.6/tools/bpf/bpftool/
H A Dpids.c82 refs->bpf_cookie = e->bpf_cookie; in add_ref()
211 jsonw_lluint_field(json_writer, "bpf_cookie", refs->bpf_cookie); in emit_obj_refs_json()
243 printf("\n\tbpf_cookie %llu", (unsigned long long) refs->bpf_cookie); in emit_obj_refs_plain()
H A Dmain.h109 __u64 bpf_cookie; member
/kernel/linux/linux-6.6/tools/lib/bpf/
H A Dlibbpf.h456 __u64 bpf_cookie; member
491 __u64 bpf_cookie; member
588 __u64 bpf_cookie; member
638 __u64 bpf_cookie; member
730 __u64 bpf_cookie; member
732 #define bpf_tracepoint_opts__last_field bpf_cookie
H A Dbpf.h386 __u64 bpf_cookie; member
H A Dlibbpf.c10141 .perf_event.bpf_cookie = OPTS_GET(opts, bpf_cookie, 0)); in bpf_program__attach_perf_event_opts()
10153 if (OPTS_GET(opts, bpf_cookie, 0)) { in bpf_program__attach_perf_event_opts()
10528 pe_opts.bpf_cookie = OPTS_GET(opts, bpf_cookie, 0); in bpf_program__attach_kprobe_opts()
10638 kprobe_opts.bpf_cookie = OPTS_GET(opts, bpf_cookie, 0); in bpf_program__attach_ksyscall()
11388 pe_opts.bpf_cookie = OPTS_GET(opts, bpf_cookie, 0); in bpf_program__attach_uprobe_opts()
11713 pe_opts.bpf_cookie in bpf_program__attach_tracepoint_opts()
[all...]
H A Dbpf.c757 attr.link_create.perf_event.bpf_cookie = OPTS_GET(opts, perf_event.bpf_cookie, 0); in bpf_link_create()
H A Dusdt.c278 * Added in: 7adfc6c9b315 ("bpf: Add bpf_get_attach_cookie() BPF helper to access bpf_cookie value") in usdt_manager_new()
1074 opts.bpf_cookie = man->has_bpf_cookie ? spec_id : 0; in usdt_manager_attach_usdt()
/kernel/linux/linux-6.6/include/linux/
H A Dtrace_events.h759 int perf_event_attach_bpf_prog(struct perf_event *event, struct bpf_prog *prog, u64 bpf_cookie);
778 perf_event_attach_bpf_prog(struct perf_event *event, struct bpf_prog *prog, u64 bpf_cookie) in perf_event_attach_bpf_prog() argument
901 int perf_event_set_bpf_prog(struct perf_event *event, struct bpf_prog *prog, u64 bpf_cookie);
H A Dbpf.h1832 u64 bpf_cookie; member
1874 u64 bpf_cookie,
1887 u64 bpf_cookie; member
1893 u64 bpf_cookie; member
1943 run_ctx.bpf_cookie = item->bpf_cookie; in bpf_prog_run_array()
1989 run_ctx.bpf_cookie = item->bpf_cookie; in bpf_prog_run_array_uprobe()
H A Dperf_event.h815 u64 bpf_cookie; member
/kernel/linux/linux-6.6/kernel/trace/
H A Dbpf_trace.c1142 return run_ctx->bpf_cookie; in BPF_CALL_1()
1154 return ctx->event->bpf_cookie; in BPF_CALL_1()
1169 return run_ctx->bpf_cookie; in BPF_CALL_1()
2163 u64 bpf_cookie) in perf_event_attach_bpf_prog()
2190 ret = bpf_prog_array_copy(old_array, NULL, prog, bpf_cookie, &new_array); in perf_event_attach_bpf_prog()
2196 event->bpf_cookie = bpf_cookie; in perf_event_attach_bpf_prog()
2161 perf_event_attach_bpf_prog(struct perf_event *event, struct bpf_prog *prog, u64 bpf_cookie) perf_event_attach_bpf_prog() argument
/kernel/linux/linux-6.6/kernel/bpf/
H A Dbpf_lsm.c186 return run_ctx->bpf_cookie; in BPF_CALL_1()
H A Dcore.c2584 u64 bpf_cookie, in bpf_prog_array_copy()
2638 new->bpf_cookie = existing->bpf_cookie; in bpf_prog_array_copy()
2644 new->bpf_cookie = bpf_cookie; in bpf_prog_array_copy()
2581 bpf_prog_array_copy(struct bpf_prog_array *old_array, struct bpf_prog *exclude_prog, struct bpf_prog *include_prog, u64 bpf_cookie, struct bpf_prog_array **new_array) bpf_prog_array_copy() argument
H A Dsyscall.c3120 u64 bpf_cookie) in bpf_tracing_prog_attach()
3185 link->link.cookie = bpf_cookie; in bpf_tracing_prog_attach()
3591 err = perf_event_set_bpf_prog(event, prog, attr->link_create.perf_event.bpf_cookie); in bpf_perf_link_attach()
5554 run_ctx.bpf_cookie = 0; in kern_sys_bpf()
3117 bpf_tracing_prog_attach(struct bpf_prog *prog, int tgt_prog_fd, u32 btf_id, u64 bpf_cookie) bpf_tracing_prog_attach() argument
/kernel/linux/linux-6.6/kernel/events/
H A Dcore.c10441 u64 bpf_cookie) in perf_event_set_bpf_handler()
10471 event->bpf_cookie = bpf_cookie; in perf_event_set_bpf_handler()
10491 u64 bpf_cookie) in perf_event_set_bpf_handler()
10520 u64 bpf_cookie) in perf_event_set_bpf_prog()
10525 return perf_event_set_bpf_handler(event, prog, bpf_cookie); in perf_event_set_bpf_prog()
10555 return perf_event_attach_bpf_prog(event, prog, bpf_cookie); in perf_event_set_bpf_prog()
10578 u64 bpf_cookie) in perf_event_set_bpf_prog()
10439 perf_event_set_bpf_handler(struct perf_event *event, struct bpf_prog *prog, u64 bpf_cookie) perf_event_set_bpf_handler() argument
10489 perf_event_set_bpf_handler(struct perf_event *event, struct bpf_prog *prog, u64 bpf_cookie) perf_event_set_bpf_handler() argument
10519 perf_event_set_bpf_prog(struct perf_event *event, struct bpf_prog *prog, u64 bpf_cookie) perf_event_set_bpf_prog() argument
10577 perf_event_set_bpf_prog(struct perf_event *event, struct bpf_prog *prog, u64 bpf_cookie) perf_event_set_bpf_prog() argument
/kernel/linux/linux-6.6/include/uapi/linux/
H A Dbpf.h1607 __u64 bpf_cookie; member
5130 * Get bpf_cookie value provided (optionally) during the program
/kernel/linux/linux-6.6/tools/include/uapi/linux/
H A Dbpf.h1607 __u64 bpf_cookie; member
5130 * Get bpf_cookie value provided (optionally) during the program
/kernel/linux/linux-6.6/arch/arm64/net/
H A Dbpf_jit_comp.c1715 int cookie_off = offsetof(struct bpf_tramp_run_ctx, bpf_cookie); in invoke_bpf_prog()
/kernel/linux/linux-6.6/arch/riscv/net/
H A Dbpf_jit_comp64.c726 int cookie_off = offsetof(struct bpf_tramp_run_ctx, bpf_cookie); in invoke_bpf_prog()
/kernel/linux/linux-6.6/arch/s390/net/
H A Dbpf_jit_comp.c2111 offsetof(struct bpf_tramp_run_ctx, bpf_cookie); in invoke_bpf_prog()
/kernel/linux/linux-6.6/arch/x86/net/
H A Dbpf_jit_comp.c2135 int ctx_cookie_off = offsetof(struct bpf_tramp_run_ctx, bpf_cookie); in invoke_bpf_prog()

Completed in 95 milliseconds