| /linux-6.15/tools/testing/selftests/bpf/prog_tests/ |
| H A D | bpf_cookie.c | 29 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 D | fill_link_info.c | 159 .bpf_cookie = PERF_EVENT_COOKIE, in test_kprobe_fill_link_info() 189 .bpf_cookie = PERF_EVENT_COOKIE, in test_tp_fill_link_info() 207 .bpf_cookie = PERF_EVENT_COOKIE, in test_event_fill_link_info() 242 .bpf_cookie = PERF_EVENT_COOKIE, in test_uprobe_fill_link_info()
|
| /linux-6.15/tools/bpf/bpftool/skeleton/ |
| H A D | pid_iter.bpf.c | 24 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 D | pid_iter.h | 9 __u64 bpf_cookie; member
|
| /linux-6.15/tools/bpf/bpftool/ |
| H A D | pids.c | 84 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()
|
| H A D | main.h | 109 __u64 bpf_cookie; member
|
| /linux-6.15/tools/lib/bpf/ |
| H A D | libbpf.h | 499 __u64 bpf_cookie; member 534 __u64 bpf_cookie; member 637 __u64 bpf_cookie; member 687 __u64 bpf_cookie; member 779 __u64 bpf_cookie; member 781 #define bpf_tracepoint_opts__last_field bpf_cookie
|
| H A D | bpf.h | 404 __u64 bpf_cookie; member
|
| H A D | bpf.c | 765 attr.link_create.perf_event.bpf_cookie = OPTS_GET(opts, perf_event.bpf_cookie, 0); in bpf_link_create()
|
| H A D | libbpf.c | 10908 .perf_event.bpf_cookie = OPTS_GET(opts, bpf_cookie, 0)); in bpf_program__attach_perf_event_opts() 10919 if (OPTS_GET(opts, bpf_cookie, 0)) { in bpf_program__attach_perf_event_opts() 11288 pe_opts.bpf_cookie = OPTS_GET(opts, bpf_cookie, 0); in bpf_program__attach_kprobe_opts() 11398 kprobe_opts.bpf_cookie = OPTS_GET(opts, bpf_cookie, 0); in bpf_program__attach_ksyscall() 12237 pe_opts.bpf_cookie = OPTS_GET(opts, bpf_cookie, 0); in bpf_program__attach_uprobe_opts() 12570 pe_opts.bpf_cookie = OPTS_GET(opts, bpf_cookie, 0); in bpf_program__attach_tracepoint_opts()
|
| H A D | usdt.c | 1076 opts.bpf_cookie = man->has_bpf_cookie ? spec_id : 0; in usdt_manager_attach_usdt()
|
| /linux-6.15/include/linux/ |
| H A D | trace_events.h | 767 int perf_event_attach_bpf_prog(struct perf_event *event, struct bpf_prog *prog, u64 bpf_cookie); 790 perf_event_attach_bpf_prog(struct perf_event *event, struct bpf_prog *prog, u64 bpf_cookie) in perf_event_attach_bpf_prog() argument 896 int perf_event_set_bpf_prog(struct perf_event *event, struct bpf_prog *prog, u64 bpf_cookie);
|
| H A D | bpf.h | 2103 u64 bpf_cookie; member 2145 u64 bpf_cookie, 2158 u64 bpf_cookie; member 2164 u64 bpf_cookie; member 2214 run_ctx.bpf_cookie = item->bpf_cookie; in bpf_prog_run_array() 2259 run_ctx.bpf_cookie = item->bpf_cookie; in bpf_prog_run_array_uprobe()
|
| H A D | perf_event.h | 850 u64 bpf_cookie; member
|
| /linux-6.15/kernel/trace/ |
| H A D | bpf_trace.c | 1135 return run_ctx->bpf_cookie; in BPF_CALL_1() 1147 return ctx->event->bpf_cookie; in BPF_CALL_1() 1162 return run_ctx->bpf_cookie; in BPF_CALL_1() 2196 u64 bpf_cookie) in perf_event_attach_bpf_prog() argument 2223 ret = bpf_prog_array_copy(old_array, NULL, prog, bpf_cookie, &new_array); in perf_event_attach_bpf_prog() 2229 event->bpf_cookie = bpf_cookie; in perf_event_attach_bpf_prog() 2359 run_ctx.bpf_cookie = link->cookie; in __bpf_trace_run()
|
| /linux-6.15/arch/powerpc/net/ |
| H A D | bpf_jit_comp.c | 471 bpf_cookie))); in invoke_bpf_prog() 476 run_ctx_off + offsetof(struct bpf_tramp_run_ctx, bpf_cookie))); in invoke_bpf_prog() 478 run_ctx_off + offsetof(struct bpf_tramp_run_ctx, bpf_cookie) + 4)); in invoke_bpf_prog()
|
| /linux-6.15/kernel/bpf/ |
| H A D | bpf_lsm.c | 212 return run_ctx->bpf_cookie; in BPF_CALL_1()
|
| H A D | core.c | 2718 u64 bpf_cookie, in bpf_prog_array_copy() argument 2772 new->bpf_cookie = existing->bpf_cookie; in bpf_prog_array_copy() 2778 new->bpf_cookie = bpf_cookie; in bpf_prog_array_copy()
|
| H A D | syscall.c | 3435 u64 bpf_cookie) in bpf_tracing_prog_attach() argument 3505 link->link.cookie = bpf_cookie; in bpf_tracing_prog_attach() 3793 info->perf_event.kprobe.cookie = event->bpf_cookie; in bpf_perf_link_fill_kprobe() 3820 info->perf_event.uprobe.cookie = event->bpf_cookie; in bpf_perf_link_fill_uprobe() 3854 info->perf_event.tracepoint.cookie = event->bpf_cookie; in bpf_perf_link_fill_tracepoint() 3863 info->perf_event.event.cookie = event->bpf_cookie; in bpf_perf_link_fill_perf_event() 3927 err = perf_event_set_bpf_prog(event, prog, attr->link_create.perf_event.bpf_cookie); in bpf_perf_link_attach() 6006 run_ctx.bpf_cookie = 0; in kern_sys_bpf()
|
| /linux-6.15/kernel/events/ |
| H A D | core.c | 10103 u64 bpf_cookie) in perf_event_set_bpf_handler() argument 10133 event->bpf_cookie = bpf_cookie; in perf_event_set_bpf_handler() 10157 u64 bpf_cookie) in perf_event_set_bpf_handler() argument 11073 u64 bpf_cookie) in perf_event_set_bpf_prog() argument 11078 return perf_event_set_bpf_handler(event, prog, bpf_cookie); in perf_event_set_bpf_prog() 11108 return perf_event_attach_bpf_prog(event, prog, bpf_cookie); in perf_event_set_bpf_prog() 11134 u64 bpf_cookie) in perf_event_set_bpf_prog() argument
|
| /linux-6.15/tools/include/uapi/linux/ |
| H A D | bpf.h | 1750 __u64 bpf_cookie; member
|
| /linux-6.15/include/uapi/linux/ |
| H A D | bpf.h | 1750 __u64 bpf_cookie; member
|
| /linux-6.15/arch/s390/net/ |
| H A D | bpf_jit_comp.c | 2474 offsetof(struct bpf_tramp_run_ctx, bpf_cookie); in invoke_bpf_prog()
|
| /linux-6.15/arch/riscv/net/ |
| H A D | bpf_jit_comp64.c | 743 int cookie_off = offsetof(struct bpf_tramp_run_ctx, bpf_cookie); in invoke_bpf_prog()
|
| /linux-6.15/arch/arm64/net/ |
| H A D | bpf_jit_comp.c | 2123 int cookie_off = offsetof(struct bpf_tramp_run_ctx, bpf_cookie); in invoke_bpf_prog()
|