Home
last modified time | relevance | path

Searched refs:bpf_cookie (Results 1 – 22 of 22) sorted by relevance

/linux/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...]
H A Dfill_link_info.c161 .bpf_cookie = PERF_EVENT_COOKIE, in test_kprobe_fill_link_info()
191 .bpf_cookie = PERF_EVENT_COOKIE, in test_tp_fill_link_info()
209 .bpf_cookie = PERF_EVENT_COOKIE, in test_event_fill_link_info()
244 .bpf_cookie = PERF_EVENT_COOKIE, in test_uprobe_fill_link_info()
/linux/tools/bpf/bpftool/skeleton/
H A Dpid_iter.bpf.c24 u64 bpf_cookie; member
63 return BPF_CORE_READ(event, bpf_cookie); in get_bpf_cookie()
113 e.bpf_cookie = get_bpf_cookie(link); in iter()
H A Dpid_iter.h9 __u64 bpf_cookie; member
/linux/tools/bpf/bpftool/
H A Dpids.c84 refs->bpf_cookie = e->bpf_cookie; in add_ref()
218 jsonw_lluint_field(json_writer, "bpf_cookie", refs->bpf_cookie); in emit_obj_refs_json()
250 printf("\n\tbpf_cookie %llu", (unsigned long long) refs->bpf_cookie); in emit_obj_refs_plain()
/linux/include/linux/
H A Dtrace_events.h770 int perf_event_attach_bpf_prog(struct perf_event *event, struct bpf_prog *prog, u64 bpf_cookie);
793 perf_event_attach_bpf_prog(struct perf_event *event, struct bpf_prog *prog, u64 bpf_cookie) in perf_event_attach_bpf_prog() argument
899 int perf_event_set_bpf_prog(struct perf_event *event, struct bpf_prog *prog, u64 bpf_cookie);
H A Dbpf.h2359 u64 bpf_cookie; member
2401 u64 bpf_cookie,
2414 u64 bpf_cookie; member
2420 u64 bpf_cookie; member
2470 run_ctx.bpf_cookie = item->bpf_cookie; in bpf_prog_run_array()
2515 run_ctx.bpf_cookie = item->bpf_cookie; in bpf_prog_run_array_uprobe()
H A Dperf_event.h907 u64 bpf_cookie; member
/linux/arch/powerpc/net/
H A Dbpf_jit_comp.c527 bpf_cookie))); in invoke_bpf_prog()
532 run_ctx_off + offsetof(struct bpf_tramp_run_ctx, bpf_cookie))); in invoke_bpf_prog()
534 run_ctx_off + offsetof(struct bpf_tramp_run_ctx, bpf_cookie) + 4)); in invoke_bpf_prog()
/linux/kernel/trace/
H A Dbpf_trace.c1133 return run_ctx->bpf_cookie; in BPF_CALL_1()
1145 return ctx->event->bpf_cookie; in BPF_CALL_1()
1160 return run_ctx->bpf_cookie; in BPF_CALL_1()
1922 u64 bpf_cookie) in perf_event_attach_bpf_prog() argument
1949 ret = bpf_prog_array_copy(old_array, NULL, prog, bpf_cookie, &new_array); in perf_event_attach_bpf_prog()
1955 event->bpf_cookie = bpf_cookie; in perf_event_attach_bpf_prog()
2085 run_ctx.bpf_cookie = link->cookie; in __bpf_trace_run()
/linux/kernel/bpf/
H A Dsyscall.c3569 u64 bpf_cookie, in bpf_tracing_prog_attach() argument
3640 fslink->fexit.cookie = bpf_cookie; in bpf_tracing_prog_attach()
3655 link->link.cookie = bpf_cookie; in bpf_tracing_prog_attach()
3946 info->perf_event.kprobe.cookie = event->bpf_cookie; in bpf_perf_link_fill_kprobe()
3973 event->bpf_cookie); in bpf_perf_link_fdinfo_kprobe()
3999 info->perf_event.uprobe.cookie = event->bpf_cookie; in bpf_perf_link_fill_uprobe()
4026 event->bpf_cookie); in bpf_perf_link_fdinfo_uprobe()
4059 info->perf_event.tracepoint.cookie = event->bpf_cookie; in bpf_perf_link_fill_tracepoint()
4068 info->perf_event.event.cookie = event->bpf_cookie; in bpf_perf_link_fill_perf_event()
4105 "event", event->bpf_cookie); in bpf_perf_event_link_show_fdinfo()
[all …]
H A Dbpf_lsm.c214 return run_ctx->bpf_cookie;
H A Dcore.c2771 u64 bpf_cookie, in bpf_prog_array_copy() argument
2825 new->bpf_cookie = existing->bpf_cookie; in bpf_prog_array_copy()
2831 new->bpf_cookie = bpf_cookie; in bpf_prog_array_copy()
/linux/kernel/events/
H A Dcore.c6599 u64 bpf_cookie);
10615 u64 bpf_cookie) in perf_event_set_bpf_handler() argument
10645 event->bpf_cookie = bpf_cookie; in perf_event_set_bpf_handler()
10669 u64 bpf_cookie) in perf_event_set_bpf_handler() argument
11587 u64 bpf_cookie) in __perf_event_set_bpf_prog() argument
11595 return perf_event_set_bpf_handler(event, prog, bpf_cookie); in __perf_event_set_bpf_prog()
11629 return perf_event_attach_bpf_prog(event, prog, bpf_cookie); in __perf_event_set_bpf_prog()
11634 u64 bpf_cookie) in perf_event_set_bpf_prog() argument
11640 ret = __perf_event_set_bpf_prog(event, prog, bpf_cookie); in perf_event_set_bpf_prog()
11670 u64 bpf_cookie) in __perf_event_set_bpf_prog() argument
[all …]
/linux/tools/lib/bpf/
H A Dlibbpf.c11292 .perf_event.bpf_cookie = OPTS_GET(opts, bpf_cookie, 0)); in bpf_program__attach_perf_event_opts()
11303 if (OPTS_GET(opts, bpf_cookie, 0)) { in bpf_program__attach_perf_event_opts()
11673 pe_opts.bpf_cookie = OPTS_GET(opts, bpf_cookie, 0); in bpf_program__attach_kprobe_opts()
11783 kprobe_opts.bpf_cookie = OPTS_GET(opts, bpf_cookie, 0); in bpf_program__attach_ksyscall()
12607 pe_opts.bpf_cookie = OPTS_GET(opts, bpf_cookie, 0); in bpf_program__attach_uprobe_opts()
12941 pe_opts.bpf_cookie = OPTS_GET(opts, bpf_cookie, 0); in bpf_program__attach_tracepoint_opts()
/linux/include/uapi/linux/
H A Dbpf.h1810 __u64 bpf_cookie;
5377 * Get bpf_cookie value provided (optionally) during the program
1784 __u64 bpf_cookie; global() member
/linux/tools/include/uapi/linux/
H A Dbpf.h1810 __u64 bpf_cookie;
5377 * Get bpf_cookie value provided (optionally) during the program
1784 __u64 bpf_cookie; global() member
/linux/arch/loongarch/net/
H A Dbpf_jit.c1489 int cookie_off = offsetof(struct bpf_tramp_run_ctx, bpf_cookie); in invoke_bpf_prog()
/linux/arch/s390/net/
H A Dbpf_jit_comp.c2515 offsetof(struct bpf_tramp_run_ctx, bpf_cookie); in invoke_bpf_prog()
/linux/arch/riscv/net/
H A Dbpf_jit_comp64.c942 int cookie_off = offsetof(struct bpf_tramp_run_ctx, bpf_cookie); in invoke_bpf_prog()
/linux/arch/arm64/net/
H A Dbpf_jit_comp.c2299 int cookie_off = offsetof(struct bpf_tramp_run_ctx, bpf_cookie); in invoke_bpf_prog()
/linux/arch/x86/net/
H A Dbpf_jit_comp.c2987 int ctx_cookie_off = offsetof(struct bpf_tramp_run_ctx, bpf_cookie); in invoke_bpf_prog()