Home
last modified time | relevance | path

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

12

/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/
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()
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()
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()
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()
Dcgroup_iter.c120 linfo.cgroup.cgroup_id = (__u64)cg_id[PARENT]; in test_invalid_cgroup_spec()
/linux-6.6.21/tools/testing/selftests/bpf/progs/
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()
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()
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()
Drcu_read_lock.c20 __u64 flags, task_storage_val, cgroup_id; variable
44 cgroup_id = cgroups->dfl_cgrp->kn->id; in get_cgroup_id()
/linux-6.6.21/include/trace/events/
Dcgroup.h69 __entry->id = cgroup_id(cgrp);
138 __entry->dst_id = cgroup_id(dst_cgrp);
182 __entry->id = cgroup_id(cgrp);
/linux-6.6.21/kernel/bpf/
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()
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()
/linux-6.6.21/tools/build/feature/
Dtest-file-handle.c11 uint64_t cgroup_id; in main() member
/linux-6.6.21/tools/cgroup/
Dmemcg_slabinfo.py169 cgroup_id = stat(args.cgroup).st_ino
171 memcg = MEMCGS[cgroup_id]
/linux-6.6.21/tools/bpf/bpftool/Documentation/
Dbpftool-link.rst86 cgroup_id 614 attach_type egress
96 "cgroup_id": 614,
/linux-6.6.21/tools/perf/util/bpf_skel/
Doff_cpu.bpf.c32 __u64 cgroup_id; member
218 .cgroup_id = needs_cgroup ? get_cgroup_id(next) : 0, in off_cpu_stat()
/linux-6.6.21/net/ipv4/
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()
/linux-6.6.21/tools/perf/util/
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()
Dbpf_off_cpu.c31 u64 cgroup_id; member
377 data.array[n++] = key.cgroup_id; in off_cpu_write()
Dsort.h102 struct namespace_id cgroup_id; member
/linux-6.6.21/tools/bpf/bpftool/
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()
/linux-6.6.21/include/linux/
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
/linux-6.6.21/net/netfilter/
Dnft_socket.c52 cgid = cgroup_id(cgrp); in nft_sock_get_eval_cgroupv2()
/linux-6.6.21/tools/include/uapi/linux/
Dbpf.h112 __u64 cgroup_id; member
6489 __u64 cgroup_id; member
6507 __u64 cgroup_id; member
/linux-6.6.21/include/uapi/linux/
Dbpf.h112 __u64 cgroup_id; member
6489 __u64 cgroup_id; member
6507 __u64 cgroup_id; member

12