Searched refs:cpu_cnt (Results 1 – 10 of 10) sorted by relevance
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | get_branch_snapshot.c | 7 static int cpu_cnt; variable 46 cpu_cnt = libbpf_num_possible_cpus(); in create_perf_events() 47 pfd_array = malloc(sizeof(int) * cpu_cnt); in create_perf_events() 49 cpu_cnt = 0; in create_perf_events() 53 for (cpu = 0; cpu < cpu_cnt; cpu++) { in create_perf_events() 67 for (cpu = 0; cpu < cpu_cnt; cpu++) { in close_perf_events()
|
| /linux/block/ |
| H A D | blk-cgroup-rwstat.c | 12 ret = percpu_counter_init_many(rwstat->cpu_cnt, 0, gfp, BLKG_RWSTAT_NR); in blkg_rwstat_init() 24 percpu_counter_destroy_many(rwstat->cpu_cnt, BLKG_RWSTAT_NR); in blkg_rwstat_exit()
|
| H A D | bfq-cgroup.c | 23 ret = percpu_counter_init(&stat->cpu_cnt, 0, gfp); in bfq_stat_init() 33 percpu_counter_destroy(&stat->cpu_cnt); in bfq_stat_exit() 46 percpu_counter_add_batch(&stat->cpu_cnt, val, BLKG_STAT_CPU_BATCH); in bfq_stat_add() 55 return percpu_counter_sum_positive(&stat->cpu_cnt); in bfq_stat_read() 64 percpu_counter_set(&stat->cpu_cnt, 0); in bfq_stat_reset()
|
| H A D | bfq-iosched.h | 915 struct percpu_counter cpu_cnt; member
|
| /linux/tools/testing/selftests/bpf/benchs/ |
| H A D | bench_ringbufs.c | 523 int cpu_cnt; /* number of allocated CPU buffers */ 544 cnt = epoll_wait(pb->epoll_fd, pb->events, pb->cpu_cnt, -1); 470 int cpu_cnt; /* number of allocated CPU buffers */ global() member
|
| /linux/tools/bpf/bpftool/ |
| H A D | map_perf_ring.c | 187 opts.cpu_cnt = ctx.all_cpus ? 0 : 1; in do_event_pipe()
|
| /linux/tools/power/x86/intel-speed-select/ |
| H A D | isst-config.c | 694 static int cpu_cnt[MAX_PACKAGE_COUNT][MAX_DIE_PER_PACKAGE][MAX_PUNIT_PER_DIE]; variable 719 return cpu_cnt[id->pkg][id->die][id->punit]; in get_cpu_count() 828 cpu_cnt[pkg_id][die_id][punit_id]++; in create_cpu_map() 858 cpu_set_t *core_cpumask, int *cpu_cnt) in set_cpu_mask_from_punit_coremask() argument 865 *cpu_cnt = 0; in set_cpu_mask_from_punit_coremask() 885 *cpu_cnt = cnt; in set_cpu_mask_from_punit_coremask()
|
| H A D | isst.h | 236 int *cpu_cnt);
|
| /linux/tools/lib/bpf/ |
| H A D | libbpf.c | 13596 int cpu_cnt; member 13621 int cpu_cnt; /* number of allocated CPU buffers */ member 13649 for (i = 0; i < pb->cpu_cnt; i++) { in perf_buffer__free() 13767 p.cpu_cnt = OPTS_GET(opts, cpu_cnt, 0); in perf_buffer__new_raw() 13835 if (p->cpu_cnt > 0) { in __perf_buffer__new() 13836 pb->cpu_cnt = p->cpu_cnt; in __perf_buffer__new() 13838 pb->cpu_cnt = libbpf_num_possible_cpus(); in __perf_buffer__new() 13839 if (pb->cpu_cnt < 0) { in __perf_buffer__new() 13840 err = pb->cpu_cnt; in __perf_buffer__new() 13843 if (map.max_entries && map.max_entries < pb->cpu_cnt) in __perf_buffer__new() [all …]
|
| /linux/drivers/scsi/lpfc/ |
| H A D | lpfc_init.c | 12978 unsigned int cpu = 0, cpu_cnt = 0, cpu_select = nr_cpu_ids; in lpfc_sli4_enable_msix() local 12991 cpu_cnt = cpumask_weight(aff_mask); in lpfc_sli4_enable_msix() 12992 vectors = min(phba->cfg_irq_chann, cpu_cnt); in lpfc_sli4_enable_msix()
|