Home
last modified time | relevance | path

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

12

/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dcgrp_local_storage.c155 static void test_cgroup_iter_sleepable(int cgroup_fd, __u64 cgroup_id) in test_cgroup_iter_sleepable() argument
189 ASSERT_EQ(skel->bss->cgroup_id, cgroup_id, "cgroup_id"); in test_cgroup_iter_sleepable()
196 static void test_yes_rcu_lock(__u64 cgroup_id) in test_yes_rcu_lock() argument
218 ASSERT_EQ(skel->bss->cgroup_id, cgroup_id, "cgroup_id"); in test_yes_rcu_lock()
241 __u64 cgroup_id; in test_cgrp_local_storage() local
248 cgroup_id = get_cgroup_id("/cgrp_local_storage"); in test_cgrp_local_storage()
258 test_cgroup_iter_sleepable(cgroup_fd, cgroup_id); in test_cgrp_local_storage()
260 test_yes_rcu_lock(cgroup_id); in test_cgrp_local_storage()
H A Drcu_read_lock.c13 static unsigned long long cgroup_id; variable
43 ASSERT_EQ(skel->bss->cgroup_id, cgroup_id, "cgroup_id"); in test_success()
137 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.c120 linfo.cgroup.cgroup_id = (__u64)cg_id[PARENT]; in test_invalid_cgroup_spec()
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dcgrp_ls_sleepable.c19 __u64 cgroup_id; variable
36 cgroup_id = cgrp->kn->id; in cgroup_iter()
56 cgroup_id = cgrp->kn->id; in no_rcu_lock()
76 cgroup_id = cgrp->kn->id; in yes_rcu_lock()
H A Dcgroup_iter.c12 static inline u64 cgroup_id(struct cgroup *cgrp) in cgroup_id() function
33 BPF_SEQ_PRINTF(seq, "%8llu\n", cgroup_id(cgrp)); in cgroup_id_printer()
35 if (terminal_cgroup == cgroup_id(cgrp)) in cgroup_id_printer()
H A Dcgroup_hierarchical_stats.c43 static uint64_t cgroup_id(struct cgroup *cgrp) in cgroup_id() function
68 __u64 cg_id = cgroup_id(dst_cgrp); in BPF_PROG()
87 __u64 cg_id = cgroup_id(cgrp); in BPF_PROG()
88 __u64 parent_cg_id = parent ? cgroup_id(parent) : 0; in BPF_PROG()
137 __u64 cg_id = cgrp ? cgroup_id(cgrp) : 0; in BPF_PROG()
H A Drcu_read_lock.c20 __u64 flags, task_storage_val, cgroup_id; variable
44 cgroup_id = cgroups->dfl_cgrp->kn->id; in get_cgroup_id()
/openbmc/linux/include/trace/events/
H A Dcgroup.h69 __entry->id = cgroup_id(cgrp);
138 __entry->dst_id = cgroup_id(dst_cgrp);
182 __entry->id = cgroup_id(cgrp);
/openbmc/linux/kernel/bpf/
H A Dcgroup_iter.c199 u64 id = linfo->cgroup.cgroup_id; in bpf_iter_attach_cgroup()
268 info->iter.cgroup.cgroup_id = cgroup_id(aux->cgroup.start); in bpf_iter_cgroup_fill_link_info()
H A Dcgroup.c216 key.cgroup_inode_id = cgroup_id(cgrp); in bpf_cgroup_storages_alloc()
1238 cg_id = cgroup_id(cg_link->cgroup); in bpf_cgroup_link_show_fdinfo()
1257 cg_id = cgroup_id(cg_link->cgroup); in bpf_cgroup_link_fill_link_info()
1260 info->cgroup.cgroup_id = cg_id; in bpf_cgroup_link_fill_link_info()
/openbmc/linux/tools/build/feature/
H A Dtest-file-handle.c11 uint64_t cgroup_id; in main() member
/openbmc/linux/tools/cgroup/
H A Dmemcg_slabinfo.py169 cgroup_id = stat(args.cgroup).st_ino
171 memcg = MEMCGS[cgroup_id]
/openbmc/linux/tools/bpf/bpftool/Documentation/
H A Dbpftool-link.rst86 cgroup_id 614 attach_type egress
96 "cgroup_id": 614,
/openbmc/linux/tools/perf/util/bpf_skel/
H A Doff_cpu.bpf.c32 __u64 cgroup_id; member
218 .cgroup_id = needs_cgroup ? get_cgroup_id(next) : 0, in off_cpu_stat()
/openbmc/linux/net/ipv4/
H A Dinet_diag.c47 u64 cgroup_id; member
176 cgroup_id(sock_cgroup_ptr(&sk->sk_cgrp_data)), in inet_diag_msg_attrs_fill()
749 u64 cgroup_id; in inet_diag_bc_run() local
751 cgroup_id = get_unaligned((const u64 *)(op + 1)); in inet_diag_bc_run()
752 if (cgroup_id != entry->cgroup_id) in inet_diag_bc_run()
810 entry.cgroup_id = sk_fullsock(sk) ? in inet_diag_bc_sk()
811 cgroup_id(sock_cgroup_ptr(&sk->sk_cgrp_data)) : 0; in inet_diag_bc_sk()
/openbmc/linux/tools/perf/util/
H A Dcgroup.c57 uint64_t cgroup_id; in read_cgroup_id() member
66 handle.fh.handle_bytes = sizeof(handle.cgroup_id); in read_cgroup_id()
70 cgrp->id = handle.cgroup_id; in read_cgroup_id()
H A Dbpf_off_cpu.c31 u64 cgroup_id; member
377 data.array[n++] = key.cgroup_id; in off_cpu_write()
H A Dsort.h102 struct namespace_id cgroup_id; member
/openbmc/linux/tools/bpf/bpftool/
H A Dlink.c217 jsonw_lluint_field(wtr, "cgroup_id", info->iter.cgroup.cgroup_id); in show_iter_json()
434 info->cgroup.cgroup_id); in show_link_close_json()
563 printf("cgroup_id %llu ", info->iter.cgroup.cgroup_id); in show_iter_plain()
770 printf("\n\tcgroup_id %zu ", (size_t)info->cgroup.cgroup_id); in show_link_close_plain()
/openbmc/linux/include/linux/
H A Dcgroup.h325 static inline u64 cgroup_id(const struct cgroup *cgrp) in cgroup_id() function
642 static inline u64 cgroup_id(const struct cgroup *cgrp) { return 1; } in cgroup_id() function
/openbmc/linux/net/netfilter/
H A Dnft_socket.c53 cgid = cgroup_id(cgrp); in nft_sock_get_eval_cgroupv2()
/openbmc/linux/include/uapi/linux/
H A Dbpf.h129 __u64 cgroup_id; member
6506 __u64 cgroup_id; member
6524 __u64 cgroup_id; member
/openbmc/linux/tools/include/uapi/linux/
H A Dbpf.h129 __u64 cgroup_id; member
6506 __u64 cgroup_id; member
6524 __u64 cgroup_id; member

12