Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/prog_tests/
H A Dbpf_cookie.c30 opts.bpf_cookie = 0x1; in kprobe_subtest()
37 opts.bpf_cookie = 0x2; in kprobe_subtest()
45 opts.bpf_cookie = 0x10; in kprobe_subtest()
52 opts.bpf_cookie = 0x20; in kprobe_subtest()
348 opts.bpf_cookie = 0x100; in uprobe_subtest()
355 opts.bpf_cookie = 0x200; in uprobe_subtest()
363 opts.bpf_cookie = 0x1000; in uprobe_subtest()
370 opts.bpf_cookie = 0x2000; in uprobe_subtest()
396 opts.bpf_cookie = 0x10000; in tp_subtest()
403 opts.bpf_cookie in tp_subtest()
[all...]
H A Dfill_link_info.c178 .bpf_cookie = PERF_EVENT_COOKIE, in test_kprobe_fill_link_info()
208 .bpf_cookie = PERF_EVENT_COOKIE, in test_tp_fill_link_info()
226 .bpf_cookie = PERF_EVENT_COOKIE, in test_event_fill_link_info()
261 .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 Dbpf.h2534 u64 bpf_cookie;
2571 u64 bpf_cookie, in bpf_reset_run_ctx()
2584 u64 bpf_cookie; in bpf_prog_run_array()
2590 u64 bpf_cookie; in bpf_prog_run_array()
2640 run_ctx.bpf_cookie = item->bpf_cookie; in bpf_prog_run_array_uprobe()
2685 run_ctx.bpf_cookie = item->bpf_cookie; in bpf_enable_instrumentation()
3295 run_ctx.bpf_cookie = item->bpf_cookie;
2497 u64 bpf_cookie; global() member
2547 u64 bpf_cookie; global() member
2553 u64 bpf_cookie; global() member
[all...]
/linux/arch/powerpc/net/
H A Dbpf_jit_comp.c621 bpf_cookie))); in invoke_bpf_prog()
626 run_ctx_off + offsetof(struct bpf_tramp_run_ctx, bpf_cookie))); in invoke_bpf_prog()
628 run_ctx_off + offsetof(struct bpf_tramp_run_ctx, bpf_cookie) + 4)); in invoke_bpf_prog()
/linux/kernel/trace/
H A Dbpf_trace.c1163 return run_ctx->bpf_cookie; in BPF_CALL_1()
1175 return ctx->event->bpf_cookie; in BPF_CALL_1()
1190 return run_ctx->bpf_cookie; in BPF_CALL_1()
1953 u64 bpf_cookie) in perf_event_attach_bpf_prog() argument
1980 ret = bpf_prog_array_copy(old_array, NULL, prog, bpf_cookie, &new_array); in perf_event_attach_bpf_prog()
1986 event->bpf_cookie = bpf_cookie; in perf_event_attach_bpf_prog()
2124 run_ctx.bpf_cookie = link->cookie; in __bpf_trace_run()
/linux/kernel/bpf/
H A Dsyscall.c3654 u64 bpf_cookie, in bpf_tracing_prog_attach()
3724 &bpf_tracing_link_lops, prog, attach_type, bpf_cookie); in bpf_tracing_prog_attach()
3728 link->fexit.cookie = bpf_cookie; in bpf_tracing_prog_attach()
4037 info->perf_event.kprobe.cookie = event->bpf_cookie; in bpf_perf_link_fdinfo_kprobe()
4064 event->bpf_cookie); in bpf_perf_link_fill_uprobe()
4090 info->perf_event.uprobe.cookie = event->bpf_cookie; in bpf_perf_link_fdinfo_uprobe()
4117 event->bpf_cookie);
4150 info->perf_event.tracepoint.cookie = event->bpf_cookie; in bpf_perf_link_fill_link_info()
4159 info->perf_event.event.cookie = event->bpf_cookie; in bpf_perf_link_fill_link_info()
4196 "event", event->bpf_cookie); in bpf_tracepoint_link_show_fdinfo()
3637 bpf_tracing_prog_attach(struct bpf_prog * prog,int tgt_prog_fd,u32 btf_id,u64 bpf_cookie,enum bpf_attach_type attach_type) bpf_tracing_prog_attach() argument
[all...]
H A Dbpf_lsm.c217 return run_ctx->bpf_cookie; in BPF_CALL_1()
H A Dcore.c2943 u64 bpf_cookie, in bpf_prog_array_copy()
2997 new->bpf_cookie = existing->bpf_cookie; in bpf_prog_array_copy()
3003 new->bpf_cookie = bpf_cookie; in bpf_prog_array_copy()
2937 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
/linux/kernel/events/
H A Dcore.c6613 u64 bpf_cookie); in _perf_ioctl()
10677 u64 bpf_cookie) in sample_is_allowed()
10707 event->bpf_cookie = bpf_cookie; in bpf_overflow_handler()
10731 u64 bpf_cookie) in perf_event_set_bpf_handler()
11684 u64 bpf_cookie) in perf_uprobe_event_init()
11692 return perf_event_set_bpf_handler(event, prog, bpf_cookie); in perf_tp_register()
11735 return perf_event_attach_bpf_prog(event, prog, bpf_cookie); in __perf_event_set_bpf_prog()
11740 u64 bpf_cookie) in __perf_event_set_bpf_prog()
11746 ret = __perf_event_set_bpf_prog(event, prog, bpf_cookie); in __perf_event_set_bpf_prog()
10717 perf_event_set_bpf_handler(struct perf_event * event,struct bpf_prog * prog,u64 bpf_cookie) perf_event_set_bpf_handler() argument
10771 perf_event_set_bpf_handler(struct perf_event * event,struct bpf_prog * prog,u64 bpf_cookie) perf_event_set_bpf_handler() argument
11724 __perf_event_set_bpf_prog(struct perf_event * event,struct bpf_prog * prog,u64 bpf_cookie) __perf_event_set_bpf_prog() argument
11780 perf_event_set_bpf_prog(struct perf_event * event,struct bpf_prog * prog,u64 bpf_cookie) perf_event_set_bpf_prog() argument
11816 __perf_event_set_bpf_prog(struct perf_event * event,struct bpf_prog * prog,u64 bpf_cookie) __perf_event_set_bpf_prog() argument
11823 perf_event_set_bpf_prog(struct perf_event * event,struct bpf_prog * prog,u64 bpf_cookie) perf_event_set_bpf_prog() argument
[all...]
/linux/tools/lib/bpf/
H A Dlibbpf.c11609 .perf_event.bpf_cookie = OPTS_GET(opts, bpf_cookie, 0)); in bpf_program__attach_perf_event_opts()
11620 if (OPTS_GET(opts, bpf_cookie, 0)) { in bpf_program__attach_perf_event_opts()
11990 pe_opts.bpf_cookie = OPTS_GET(opts, bpf_cookie, 0); in bpf_program__attach_kprobe_opts()
12102 kprobe_opts.bpf_cookie = OPTS_GET(opts, bpf_cookie, 0); in bpf_program__attach_ksyscall()
13224 pe_opts.bpf_cookie = OPTS_GET(opts, bpf_cookie, 0); in bpf_program__attach_uprobe_opts()
13558 pe_opts.bpf_cookie = OPTS_GET(opts, bpf_cookie, 0); in bpf_program__attach_tracepoint_opts()
H A Dusdt.c1135 opts.bpf_cookie = man->has_bpf_cookie ? spec_id : 0; in usdt_manager_attach_usdt()
/linux/tools/include/uapi/linux/
H A Dbpf.h1832 __u64 bpf_cookie; member
/linux/include/uapi/linux/
H A Dbpf.h1832 __u64 bpf_cookie; member
/linux/arch/riscv/net/
H A Dbpf_jit_comp64.c931 int cookie_off = offsetof(struct bpf_tramp_run_ctx, bpf_cookie); in invoke_bpf_prog()
/linux/arch/loongarch/net/
H A Dbpf_jit.c1724 int cookie_off = offsetof(struct bpf_tramp_run_ctx, bpf_cookie); in invoke_bpf_prog()
/linux/arch/arm64/net/
H A Dbpf_jit_comp.c2430 int cookie_off = offsetof(struct bpf_tramp_run_ctx, bpf_cookie); in invoke_bpf_prog()
/linux/arch/x86/net/
H A Dbpf_jit_comp.c3227 int ctx_cookie_off = offsetof(struct bpf_tramp_run_ctx, bpf_cookie); in invoke_bpf_prog()