Home
last modified time | relevance | path

Searched refs:MAX_NR_CPUS (Results 1 – 18 of 18) sorted by relevance

/linux/tools/perf/
H A Dperf.h5 #define MAX_NR_CPUS 4096 macro
H A Dbuiltin-kwork.c473 ((unsigned int)cpu >= MAX_NR_CPUS || !test_bit(cpu, kwork->cpu_bitmap))) in work_push_atom()
1610 for (i = 0; i < MAX_NR_CPUS; i++) { in top_print_cpu_usage()
1633 u64 idle_time = stat->cpus_runtime[MAX_NR_CPUS].idle; in top_print_header()
1634 u64 hardirq_time = stat->cpus_runtime[MAX_NR_CPUS].irq; in top_print_header()
1635 u64 softirq_time = stat->cpus_runtime[MAX_NR_CPUS].softirq; in top_print_header()
1636 int cpus_nr = bitmap_weight(stat->all_cpus_bitmap, MAX_NR_CPUS); in top_print_header()
1637 u64 cpus_total_time = stat->cpus_runtime[MAX_NR_CPUS].total; in top_print_header()
2051 * unsigned it exceeds MAX_NR_CPUS — skip to avoid OOB in top_subtract_irq_runtime()
2055 if ((unsigned int)work->cpu >= MAX_NR_CPUS) { in top_subtract_irq_runtime()
2061 stat->cpus_runtime[MAX_NR_CPUS] in top_subtract_irq_runtime()
[all...]
H A Dbuiltin-mem.c46 DECLARE_BITMAP(cpu_bitmap, MAX_NR_CPUS);
H A Dbuiltin-annotate.c68 DECLARE_BITMAP(cpu_bitmap, MAX_NR_CPUS);
298 if (ann->cpu_list && (sample->cpu >= MAX_NR_CPUS || in process_sample_event()
H A Dbuiltin-report.c120 DECLARE_BITMAP(cpu_bitmap, MAX_NR_CPUS);
301 if (rep->cpu_list && (sample->cpu >= MAX_NR_CPUS || in process_sample_event()
H A Dbuiltin-diff.c104 static DECLARE_BITMAP(cpu_bitmap, MAX_NR_CPUS);
419 if (cpu_list && (sample->cpu >= MAX_NR_CPUS || in diff__process_sample_event()
H A Dbuiltin-script.c94 static DECLARE_BITMAP(cpu_bitmap, MAX_NR_CPUS);
2651 if (cpu_list && sample->cpu != (u32)-1 && sample->cpu < MAX_NR_CPUS) in process_sample_event()
H A Dbuiltin-sched.c126 static DECLARE_BITMAP(cpu_bitmap, MAX_NR_CPUS);
2445 if (cpu_list && (sample->cpu >= MAX_NR_CPUS || in free_idle_threads()
3139 if (!cpu_list || (sample->cpu < MAX_NR_CPUS && in timehist_print_summary()
/linux/samples/bpf/
H A Dmap_perf_test_user.c23 #define MAX_NR_CPUS 1024 macro
122 static int inner_lru_map_fds[MAX_NR_CPUS]; in do_test_lru()
140 assert(cpu < MAX_NR_CPUS); in do_test_lru()
H A Dmap_perf_test.bpf.c15 #define MAX_NR_CPUS 1024 macro
50 __uint(max_entries, MAX_NR_CPUS);
/linux/tools/lib/perf/
H A Dcpumap.c16 #define MAX_NR_CPUS 4096 macro
203 WARN_ONCE(end_cpu >= MAX_NR_CPUS, "Perf can support %d CPUs. " in perf_cpu_map__new()
204 "Consider raising MAX_NR_CPUS\n", MAX_NR_CPUS); in perf_cpu_map__new()
/linux/tools/perf/util/
H A Dsymbol_conf.h112 DECLARE_BITMAP(parallelism_filter, MAX_NR_CPUS + 1);
H A Dutil.c264 char cpus[MAX_NR_CPUS]; in cpumask_to_cpulist()
H A Dsymbol.c2515 bitmap_fill(symbol_conf.parallelism_filter, MAX_NR_CPUS + 1); in setup_parallelism_bitmap()
2517 if (cpu.cpu <= 0 || cpu.cpu > MAX_NR_CPUS) { in setup_parallelism_bitmap()
H A Dheader.c1742 char dname[DNAME_LEN], cpumask[MAX_NR_CPUS]; in write_cpu_domain_info()
1745 char cpulist[MAX_NR_CPUS]; in write_cpu_domain_info()
5289 * arrays (timechart, kwork, sched — all sized MAX_NR_CPUS).
5294 * MAX_NR_CPUS so the bounds check is still effective — any
5298 header->env.nr_cpus_avail = MAX_NR_CPUS;
5299 pr_warning("WARNING: perf.data is missing HEADER_NRCPUS, using MAX_NR_CPUS (%d) as CPU bound\n",
5300 MAX_NR_CPUS);
H A Dhist.c1559 if (__bitmap_weight(symbol_conf.parallelism_filter, MAX_NR_CPUS + 1) == 0) in hist_entry__check_and_remove_filter()
H A Dsession.c2190 * For perf.data files the MAX_NR_CPUS fallback in in prefetch_event()
2194 * back to MAX_NR_CPUS so the bounds check still works
2199 * legitimately 0. Writing MAX_NR_CPUS would cause in fetch_mmaped_event()
2205 nr_cpus_avail = MAX_NR_CPUS; in fetch_decomp_event()
2207 * Cap at MAX_NR_CPUS for the bounds check — downstream in __perf_session__process_decomp_events()
2212 if (nr_cpus_avail > MAX_NR_CPUS) in __perf_session__process_decomp_events()
2213 nr_cpus_avail = MAX_NR_CPUS; in __perf_session__process_decomp_events()
3884 int nr_cpus = min(perf_session__env(session)->nr_cpus_avail, MAX_NR_CPUS);
3910 "Consider raising MAX_NR_CPUS\n", cpu.cpu);
/linux/tools/perf/util/bpf_skel/
H A Dkwork_top.bpf.c21 #define MAX_NR_CPUS 4096 macro
82 __uint(max_entries, MAX_NR_CPUS);