Searched refs:libbpf_num_possible_cpus (Results 1 – 25 of 31) sorted by relevance
12
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | percpu_alloc.c | 24 skel->rodata->nr_cpus = libbpf_num_possible_cpus(); in test_array() 57 skel->rodata->nr_cpus = libbpf_num_possible_cpus(); in test_array_sleepable() 92 skel->rodata->nr_cpus = libbpf_num_possible_cpus(); in test_cgrp_local_storage() 306 nr_cpus = libbpf_num_possible_cpus(); 307 if (!ASSERT_GT(nr_cpus, 0, "libbpf_num_possible_cpus")) 360 nr_cpus = libbpf_num_possible_cpus(); 361 if (!ASSERT_GT(nr_cpus, 0, "libbpf_num_possible_cpus"))
|
| H A D | global_map_resize.c | 46 new_sz = sizeof(skel->data_percpu_arr->percpu_arr[0]) * libbpf_num_possible_cpus(); in global_map_resize_bss_subtest() 119 new_sz = sizeof(skel->data_percpu_arr->percpu_arr[0]) * libbpf_num_possible_cpus(); in global_map_resize_data_subtest()
|
| H A D | cpumask.c | 47 skel->bss->nr_cpus = libbpf_num_possible_cpus(); in verify_success()
|
| H A D | map_lookup_percpu_elem.c | 11 int ret, i, nr_cpus = libbpf_num_possible_cpus(); in test_map_lookup_percpu_elem()
|
| H A D | test_map_uninit.c | 14 nr_cpus = libbpf_num_possible_cpus(); in test_map_uninit_mem_exposure()
|
| H A D | get_branch_snapshot.c | 46 cpu_cnt = libbpf_num_possible_cpus(); in create_perf_events()
|
| H A D | res_spin_lock.c | 114 if (libbpf_num_possible_cpus() < 3) { in serial_test_res_spin_lock_stress()
|
| H A D | perf_buffer.c | 56 nr_cpus = libbpf_num_possible_cpus(); in serial_test_perf_buffer()
|
| H A D | map_kptr_race.c | 98 skel->rodata->nr_cpus = libbpf_num_possible_cpus(); in test_percpu_htab_leak()
|
| H A D | map_kptr.c | 43 cpu = libbpf_num_possible_cpus(); in test_map_kptr_success() 44 if (!ASSERT_GT(cpu, 0, "libbpf_num_possible_cpus")) in test_map_kptr_success()
|
| /linux/tools/sched_ext/ |
| H A D | scx_qmap.c | 251 if (libbpf_num_possible_cpus() > SCX_QMAP_MAX_CPUS) { in main() 255 libbpf_num_possible_cpus(), SCX_QMAP_MAX_CPUS); in main() 331 u32 nr_cpus = libbpf_num_possible_cpus(); in main() 420 u32 nr_cpus = libbpf_num_possible_cpus(); in main()
|
| H A D | scx_cpu0.c | 42 int nr_cpus = libbpf_num_possible_cpus(); in read_stats()
|
| H A D | scx_simple.c | 44 int nr_cpus = libbpf_num_possible_cpus(); in read_stats()
|
| H A D | scx_central.c | 60 skel->rodata->nr_cpu_ids = libbpf_num_possible_cpus(); in main()
|
| H A D | scx_pair.c | 60 skel->rodata->nr_cpu_ids = libbpf_num_possible_cpus(); in main()
|
| H A D | scx_flatcg.c | 146 skel->rodata->nr_cpus = libbpf_num_possible_cpus(); in main()
|
| H A D | scx_userland.c | 389 skel->rodata->num_possible_cpus = libbpf_num_possible_cpus(); in bootstrap()
|
| /linux/tools/testing/selftests/sched_ext/ |
| H A D | dsp_local_on.c | 20 skel->rodata->nr_cpus = libbpf_num_possible_cpus(); in setup()
|
| H A D | exit.c | 30 if (tc == EXIT_SELECT_CPU && libbpf_num_possible_cpus() == 1) in run()
|
| /linux/tools/testing/selftests/bpf/ |
| H A D | bpf_util.h | 15 int possible_cpus = libbpf_num_possible_cpus(); in bpf_num_possible_cpus()
|
| /linux/samples/bpf/ |
| H A D | xdp_sample_user.h | 73 skel->rodata->nr_cpus = libbpf_num_possible_cpus(); \
|
| H A D | xdp_sample_user.c | 317 unsigned int nr_cpus = libbpf_num_possible_cpus(); in alloc_record_per_cpu() 343 unsigned int nr_cpus = libbpf_num_possible_cpus(); in map_collect_percpu() 1105 int nr_cpus = libbpf_num_possible_cpus(); in stats_print() 1197 sample_n_cpus = libbpf_num_possible_cpus(); in sample_setup_maps()
|
| /linux/tools/testing/selftests/bpf/map_tests/ |
| H A D | array_map_batch_ops.c | 158 nr_cpus = libbpf_num_possible_cpus(); in test_array_map_batch_ops()
|
| /linux/tools/lib/bpf/ |
| H A D | libbpf.map | 99 libbpf_num_possible_cpus;
|
| /linux/tools/perf/util/ |
| H A D | bpf_counter.c | 291 int num_cpu_bpf = libbpf_num_possible_cpus(); in bpf_program_profiler__read() 472 bpf_map__set_max_entries(skel->maps.events, libbpf_num_possible_cpus()); in bperf_reload_leader_program()
|
12