Home
last modified time | relevance | path

Searched refs:cpu_list (Results 1 – 25 of 31) sorted by relevance

12

/tools/perf/util/
Dtarget.c25 if (target->tid && target->cpu_list) { in target__validate()
26 target->cpu_list = NULL; in target__validate()
39 if (target->uid_str && target->cpu_list) { in target__validate()
40 target->cpu_list = NULL; in target__validate()
60 if (target->bpf_str && target->cpu_list) { in target__validate()
61 target->cpu_list = NULL; in target__validate()
88 if (target->per_thread && (target->system_wide || target->cpu_list)) { in target__validate()
Dtarget.h11 const char *cpu_list; member
68 return target->system_wide || target->cpu_list; in target__has_cpu()
Devlist-hybrid.c90 int evlist__fix_hybrid_cpus(struct evlist *evlist, const char *cpu_list) in evlist__fix_hybrid_cpus() argument
97 if (!perf_pmu__has_hybrid() || !cpu_list) in evlist__fix_hybrid_cpus()
100 cpus = perf_cpu_map__new(cpu_list); in evlist__fix_hybrid_cpus()
Devlist-hybrid.h13 int evlist__fix_hybrid_cpus(struct evlist *evlist, const char *cpu_list);
Dtop.c96 if (target->cpu_list) in perf_top__header_snprintf()
99 target->cpu_list); in perf_top__header_snprintf()
Dsession.h131 const char *cpu_list, unsigned long *cpu_bitmap);
Dstat-display.c1098 else if (_target->cpu_list) in print_header()
1099 fprintf(output, "\'CPU(s) %s", _target->cpu_list); in print_header()
Dbpf_counter.c371 } else if (target->cpu_list) { in bperf_check_target()
Devlist.c1020 cpus = perf_cpu_map__new(target->cpu_list); in evlist__create_maps()
1025 evlist->core.has_user_cpus = !!target->cpu_list && !target->hybrid; in evlist__create_maps()
/tools/lib/perf/
Dcpumap.c176 struct perf_cpu_map *perf_cpu_map__new(const char *cpu_list) in perf_cpu_map__new() argument
185 if (!cpu_list) in perf_cpu_map__new()
193 if (!isdigit(*cpu_list) && *cpu_list != '\0') in perf_cpu_map__new()
196 while (isdigit(*cpu_list)) { in perf_cpu_map__new()
198 start_cpu = strtoul(cpu_list, &p, 0); in perf_cpu_map__new()
204 cpu_list = ++p; in perf_cpu_map__new()
206 end_cpu = strtoul(cpu_list, &p, 0); in perf_cpu_map__new()
238 cpu_list = p; in perf_cpu_map__new()
243 else if (*cpu_list != '\0') in perf_cpu_map__new()
/tools/lib/perf/include/perf/
Dcpumap.h13 LIBPERF_API struct perf_cpu_map *perf_cpu_map__new(const char *cpu_list);
/tools/perf/
Dbuiltin-annotate.c54 const char *cpu_list; member
275 if (ann->cpu_list && !test_bit(sample->cpu, ann->cpu_bitmap)) in process_sample_event()
388 if (ann->cpu_list) { in __cmd_annotate()
389 ret = perf_session__cpu_bitmap(session, ann->cpu_list, in __cmd_annotate()
524 OPT_STRING('C', "cpu", &annotate.cpu_list, "cpu", "list of cpus to profile"), in cmd_annotate()
Dbuiltin-mem.c37 const char *cpu_list; member
281 if (mem->cpu_list) { in report_raw_events()
282 ret = perf_session__cpu_bitmap(session, mem->cpu_list, in report_raw_events()
469 OPT_STRING('C', "cpu", &mem.cpu_list, "cpu", in cmd_mem()
Dbuiltin-report.c93 const char *cpu_list; member
285 if (rep->cpu_list && !test_bit(sample->cpu, rep->cpu_bitmap)) in process_sample_event()
926 if (rep->cpu_list) { in __cmd_report()
927 ret = perf_session__cpu_bitmap(session, rep->cpu_list, in __cmd_report()
1281 OPT_STRING('C', "cpu", &report.cpu_list, "cpu", in cmd_report()
Dbuiltin-diff.c102 static const char *cpu_list; variable
418 if (cpu_list && !test_bit(sample->cpu, cpu_bitmap)) { in diff__process_sample_event()
1204 if (cpu_list) { in __cmd_diff()
1205 ret = perf_session__cpu_bitmap(d->session, cpu_list, in __cmd_diff()
1304 OPT_STRING(0, "cpu", &cpu_list, "cpu", "list of cpus to profile"),
Dbuiltin-sched.c54 static const char *cpu_list; variable
2016 if (cpu_list && !test_bit(sample->cpu, cpu_bitmap)) in timehist_print_sample()
2590 if (!cpu_list || test_bit(sample->cpu, cpu_bitmap)) in timehist_sched_change_event()
2864 if (cpu_list && !test_bit(i, cpu_bitmap)) in timehist_print_summary()
3018 if (cpu_list) { in perf_sched__timehist()
3019 err = perf_session__cpu_bitmap(session, cpu_list, cpu_bitmap); in perf_sched__timehist()
3499 OPT_STRING('C', "cpu", &cpu_list, "cpu", "list of cpus to profile"), in cmd_sched()
Dbuiltin-stat.c1197 OPT_STRING('C', "cpu", &target.cpu_list, "cpu",
2357 if (!target.system_wide || target.cpu_list) { in cmd_stat()
2420 if (evlist__fix_hybrid_cpus(evsel_list, target.cpu_list)) { in cmd_stat()
2421 pr_err("failed to use cpu list %s\n", target.cpu_list); in cmd_stat()
Dbuiltin-ftrace.c902 OPT_STRING('C', "cpu", &ftrace.target.cpu_list, "cpu", in cmd_ftrace()
Dbuiltin-script.c78 static const char *cpu_list; variable
2174 if (cpu_list && sample->cpu != (u32)-1) in filter_cpu()
3743 OPT_STRING('C', "cpu", &cpu_list, "cpu", "list of cpus to profile"), in cmd_script()
4064 if (cpu_list) { in cmd_script()
4065 err = perf_session__cpu_bitmap(session, cpu_list, cpu_bitmap); in cmd_script()
Dbuiltin-record.c2467 OPT_STRING('C', "cpu", &record.opts.target.cpu_list, "cpu",
2858 if (evlist__fix_hybrid_cpus(rec->evlist, rec->opts.target.cpu_list)) { in cmd_record()
2860 rec->opts.target.cpu_list); in cmd_record()
/tools/power/x86/intel_pstate_tracer/
Dintel_pstate_tracer.py505 cpu_list = "" variable
532 cpu_list = arg variable
543 if cpu_list:
544 for p in re.split("[,]", cpu_list):
/tools/perf/bench/
Dsynthesize.c207 .cpu_list = "0" in run_multi_threaded()
Devlist-open-close.c50 OPT_STRING('C', "cpu", &opts.target.cpu_list, "cpu", "list of cpus where to open events"),
/tools/lib/perf/Documentation/
Dlibperf.txt41 struct perf_cpu_map *perf_cpu_map__new(const char *cpu_list);
/tools/kvm/kvm_stat/
Dkvm_stat612 with open('/sys/devices/system/cpu/online') as cpu_list:
613 cpu_string = cpu_list.readline()

12