Home
last modified time | relevance | path

Searched refs:cgs (Results 1 – 6 of 6) sorted by relevance

/linux/tools/testing/selftests/bpf/prog_tests/
H A Dcgroup_link.c32 } cgs[] = { in serial_test_cgroup_link() local
38 int last_cg = ARRAY_SIZE(cgs) - 1, cg_nr = ARRAY_SIZE(cgs); in serial_test_cgroup_link()
40 struct bpf_link *links[ARRAY_SIZE(cgs)] = {}, *tmp_link; in serial_test_cgroup_link()
41 __u32 prog_ids[ARRAY_SIZE(cgs)], prog_cnt = 0, attach_flags, prog_id; in serial_test_cgroup_link()
56 cgs[i].fd = create_and_get_cgroup(cgs[i].path); in serial_test_cgroup_link()
57 if (!ASSERT_GE(cgs[i].fd, 0, "cg_create")) in serial_test_cgroup_link()
61 err = join_cgroup(cgs[last_cg].path); in serial_test_cgroup_link()
67 cgs[i].fd); in serial_test_cgroup_link()
75 err = bpf_prog_query(cgs[0].fd, BPF_CGROUP_INET_EGRESS, in serial_test_cgroup_link()
83 err = bpf_prog_query(cgs[last_cg].fd, BPF_CGROUP_INET_EGRESS, in serial_test_cgroup_link()
[all …]
H A Diters.c250 } cgs[] = { in subtest_css_iters() local
256 int err, cg_nr = ARRAY_SIZE(cgs); in subtest_css_iters()
263 cgs[i].fd = create_and_get_cgroup(cgs[i].path); in subtest_css_iters()
264 if (!ASSERT_GE(cgs[i].fd, 0, "create_and_get_cgroup")) in subtest_css_iters()
273 skel->bss->root_cg_id = get_cgroup_id(cgs[0].path); in subtest_css_iters()
274 skel->bss->leaf_cg_id = get_cgroup_id(cgs[cg_nr - 1].path); in subtest_css_iters()
282 ASSERT_EQ(skel->bss->first_cg_id, get_cgroup_id(cgs[0].path), "first_cg_id"); in subtest_css_iters()
285 ASSERT_EQ(skel->bss->last_cg_id, get_cgroup_id(cgs[0].path), "last_cg_id"); in subtest_css_iters()
/linux/drivers/scsi/lpfc/
H A Dlpfc_scsi.c3752 struct lpfc_cgn_stat *cgs; in lpfc_update_cmf_cmpl() local
3761 cgs = per_cpu_ptr(phba->cmf_stat, raw_smp_processor_id()); in lpfc_update_cmf_cmpl()
3762 atomic64_add(size, &cgs->rcv_bytes); in lpfc_update_cmf_cmpl()
3763 atomic64_add(time, &cgs->rx_latency); in lpfc_update_cmf_cmpl()
3764 atomic_inc(&cgs->rx_io_cnt); in lpfc_update_cmf_cmpl()
3781 struct lpfc_cgn_stat *cgs; in lpfc_update_cmf_cmd() local
3789 cgs = per_cpu_ptr(phba->cmf_stat, cpu); in lpfc_update_cmf_cmd()
3790 total += atomic64_read(&cgs->total_bytes); in lpfc_update_cmf_cmd()
3805 cgs = per_cpu_ptr(phba->cmf_stat, raw_smp_processor_id()); in lpfc_update_cmf_cmd()
3806 atomic64_add(size, &cgs in lpfc_update_cmf_cmd()
[all...]
H A Dlpfc_init.c3180 struct lpfc_cgn_stat *cgs; in lpfc_cmf_stop() local
3196 cgs = per_cpu_ptr(phba->cmf_stat, cpu); in lpfc_cmf_stop()
3197 atomic64_set(&cgs->total_bytes, 0); in lpfc_cmf_stop()
3198 atomic64_set(&cgs->rcv_bytes, 0); in lpfc_cmf_stop()
3199 atomic_set(&cgs->rx_io_cnt, 0); in lpfc_cmf_stop()
3200 atomic64_set(&cgs->rx_latency, 0); in lpfc_cmf_stop()
3243 struct lpfc_cgn_stat *cgs; in lpfc_cmf_start() local
3261 cgs = per_cpu_ptr(phba->cmf_stat, cpu); in lpfc_cmf_start()
3262 atomic64_set(&cgs->total_bytes, 0); in lpfc_cmf_start()
3263 atomic64_set(&cgs in lpfc_cmf_start()
5958 struct lpfc_cgn_stat *cgs; lpfc_cmf_timer() local
[all...]
H A Dlpfc_attr.c125 struct lpfc_cgn_stat *cgs; in lpfc_cmf_info_show() local
260 cgs = per_cpu_ptr(phba->cmf_stat, cpu); in lpfc_cmf_info_show()
261 total += atomic64_read(&cgs->total_bytes); in lpfc_cmf_info_show()
262 rcv += atomic64_read(&cgs->rcv_bytes); in lpfc_cmf_info_show()
/linux/include/linux/mlx5/
H A Dmlx5_ifc.h3612 u8 cgs[0x1]; member