Home
last modified time | relevance | path

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

12

/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/
Dcgrp_local_storage.c174 static void test_cgroup_iter_sleepable(int cgroup_fd, __u64 cgroup_id) in test_cgroup_iter_sleepable() argument
210 ASSERT_EQ(skel->bss->cgroup_id, cgroup_id, "cgroup_id"); in test_cgroup_iter_sleepable()
217 static void test_yes_rcu_lock(__u64 cgroup_id) in test_yes_rcu_lock() argument
240 ASSERT_EQ(skel->bss->cgroup_id, cgroup_id, "cgroup_id"); in test_yes_rcu_lock()
283 __u64 cgroup_id; in cgrp2_local_storage() local
292 cgroup_id = get_cgroup_id("/cgrp_local_storage"); in cgrp2_local_storage()
302 test_cgroup_iter_sleepable(cgroup_fd, cgroup_id); in cgrp2_local_storage()
304 test_yes_rcu_lock(cgroup_id); in cgrp2_local_storage()
Drcu_read_lock.c13 static unsigned long long cgroup_id; variable
47 ASSERT_EQ(skel->bss->cgroup_id, cgroup_id, "cgroup_id"); in test_success()
143 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.c121 linfo.cgroup.cgroup_id = (__u64)cg_id[PARENT]; in test_invalid_cgroup_spec()
/linux-6.12.1/tools/testing/selftests/bpf/progs/
Dcgrp_ls_sleepable.c19 __u64 cgroup_id; variable
40 cgroup_id = cgrp->kn->id; in cgroup_iter()
54 cgroup_id = cgrp->kn->id; in __no_rcu_lock()
112 cgroup_id = cgrp->kn->id; in yes_rcu_lock()
123 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()
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()
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.12.1/tools/perf/util/
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);
Dcgroup.c55 uint64_t cgroup_id; in __read_cgroup_id() member
59 handle.fh.handle_bytes = sizeof(handle.cgroup_id); in __read_cgroup_id()
63 return handle.cgroup_id; in __read_cgroup_id()
Dbpf_off_cpu.c31 u64 cgroup_id; member
379 data.array[n++] = key.cgroup_id; in off_cpu_write()
/linux-6.12.1/include/trace/events/
Dcgroup.h69 __entry->id = cgroup_id(cgrp);
138 __entry->dst_id = cgroup_id(dst_cgrp);
182 __entry->id = cgroup_id(cgrp);
223 __entry->id = cgroup_id(cgrp);
/linux-6.12.1/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()
/linux-6.12.1/tools/build/feature/
Dtest-file-handle.c11 uint64_t cgroup_id; in main() member
/linux-6.12.1/tools/cgroup/
Dmemcg_slabinfo.py168 cgroup_id = stat(args.cgroup).st_ino
170 memcg = MEMCGS[cgroup_id]
/linux-6.12.1/tools/bpf/bpftool/Documentation/
Dbpftool-link.rst81 cgroup_id 614 attach_type egress
91 "cgroup_id": 614,
/linux-6.12.1/tools/perf/util/bpf_skel/
Doff_cpu.bpf.c32 __u64 cgroup_id; member
219 .cgroup_id = needs_cgroup ? get_cgroup_id(next) : 0, in off_cpu_stat()
/linux-6.12.1/net/ipv4/
Dinet_diag.c47 u64 cgroup_id; member
179 cgroup_id(sock_cgroup_ptr(&sk->sk_cgrp_data)), in inet_diag_msg_attrs_fill()
759 u64 cgroup_id; in inet_diag_bc_run() local
761 cgroup_id = get_unaligned((const u64 *)(op + 1)); in inet_diag_bc_run()
762 if (cgroup_id != entry->cgroup_id) in inet_diag_bc_run()
820 entry.cgroup_id = sk_fullsock(sk) ? in inet_diag_bc_sk()
821 cgroup_id(sock_cgroup_ptr(&sk->sk_cgrp_data)) : 0; in inet_diag_bc_sk()
/linux-6.12.1/tools/bpf/bpftool/
Dlink.c217 jsonw_lluint_field(wtr, "cgroup_id", info->iter.cgroup.cgroup_id); in show_iter_json()
507 info->cgroup.cgroup_id); in show_link_close_json()
647 printf("cgroup_id %llu ", info->iter.cgroup.cgroup_id); in show_iter_plain()
899 printf("\n\tcgroup_id %zu ", (size_t)info->cgroup.cgroup_id); in show_link_close_plain()
/linux-6.12.1/include/linux/
Dcgroup.h324 static inline u64 cgroup_id(const struct cgroup *cgrp) in cgroup_id() function
640 static inline u64 cgroup_id(const struct cgroup *cgrp) { return 1; } in cgroup_id() function
/linux-6.12.1/mm/
Dinternal.h326 unsigned short cgroup_id; in swap_pte_batch() local
332 cgroup_id = lookup_swap_cgroup_id(entry); in swap_pte_batch()
338 if (lookup_swap_cgroup_id(pte_to_swp_entry(pte)) != cgroup_id) in swap_pte_batch()
/linux-6.12.1/net/netfilter/
Dnft_socket.c53 cgid = cgroup_id(cgrp); in nft_sock_get_eval_cgroupv2()
/linux-6.12.1/include/uapi/linux/
Dbpf.h134 __u64 cgroup_id; member
6637 __u64 cgroup_id; member
6655 __u64 cgroup_id; member

12