Home
last modified time | relevance | path

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

12

/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 = 0x20000; in tp_subtest()
[all …]
H A Dfill_link_info.c156 .bpf_cookie = PERF_EVENT_COOKIE, in test_kprobe_fill_link_info()
182 .bpf_cookie = PERF_EVENT_COOKIE, in test_tp_fill_link_info()
200 .bpf_cookie = PERF_EVENT_COOKIE, in test_event_fill_link_info()
235 .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
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
/linux/tools/testing/selftests/bpf/
H A DDENYLIST.aarch641 bpf_cookie/multi_kprobe_attach_api # kprobe_multi_link_api_subtest:FAIL:fentry_raw_sk…
2 bpf_cookie/multi_kprobe_link_api # kprobe_multi_link_api_subtest:FAIL:fentry_raw_sk…
/linux/tools/bpf/bpftool/
H A Dpids.c82 refs->bpf_cookie = e->bpf_cookie; in add_ref()
216 jsonw_lluint_field(json_writer, "bpf_cookie", refs->bpf_cookie); in emit_obj_refs_json()
248 printf("\n\tbpf_cookie %llu", (unsigned long long) refs->bpf_cookie); in emit_obj_refs_plain()
H A Dmain.h109 __u64 bpf_cookie; member
/linux/tools/lib/bpf/
H A Dlibbpf.h475 __u64 bpf_cookie; member
510 __u64 bpf_cookie; member
609 __u64 bpf_cookie; member
659 __u64 bpf_cookie; member
751 __u64 bpf_cookie; member
753 #define bpf_tracepoint_opts__last_field bpf_cookie
H A Dbpf.h401 __u64 bpf_cookie; member
H A Dbpf.c764 attr.link_create.perf_event.bpf_cookie = OPTS_GET(opts, perf_event.bpf_cookie, 0); in bpf_link_create()
H A Dlibbpf.c10736 .perf_event.bpf_cookie = OPTS_GET(opts, bpf_cookie, 0)); in bpf_program__attach_perf_event_opts()
10748 if (OPTS_GET(opts, bpf_cookie, 0)) { in bpf_program__attach_perf_event_opts()
11123 pe_opts.bpf_cookie = OPTS_GET(opts, bpf_cookie, 0); in bpf_program__attach_kprobe_opts()
11233 kprobe_opts.bpf_cookie = OPTS_GET(opts, bpf_cookie, 0); in bpf_program__attach_ksyscall()
12028 pe_opts.bpf_cookie = OPTS_GET(opts, bpf_cookie, 0); in bpf_program__attach_uprobe_opts()
12363 pe_opts.bpf_cookie = OPTS_GET(opts, bpf_cookie, 0); in bpf_program__attach_tracepoint_opts()
H A Dusdt.c1074 opts.bpf_cookie = man->has_bpf_cookie ? spec_id : 0; in usdt_manager_attach_usdt()
/linux/include/linux/
H A Dtrace_events.h765 int perf_event_attach_bpf_prog(struct perf_event *event, struct bpf_prog *prog, u64 bpf_cookie);
788 perf_event_attach_bpf_prog(struct perf_event *event, struct bpf_prog *prog, u64 bpf_cookie) in perf_event_attach_bpf_prog() argument
913 int perf_event_set_bpf_prog(struct perf_event *event, struct bpf_prog *prog, u64 bpf_cookie);
H A Dbpf.h1991 u64 bpf_cookie; member
2033 u64 bpf_cookie,
2046 u64 bpf_cookie; member
2052 u64 bpf_cookie; member
2102 run_ctx.bpf_cookie = item->bpf_cookie; in bpf_prog_run_array()
2148 run_ctx.bpf_cookie = item->bpf_cookie; in bpf_prog_run_array_uprobe()
H A Dperf_event.h813 u64 bpf_cookie; member
/linux/kernel/trace/
H A Dbpf_trace.c1152 return run_ctx->bpf_cookie; in BPF_CALL_1()
1164 return ctx->event->bpf_cookie; in BPF_CALL_1()
1179 return run_ctx->bpf_cookie; in BPF_CALL_1()
2249 u64 bpf_cookie) in perf_event_attach_bpf_prog() argument
2276 ret = bpf_prog_array_copy(old_array, NULL, prog, bpf_cookie, &new_array); in perf_event_attach_bpf_prog()
2282 event->bpf_cookie = bpf_cookie; in perf_event_attach_bpf_prog()
2399 run_ctx.bpf_cookie = link->cookie; in __bpf_trace_run()
/linux/kernel/bpf/
H A Dbpf_lsm.c186 return run_ctx->bpf_cookie; in BPF_CALL_1()
H A Dcore.c2634 u64 bpf_cookie, in bpf_prog_array_copy() argument
2688 new->bpf_cookie = existing->bpf_cookie; in bpf_prog_array_copy()
2694 new->bpf_cookie = bpf_cookie; in bpf_prog_array_copy()
H A Dsyscall.c3321 u64 bpf_cookie) in bpf_tracing_prog_attach() argument
3391 link->link.cookie = bpf_cookie; in bpf_tracing_prog_attach()
3671 info->perf_event.kprobe.cookie = event->bpf_cookie; in bpf_perf_link_fill_kprobe()
3697 info->perf_event.uprobe.cookie = event->bpf_cookie; in bpf_perf_link_fill_uprobe()
3725 info->perf_event.tracepoint.cookie = event->bpf_cookie; in bpf_perf_link_fill_tracepoint()
3734 info->perf_event.event.cookie = event->bpf_cookie; in bpf_perf_link_fill_perf_event()
3798 err = perf_event_set_bpf_prog(event, prog, attr->link_create.perf_event.bpf_cookie); in bpf_perf_link_attach()
5860 run_ctx.bpf_cookie = 0; in kern_sys_bpf()
/linux/kernel/events/
H A Dcore.c9601 u64 bpf_cookie) in perf_event_set_bpf_handler() argument
9631 event->bpf_cookie = bpf_cookie; in perf_event_set_bpf_handler()
9655 u64 bpf_cookie) in perf_event_set_bpf_handler() argument
10566 u64 bpf_cookie) in perf_event_set_bpf_prog() argument
10571 return perf_event_set_bpf_handler(event, prog, bpf_cookie); in perf_event_set_bpf_prog()
10601 return perf_event_attach_bpf_prog(event, prog, bpf_cookie); in perf_event_set_bpf_prog()
10624 u64 bpf_cookie) in perf_event_set_bpf_prog() argument
/linux/include/uapi/linux/
H A Dbpf.h1729 __u64 bpf_cookie; member
/linux/tools/include/uapi/linux/
H A Dbpf.h1729 __u64 bpf_cookie; member
/linux/arch/s390/net/
H A Dbpf_jit_comp.c2252 offsetof(struct bpf_tramp_run_ctx, bpf_cookie); in invoke_bpf_prog()
/linux/arch/riscv/net/
H A Dbpf_jit_comp64.c717 int cookie_off = offsetof(struct bpf_tramp_run_ctx, bpf_cookie); in invoke_bpf_prog()
/linux/arch/arm64/net/
H A Dbpf_jit_comp.c1914 int cookie_off = offsetof(struct bpf_tramp_run_ctx, bpf_cookie); in invoke_bpf_prog()

12