Home
last modified time | relevance | path

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

/linux-6.6.21/tools/testing/selftests/bpf/progs/
Dcgroup_hierarchical_stats.c48 static int create_percpu_attach_counter(__u64 cg_id, __u64 state) in create_percpu_attach_counter() argument
52 return bpf_map_update_elem(&percpu_attach_counters, &cg_id, in create_percpu_attach_counter()
56 static int create_attach_counter(__u64 cg_id, __u64 state, __u64 pending) in create_attach_counter() argument
60 return bpf_map_update_elem(&attach_counters, &cg_id, in create_attach_counter()
68 __u64 cg_id = cgroup_id(dst_cgrp); in BPF_PROG() local
71 &cg_id); in BPF_PROG()
75 else if (create_percpu_attach_counter(cg_id, 1)) in BPF_PROG()
87 __u64 cg_id = cgroup_id(cgrp); in BPF_PROG() local
94 &cg_id, cpu); in BPF_PROG()
101 total_counter = bpf_map_lookup_elem(&attach_counters, &cg_id); in BPF_PROG()
[all …]
/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/
Dcgroup_iter.c24 static unsigned long long cg_id[] = {0, 0, 0, 0}; variable
37 cg_id[i] = get_cgroup_id(cg_path[i]); in setup_cgroups()
120 linfo.cgroup.cgroup_id = (__u64)cg_id[PARENT]; in test_invalid_cgroup_spec()
134 cg_id[PARENT], cg_id[CHILD1], cg_id[CHILD2]); in test_walk_preorder()
145 cg_id[CHILD1], cg_id[CHILD2], cg_id[PARENT]); in test_walk_postorder()
155 skel->bss->terminal_cgroup = cg_id[ROOT]; in test_walk_ancestors_up()
159 cg_id[PARENT], cg_id[ROOT]); in test_walk_ancestors_up()
174 PROLOGUE "%8llu\n" EPILOGUE, cg_id[PARENT]); in test_early_termination()
186 PROLOGUE "%8llu\n" EPILOGUE, cg_id[PARENT]); in test_walk_self_only()
/linux-6.6.21/samples/bpf/
Dhbm.c161 static int run_bpf_prog(char *prog, int cg_id) in run_bpf_prog() argument
170 sprintf(cg_dir, "/hbm%d", cg_id); in run_bpf_prog()
207 sprintf(cg_pin_path, "/sys/fs/bpf/hbm%d", cg_id); in run_bpf_prog()
312 sprintf(fname, "hbm.%d.in", cg_id); in run_bpf_prog()
314 sprintf(fname, "hbm.%d.out", cg_id); in run_bpf_prog()
316 fprintf(fout, "id:%d\n", cg_id); in run_bpf_prog()
342 sprintf(fname, "hbm.%d.out", cg_id); in run_bpf_prog()
344 fprintf(fout, "id:%d\n", cg_id); in run_bpf_prog()
454 int cg_id = 1; in main() local
480 cg_id = atoi(optarg); in main()
[all …]
/linux-6.6.21/sound/soc/mediatek/mt8195/
Dmt8195-dai-etdm.c1465 int cg_id = -1; in mtk_dai_etdm_get_cg_id_by_dai_id() local
1469 cg_id = MT8195_CLK_AUD_HDMI_OUT; in mtk_dai_etdm_get_cg_id_by_dai_id()
1472 cg_id = MT8195_CLK_AUD_TDM_IN; in mtk_dai_etdm_get_cg_id_by_dai_id()
1475 cg_id = MT8195_CLK_AUD_I2SIN; in mtk_dai_etdm_get_cg_id_by_dai_id()
1478 cg_id = MT8195_CLK_AUD_TDM_OUT; in mtk_dai_etdm_get_cg_id_by_dai_id()
1481 cg_id = MT8195_CLK_AUD_I2S_OUT; in mtk_dai_etdm_get_cg_id_by_dai_id()
1484 cg_id = MT8195_CLK_AUD_HDMI_OUT; in mtk_dai_etdm_get_cg_id_by_dai_id()
1490 return cg_id; in mtk_dai_etdm_get_cg_id_by_dai_id()
1582 int cg_id; in mtk_dai_etdm_startup() local
1593 cg_id = mtk_dai_etdm_get_cg_id_by_dai_id(mst_dai_id); in mtk_dai_etdm_startup()
[all …]
/linux-6.6.21/kernel/bpf/
Dcgroup.c1234 u64 cg_id = 0; in bpf_cgroup_link_show_fdinfo() local
1238 cg_id = cgroup_id(cg_link->cgroup); in bpf_cgroup_link_show_fdinfo()
1244 cg_id, in bpf_cgroup_link_show_fdinfo()
1253 u64 cg_id = 0; in bpf_cgroup_link_fill_link_info() local
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/sound/soc/mediatek/mt8188/
Dmt8188-dai-etdm.c659 int cg_id; in mtk_etdm_cg_event() local
667 cg_id = mtk_dai_etdm_get_cg_id_by_dai_id(etdm_id); in mtk_etdm_cg_event()
668 if (cg_id < 0) { in mtk_etdm_cg_event()
678 mt8188_afe_enable_clk(afe, afe_priv->clk[cg_id]); in mtk_etdm_cg_event()
681 mt8188_afe_disable_clk(afe, afe_priv->clk[cg_id]); in mtk_etdm_cg_event()