Home
last modified time | relevance | path

Searched refs:cgroup_id (Results 1 – 25 of 42) sorted by relevance

12

/linux/tools/testing/selftests/bpf/prog_tests/
H A Dcgrp_local_storage.c174 static void test_cgroup_iter_sleepable(int cgroup_fd, __u64 cgroup_id) in test_cgroup_iter_sleepable() argument
219 ASSERT_EQ(skel->bss->cgroup_id, cgroup_id, "cgroup_id"); in test_yes_rcu_lock() argument
230 static void test_yes_rcu_lock(__u64 cgroup_id) in test_yes_rcu_lock()
253 ASSERT_EQ(skel->bss->cgroup_id, cgroup_id, "cgroup_id"); in test_no_rcu_lock()
296 __u64 cgroup_id; in cgrp2_local_storage()
305 cgroup_id in cgrp2_local_storage()
285 __u64 cgroup_id; cgrp2_local_storage() local
[all...]
H A Drcu_read_lock.c13 static unsigned long long cgroup_id; variable
50 ASSERT_EQ(skel->bss->cgroup_id, cgroup_id, "cgroup_id"); in test_success()
150 cgroup_id = get_cgroup_id("/rcu_read_lock"); in test_rcu_read_lock()
H A Dcgroup_link.c220 CHECK(info.cgroup.cgroup_id == 0, "cgroup_id", "unexpected %llu\n", info.cgroup.cgroup_id); in serial_test_cgroup_link()
229 CHECK(info.cgroup.cgroup_id != 0, "cgroup_id", "unexpected %llu\n", info.cgroup.cgroup_id); in serial_test_cgroup_link()
H A Dcgroup_hierarchical_stats.c193 get_attach_counter(unsigned long long cgroup_id, const char *file_name) in get_attach_counter() argument
208 ASSERT_EQ(id, cgroup_id, "cgroup_id"); in get_attach_counter()
H A Dcgroup_iter.c112 /* Specifying both cgroup_fd and cgroup_id is invalid. */
121 linfo.cgroup.cgroup_id = (__u64)cg_id[PARENT]; in test_invalid_cgroup_spec()
/linux/tools/testing/selftests/bpf/progs/
H A Dcgroup_hierarchical_stats.c44 static uint64_t cgroup_id(struct cgroup *cgrp) in cgroup_id()
69 __u64 cg_id = cgroup_id(dst_cgrp); in BPF_PROG()
88 __u64 cg_id = cgroup_id(cgrp); in BPF_PROG()
89 __u64 parent_cg_id = parent ? cgroup_id(parent) : 0; in BPF_PROG()
138 __u64 cg_id = cgrp ? cgroup_id(cgrp) : 0; in BPF_PROG()
43 static uint64_t cgroup_id(struct cgroup *cgrp) cgroup_id() function
H A Diters_css_task.c50 static inline u64 cgroup_id(struct cgroup *cgrp) in cgroup_id() function
73 BPF_SEQ_PRINTF(seq, "%8llu\n", cgroup_id(cgrp)); in cgroup_id_printer()
H A Drcu_read_lock.c31 __u64 flags, task_storage_val, cgroup_id; variable
55 cgroup_id = cgroups->dfl_cgrp->kn->id; in get_cgroup_id()
/linux/tools/perf/util/
H A Dbpf-filter.y94 unsigned long cgroup_id = 0;
103 cgroup_id = cgrp->id;
105 $$ = perf_bpf_filter_expr__new($1.term, $1.part, $2, cgroup_id);
H A Dbpf_off_cpu.c36 u64 cgroup_id;
405 off_cpu_raw[i++] = key.cgroup_id; in off_cpu_write()
414 data.array[n++] = key.cgroup_id; in off_cpu_write()
34 u64 cgroup_id; global() member
H A Dcgroup.c56 uint64_t cgroup_id; in __read_cgroup_id() member
60 handle.fh.handle_bytes = sizeof(handle.cgroup_id); in __read_cgroup_id()
64 return handle.cgroup_id; in __read_cgroup_id()
/linux/kernel/sched/ext/
H A Dsub.c95 static struct scx_sched *scx_find_sub_sched(u64 cgroup_id) in scx_find_sub_sched() argument
97 return rhashtable_lookup(&scx_sched_hash, &cgroup_id, in scx_find_sub_sched()
2141 "cgroup %llu going offline", cgroup_id(cgrp)); in scx_cgroup_lifetime_notify()
2225 __bpf_kfunc bool scx_bpf_sub_dispatch(u64 cgroup_id, const struct bpf_prog_aux *aux) in scx_bpf_sub_dispatch() argument
2235 child = scx_find_sub_sched(cgroup_id); in scx_bpf_sub_dispatch()
2242 cgroup_id); in scx_bpf_sub_dispatch()
2259 static s32 sub_cap_preamble(u64 cgroup_id, u64 caps, const struct bpf_prog_aux *aux, in sub_cap_preamble() argument
2273 child = scx_find_sub_sched(cgroup_id); in sub_cap_preamble()
2279 parent->cgrp_path, cgroup_id); in sub_cap_preamble()
2311 __bpf_kfunc s32 scx_bpf_sub_grant(u64 cgroup_id, u64 caps, in scx_bpf_sub_grant() argument
[all …]
H A Dsub.h27 bool scx_bpf_sub_dispatch(u64 cgroup_id, const struct bpf_prog_aux *aux);
/linux/tools/perf/util/bpf_skel/
H A Dsyscall_summary.bpf.c66 static void update_stats(int cpu_or_tid, u64 cgroup_id, int nr, s64 duration, in update_stats() argument
71 .cgroup = cgroup_id, in update_stats()
H A Doff_cpu.bpf.c41 __u64 cgroup_id; member
251 data->array[n++] = key->cgroup_id; in off_cpu_dump()
299 .cgroup_id = needs_cgroup ? get_cgroup_id(next) : 0, in off_cpu_stat()
/linux/tools/build/feature/
H A Dtest-file-handle.c11 uint64_t cgroup_id; in main() member
/linux/tools/bpf/bpftool/Documentation/
H A Dbpftool-link.rst81 cgroup_id 614 attach_type egress
91 "cgroup_id": 614,
/linux/tools/cgroup/
H A Dmemcg_slabinfo.py168 cgroup_id = stat(args.cgroup).st_ino
170 memcg = MEMCGS[cgroup_id]
/linux/tools/sched_ext/include/scx/
H A Dcompat.bpf.h120 bool scx_bpf_sub_dispatch___compat(u64 cgroup_id) __ksym __weak;
122 static inline bool scx_bpf_sub_dispatch(u64 cgroup_id) in scx_bpf_sub_dispatch() argument
125 return scx_bpf_sub_dispatch___compat(cgroup_id); in scx_bpf_sub_dispatch()
H A Dcommon.bpf.h121 s32 scx_bpf_sub_grant(u64 cgroup_id, u64 caps, const struct scx_cmask __arena *cmask__arena, struct…
122 void scx_bpf_sub_revoke(u64 cgroup_id, u64 caps, const struct scx_cmask __arena *cmask__arena) __ks…
123 s32 scx_bpf_sub_caps(u64 cgroup_id, u64 caps, struct scx_cmask __arena *out__arena) __ksym __weak;
124 s32 scx_bpf_sub_kill_bstr(u64 cgroup_id, char *fmt, unsigned long long *data, u32 data__sz) __ksym …
/linux/tools/sched_ext/
H A Dscx_qmap.bpf.c715 u64 cgid = qa.sub_sched_ctxs[owner].cgroup_id; in BPF_STRUCT_OPS()
1083 if (qa.sub_sched_ctxs[i].cgroup_id != cgid) in BPF_STRUCT_OPS()
1421 cgid_snap[i] = qa.sub_sched_ctxs[i].cgroup_id; in compute_partition()
1523 if (qa.sub_sched_ctxs[i].cgroup_id == cgid) in account_alloc()
1563 if (qa.sub_sched_ctxs[i].cgroup_id) in apply_partition()
1564 scx_bpf_sub_kill(qa.sub_sched_ctxs[i].cgroup_id, in apply_partition()
1608 u64 cgid = ssc->cgroup_id; in apply_partition()
1961 if (qa.sub_sched_ctxs[i].cgroup_id) in BPF_STRUCT_OPS()
1964 qa.sub_sched_ctxs[i].cgroup_id = args->ops->sub_cgroup_id; in BPF_STRUCT_OPS()
1980 if (qa.sub_sched_ctxs[i].cgroup_id != args->ops->sub_cgroup_id) in BPF_STRUCT_OPS()
[all …]
H A Dscx_qmap.c183 if (qa->sub_sched_ctxs[i].cgroup_id == cgid) { in print_hier()
217 if (!sc->cgroup_id) in print_hier()
223 (unsigned long long)sc->cgroup_id, sc->weight, in print_hier()
H A Dscx_qmap.h94 u64 cgroup_id; member
/linux/tools/bpf/bpftool/
H A Dlink.c217 jsonw_lluint_field(wtr, "cgroup_id", info->iter.cgroup.cgroup_id); in show_iter_json()
618 info->cgroup.cgroup_id); in show_link_close_json()
761 printf("cgroup_id %llu ", info->iter.cgroup.cgroup_id); in show_iter_plain()
1062 printf("\n\tcgroup_id %zu ", (size_t)info->cgroup.cgroup_id); in show_link_close_plain()
/linux/fs/
H A Dpidfs.c459 kinfo.cgroupid = cgroup_id(cgrp); in pidfd_info()
785 attr->cgroupid = cgroup_id(cgrp); in pidfs_exit()

12