Home
last modified time | relevance | path

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

/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dprofiler.inc.h190 parent = BPF_CORE_READ(parent, real_parent); in populate_ancestors()
193 ppid = BPF_CORE_READ(parent, tgid); in populate_ancestors()
198 BPF_CORE_READ(parent, self_exec_id); in populate_ancestors()
200 BPF_CORE_READ(parent, start_time); in populate_ancestors()
219 BPF_CORE_READ(cgroup_node, name)); in read_full_cgroup_path()
228 cgroup_node = BPF_CORE_READ(cgroup_node, parent); in read_full_cgroup_path()
239 return BPF_CORE_READ(node52, id.ino); in get_inode_from_kernfs()
242 return (u64)BPF_CORE_READ(node, id); in get_inode_from_kernfs()
256 BPF_CORE_READ(task, nsproxy, cgroup_ns, root_cset, dfl_cgrp, kn); in populate_cgroup_info()
257 struct kernfs_node* proc_kernfs = BPF_CORE_READ(task, cgroups, dfl_cgrp, kn); in populate_cgroup_info()
[all …]
H A 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()
H A 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()
H A 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()
H A 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()
H A 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()
H A Dtest_core_retro.c29 int tgid = BPF_CORE_READ(task, tgid); in handle_sys_enter()
H A Dtest_core_read_macros.c45 k_core_out = (long)BPF_CORE_READ(&k_core_in, next, next, func); in handler()
/openbmc/linux/tools/bpf/bpftool/skeleton/
H A Dpid_iter.bpf.c42 return BPF_CORE_READ((struct bpf_prog *)ent, aux, id); in get_obj_id()
44 return BPF_CORE_READ((struct bpf_map *)ent, id); in get_obj_id()
46 return BPF_CORE_READ((struct btf *)ent, id); in get_obj_id()
48 return BPF_CORE_READ((struct bpf_link *)ent, id); in get_obj_id()
61 event = BPF_CORE_READ(perf_link, perf_file, private_data); in get_bpf_cookie()
62 return BPF_CORE_READ(event, bpf_cookie); in get_bpf_cookie()
105 if (BPF_CORE_READ(link, type) == bpf_core_enum_value(enum bpf_link_type___local, in iter()
/openbmc/linux/samples/bpf/
H A 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()
H A Dtracex1.bpf.c32 dev = BPF_CORE_READ(skb, dev); in bpf_prog1()
33 len = BPF_CORE_READ(skb, len); in bpf_prog1()
H A Doffwaketime.bpf.c66 u32 pid = BPF_CORE_READ(p, pid); in waker()
118 u32 pid = BPF_CORE_READ(p, pid);
H A Dtracex6.bpf.c63 type = BPF_CORE_READ(map, map_type); in BPF_KPROBE()
/openbmc/linux/tools/perf/util/bpf_skel/
H A Doff_cpu.bpf.c111 return BPF_CORE_READ(t_new, __state); in get_task_state()
116 return BPF_CORE_READ(t_old, state); in get_task_state()
125 return BPF_CORE_READ(t, cgroups, dfl_cgrp, kn, id); in get_cgroup_id()
136 cgrp = BPF_CORE_READ(t, cgroups, subsys[perf_subsys_id], cgroup); in get_cgroup_id()
137 return BPF_CORE_READ(cgrp, kn, id); in get_cgroup_id()
249 pid = BPF_CORE_READ(task, tgid); in on_newtask()
H A 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()
H A Dlock_contention.bpf.c206 owner = BPF_CORE_READ(mutex, owner.counter); in get_lock_owner()
217 owner = (unsigned long)BPF_CORE_READ(rwsem, owner); in get_lock_owner()
220 owner = BPF_CORE_READ(rwsem, owner.counter); in get_lock_owner()
225 owner = BPF_CORE_READ(rwsem, owner.counter); in get_lock_owner()
316 pelem->flags = BPF_CORE_READ(task, pid); in contention_begin()
/openbmc/linux/tools/lib/bpf/
H A 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)
499 #define PT_REGS_PARM1_CORE(x) BPF_CORE_READ(__PT_REGS_CAST(x), __PT_PARM1_REG)
500 #define PT_REGS_PARM2_CORE(x) BPF_CORE_READ(__PT_REGS_CAST(x), __PT_PARM2_REG)
501 #define PT_REGS_PARM3_CORE(x) BPF_CORE_READ(__PT_REGS_CAST(x), __PT_PARM3_REG)
502 #define PT_REGS_PARM4_CORE(x) BPF_CORE_READ(__PT_REGS_CAST(x), __PT_PARM4_REG)
503 #define PT_REGS_PARM5_CORE(x) BPF_CORE_READ(__PT_REGS_CAST(x), __PT_PARM5_REG)
504 #define PT_REGS_PARM6_CORE(x) BPF_CORE_READ(__PT_REGS_CAST(x), __PT_PARM6_REG)
505 #define PT_REGS_PARM7_CORE(x) BPF_CORE_READ(__PT_REGS_CAST(x), __PT_PARM7_REG)
506 #define PT_REGS_PARM8_CORE(x) BPF_CORE_READ(__PT_REGS_CAST(x), __PT_PARM8_REG)
[all …]
H A Dbpf_core_read.h443 #define BPF_CORE_READ(src, a, ...) ({ \ macro
/openbmc/linux/kernel/bpf/preload/iterators/
H A Diterators.bpf.c70 name_off = BPF_CORE_READ(t, name_off); in get_name()