Home
last modified time | relevance | path

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

/linux-6.12.1/tools/testing/selftests/bpf/progs/
Dprofiler.inc.h189 parent = BPF_CORE_READ(parent, real_parent); in populate_ancestors()
192 ppid = BPF_CORE_READ(parent, tgid); in populate_ancestors()
197 BPF_CORE_READ(parent, self_exec_id); in populate_ancestors()
199 BPF_CORE_READ(parent, start_time); in populate_ancestors()
218 BPF_CORE_READ(cgroup_node, name)); in read_full_cgroup_path()
226 cgroup_node = BPF_CORE_READ(cgroup_node, parent); in read_full_cgroup_path()
237 return BPF_CORE_READ(node52, id.ino); in get_inode_from_kernfs()
240 return (u64)BPF_CORE_READ(node, id); in get_inode_from_kernfs()
254 BPF_CORE_READ(task, nsproxy, cgroup_ns, root_cset, dfl_cgrp, kn); in populate_cgroup_info()
255 struct kernfs_node* proc_kernfs = BPF_CORE_READ(task, cgroups, dfl_cgrp, kn); in populate_cgroup_info()
[all …]
Dtest_core_reloc_kernel.c70 out->valid[1] = BPF_CORE_READ(task, in test_core_kernel()
72 out->valid[2] = BPF_CORE_READ(task, in test_core_kernel()
75 out->valid[3] = BPF_CORE_READ(task, in test_core_kernel()
78 out->valid[4] = BPF_CORE_READ(task, in test_core_kernel()
81 out->valid[5] = BPF_CORE_READ(task, in test_core_kernel()
85 out->valid[6] = BPF_CORE_READ(task, in test_core_kernel()
89 out->valid[7] = BPF_CORE_READ(task, in test_core_kernel()
93 out->valid[8] = BPF_CORE_READ(task, in test_core_kernel()
98 out->valid[9] = BPF_CORE_READ(task, in test_core_kernel()
Dtest_core_reloc_existence.c49 out->a_value = BPF_CORE_READ(in, a); in test_core_existence()
55 out->b_value = BPF_CORE_READ(in, b); in test_core_existence()
61 out->c_value = BPF_CORE_READ(in, c); in test_core_existence()
67 out->arr_value = BPF_CORE_READ(in, arr[0]); in test_core_existence()
73 out->s_value = BPF_CORE_READ(in, s.x); in test_core_existence()
Dtest_subprogs.c57 return BPF_CORE_READ((struct task_struct *)(void *)t, tgid); in get_task_tgid()
73 if (!BPF_CORE_READ(t, pid) || !get_task_tgid((uintptr_t)t)) in prog1()
85 if (!BPF_CORE_READ(t, pid) || !get_task_tgid((uintptr_t)t)) in prog2()
103 if (!BPF_CORE_READ(t, pid) || !get_task_tgid((uintptr_t)t)) in prog3()
119 if (!BPF_CORE_READ(t, pid) || !get_task_tgid((uintptr_t)t)) in prog4()
Dtest_core_reloc_module.c52 if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) in BPF_PROG()
55 out->len = BPF_CORE_READ(read_ctx, len); in BPF_PROG()
56 out->off = BPF_CORE_READ(read_ctx, off); in BPF_PROG()
Dtest_module_attach.c16 raw_tp_read_sz = BPF_CORE_READ(read_ctx, len); in BPF_PROG()
26 raw_tp_bare_write_sz = BPF_CORE_READ(write_ctx, len); in BPF_PROG()
Dtest_core_retro.c29 int tgid = BPF_CORE_READ(task, tgid); in handle_sys_enter()
Dtest_core_read_macros.c45 k_core_out = (long)BPF_CORE_READ(&k_core_in, next, next, func); in handler()
/linux-6.12.1/tools/bpf/bpftool/skeleton/
Dpid_iter.bpf.c43 return BPF_CORE_READ((struct bpf_prog *)ent, aux, id); in get_obj_id()
45 return BPF_CORE_READ((struct bpf_map *)ent, id); in get_obj_id()
47 return BPF_CORE_READ((struct btf *)ent, id); in get_obj_id()
49 return BPF_CORE_READ((struct bpf_link *)ent, id); in get_obj_id()
62 event = BPF_CORE_READ(perf_link, perf_file, private_data); in get_bpf_cookie()
63 return BPF_CORE_READ(event, bpf_cookie); in get_bpf_cookie()
110 if (BPF_CORE_READ(link, type) == bpf_core_enum_value(enum bpf_link_type___local, in iter()
/linux-6.12.1/samples/bpf/
Dtest_overhead_kprobe.bpf.c25 pid = BPF_CORE_READ(tsk, pid); in prog()
29 signal = BPF_CORE_READ(tsk, signal); in prog()
30 oom_score_adj = BPF_CORE_READ(signal, oom_score_adj); in prog()
Dtracex1.bpf.c32 dev = BPF_CORE_READ(skb, dev); in bpf_prog1()
33 len = BPF_CORE_READ(skb, len); in bpf_prog1()
Doffwaketime.bpf.c66 u32 pid = BPF_CORE_READ(p, pid); in waker()
118 u32 pid = BPF_CORE_READ(p, pid);
Dtracex6.bpf.c63 type = BPF_CORE_READ(map, map_type); in BPF_KPROBE()
/linux-6.12.1/tools/lib/bpf/
Dbpf_tracing.h184 BPF_CORE_READ((const struct pt_regs___s390 *)(x), __PT_PARM1_SYSCALL_REG)
246 BPF_CORE_READ((const struct pt_regs___arm64 *)(x), __PT_PARM1_SYSCALL_REG)
377 BPF_CORE_READ((const struct pt_regs___riscv *)(x), __PT_PARM1_SYSCALL_REG)
506 #define PT_REGS_PARM1_CORE(x) BPF_CORE_READ(__PT_REGS_CAST(x), __PT_PARM1_REG)
507 #define PT_REGS_PARM2_CORE(x) BPF_CORE_READ(__PT_REGS_CAST(x), __PT_PARM2_REG)
508 #define PT_REGS_PARM3_CORE(x) BPF_CORE_READ(__PT_REGS_CAST(x), __PT_PARM3_REG)
509 #define PT_REGS_PARM4_CORE(x) BPF_CORE_READ(__PT_REGS_CAST(x), __PT_PARM4_REG)
510 #define PT_REGS_PARM5_CORE(x) BPF_CORE_READ(__PT_REGS_CAST(x), __PT_PARM5_REG)
511 #define PT_REGS_PARM6_CORE(x) BPF_CORE_READ(__PT_REGS_CAST(x), __PT_PARM6_REG)
512 #define PT_REGS_PARM7_CORE(x) BPF_CORE_READ(__PT_REGS_CAST(x), __PT_PARM7_REG)
[all …]
Dbpf_core_read.h519 #define BPF_CORE_READ(src, a, ...) ({ \ macro
/linux-6.12.1/tools/perf/util/bpf_skel/
Doff_cpu.bpf.c112 return BPF_CORE_READ(t_new, __state); in get_task_state()
117 return BPF_CORE_READ(t_old, state); in get_task_state()
126 return BPF_CORE_READ(t, cgroups, dfl_cgrp, kn, id); in get_cgroup_id()
137 cgrp = BPF_CORE_READ(t, cgroups, subsys[perf_subsys_id], cgroup); in get_cgroup_id()
138 return BPF_CORE_READ(cgrp, kn, id); in get_cgroup_id()
250 pid = BPF_CORE_READ(task, tgid); in on_newtask()
Dbperf_cgroup.bpf.c71 return BPF_CORE_READ(cgrp_new, ancestors[level], kn, id); in get_cgroup_v1_ancestor_id()
76 return BPF_CORE_READ(cgrp_old, ancestor_ids[level]); in get_cgroup_v1_ancestor_id()
97 cgrp = BPF_CORE_READ(p, cgroups, subsys[perf_subsys_id], cgroup); in get_cgroup_v1_idx()
98 level = BPF_CORE_READ(cgrp, level); in get_cgroup_v1_idx()
Dlock_contention.bpf.c167 cgrp = BPF_CORE_READ(task, cgroups, subsys[perf_subsys_id], cgroup); in get_current_cgroup_id()
168 return BPF_CORE_READ(cgrp, kn, id); in get_current_cgroup_id()
253 owner = BPF_CORE_READ(mutex, owner.counter); in get_lock_owner()
264 owner = (unsigned long)BPF_CORE_READ(rwsem, owner); in get_lock_owner()
267 owner = BPF_CORE_READ(rwsem, owner.counter); in get_lock_owner()
272 owner = BPF_CORE_READ(rwsem, owner.counter); in get_lock_owner()
389 pelem->flags = BPF_CORE_READ(task, pid); in contention_begin()
Dkwork_top.bpf.c215 .pid = BPF_CORE_READ(task, pid), in on_irq_handler_entry()
251 .pid = BPF_CORE_READ(task, pid), in on_irq_handler_exit()
287 .pid = BPF_CORE_READ(task, pid), in on_softirq_entry()
323 .pid = BPF_CORE_READ(task, pid), in on_softirq_exit()
/linux-6.12.1/kernel/bpf/preload/iterators/
Diterators.bpf.c70 name_off = BPF_CORE_READ(t, name_off); in get_name()