Searched refs:attach_counters (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | cgroup_hierarchical_stats.c | 216 unsigned long long attach_counters[N_CGROUPS], root_attach_counter; in check_attach_counters() local 220 attach_counters[i] = get_attach_counter(cgroups[i].id, in check_attach_counters() 228 ASSERT_EQ(attach_counters[i], PROCESSES_PER_CGROUP, in check_attach_counters() 232 ASSERT_EQ(attach_counters[1], attach_counters[3] + attach_counters[4], in check_attach_counters() 235 ASSERT_EQ(attach_counters[2], attach_counters[5] + attach_counters[6], in check_attach_counters() 238 ASSERT_EQ(attach_counters[0], attach_counters[1] + attach_counters[2], in check_attach_counters() 241 ASSERT_GE(root_attach_counter, attach_counters[1], "root_counter"); in check_attach_counters()
|
/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | cgroup_hierarchical_stats.c | 38 } attach_counters SEC(".maps"); 60 return bpf_map_update_elem(&attach_counters, &cg_id, in create_attach_counter() 101 total_counter = bpf_map_lookup_elem(&attach_counters, &cg_id); in BPF_PROG() 123 parent_counter = bpf_map_lookup_elem(&attach_counters, in BPF_PROG() 146 total_counter = bpf_map_lookup_elem(&attach_counters, &cg_id); in BPF_PROG()
|