| /linux/tools/perf/util/ |
| H A D | target.c | 25 if (target->tid && target->cpu_list) { in target__validate() 26 target->cpu_list = NULL; in target__validate() 39 if (target->bpf_str && target->cpu_list) { in target__validate() 40 target->cpu_list = NULL; in target__validate() 60 if (target->per_thread && (target->system_wide || target->cpu_list)) { in target__validate()
|
| H A D | target.h | 11 const char *cpu_list; member 59 return target->system_wide || target->cpu_list; in target__has_cpu()
|
| H A D | top.c | 98 if (target->cpu_list) in perf_top__header_snprintf() 101 target->cpu_list); in perf_top__header_snprintf()
|
| H A D | cputopo.c | 164 const char *cpu_list = topology->core_cpus_list[i]; in cpu_topology__smt_on() local 170 if (strchr(cpu_list, ',') || strchr(cpu_list, '-')) in cpu_topology__smt_on()
|
| H A D | bpf_ftrace.c | 61 if (ftrace->target.cpu_list) { in perf_ftrace__latency_prepare_bpf() 83 if (ftrace->target.cpu_list) { in perf_ftrace__latency_prepare_bpf()
|
| H A D | bpf_off_cpu.c | 168 if (target->cpu_list) { in off_cpu_prepare() 234 if (target->cpu_list) { in off_cpu_prepare()
|
| H A D | session.h | 183 const char *cpu_list, unsigned long *cpu_bitmap);
|
| H A D | evlist.c | 1029 cpus = perf_cpu_map__new(target->cpu_list); in evlist__create_maps() 1034 evlist->core.has_user_cpus = !!target->cpu_list; in evlist__create_maps() 2548 void evlist__warn_user_requested_cpus(struct evlist *evlist, const char *cpu_list) in evlist__warn_user_requested_cpus() argument 2553 if (!cpu_list) in evlist__warn_user_requested_cpus() 2556 user_requested_cpus = perf_cpu_map__new(cpu_list); in evlist__warn_user_requested_cpus()
|
| /linux/tools/lib/perf/ |
| H A D | cpumap.c | 165 struct perf_cpu_map *perf_cpu_map__new(const char *cpu_list) in perf_cpu_map__new() argument 174 if (!cpu_list) in perf_cpu_map__new() 182 if (!isdigit(*cpu_list) && *cpu_list != '\0') in perf_cpu_map__new() 185 while (isdigit(*cpu_list)) { in perf_cpu_map__new() 187 start_cpu = strtoul(cpu_list, &p, 0); in perf_cpu_map__new() 193 cpu_list = ++p; in perf_cpu_map__new() 195 end_cpu = strtoul(cpu_list, &p, 0); in perf_cpu_map__new() 227 cpu_list = p; in perf_cpu_map__new() 232 } else if (*cpu_list != '\0') { in perf_cpu_map__new() 234 cpu_list); in perf_cpu_map__new()
|
| /linux/scripts/gdb/linux/ |
| H A D | cpus.py | 63 def cpu_list(mask_name): function 103 for cpu in cpu_list("__cpu_online_mask"): 108 for cpu in cpu_list("__cpu_present_mask"): 113 for cpu in cpu_list("__cpu_possible_mask"): 118 for cpu in cpu_list("__cpu_active_mask"):
|
| /linux/tools/perf/ |
| H A D | builtin-mem.c | 45 const char *cpu_list; member 105 if (mem->cpu_list) in __cmd_record() 156 if (mem->cpu_list) { in __cmd_record() 158 rec_argv[i++] = mem->cpu_list; in __cmd_record() 301 if (mem->cpu_list) { in report_raw_events() 302 ret = perf_session__cpu_bitmap(session, mem->cpu_list, in report_raw_events() 487 OPT_STRING('C', "cpu", &mem.cpu_list, "cpu", in cmd_mem()
|
| H A D | builtin-annotate.c | 67 const char *cpu_list; member 302 if (ann->cpu_list && !test_bit(sample->cpu, ann->cpu_bitmap)) in process_sample_event() 558 if (ann->cpu_list) { in __cmd_annotate() 559 ret = perf_session__cpu_bitmap(session, ann->cpu_list, in __cmd_annotate() 746 OPT_STRING('C', "cpu", &annotate.cpu_list, "cpu", "list of cpus to profile"), in cmd_annotate()
|
| H A D | builtin-kwork.c | 427 if ((kwork->cpu_list != NULL) && !test_bit(cpu, kwork->cpu_bitmap)) in profile_event_match() 1761 if (kwork->cpu_list != NULL) { in perf_kwork__check_config() 1763 kwork->cpu_list, in perf_kwork__check_config() 2350 .cpu_list = NULL, in cmd_kwork() 2384 OPT_STRING('C', "cpu", &kwork.cpu_list, "cpu", in cmd_kwork() 2403 OPT_STRING('C', "cpu", &kwork.cpu_list, "cpu", in cmd_kwork() 2430 OPT_STRING('C', "cpu", &kwork.cpu_list, "cpu", in cmd_kwork() 2441 OPT_STRING('C', "cpu", &kwork.cpu_list, "cpu", in cmd_kwork()
|
| H A D | builtin-report.c | 105 const char *cpu_list; member 307 if (rep->cpu_list && !test_bit(sample->cpu, rep->cpu_bitmap)) in process_sample_event() 1065 if (rep->cpu_list) { in __cmd_report() 1066 ret = perf_session__cpu_bitmap(session, rep->cpu_list, in __cmd_report() 1417 OPT_STRING('C', "cpu", &report.cpu_list, "cpu", in cmd_report()
|
| H A D | builtin-diff.c | 103 static const char *cpu_list; variable 421 if (cpu_list && !test_bit(sample->cpu, cpu_bitmap)) { in diff__process_sample_event() 1193 if (cpu_list) { in __cmd_diff() 1194 ret = perf_session__cpu_bitmap(d->session, cpu_list, in __cmd_diff() 1293 OPT_STRING(0, "cpu", &cpu_list, "cpu", "list of cpus to profile"),
|
| H A D | builtin-stat.c | 2491 OPT_STRING('C', "cpu", &target.cpu_list, "cpu", in cmd_stat() 2771 if (!target.system_wide || target.cpu_list) { in cmd_stat() 2816 if (target.cpu_list) { in cmd_stat() 2817 stat_config.user_requested_cpu_list = strdup(target.cpu_list); in cmd_stat() 2870 evlist__warn_user_requested_cpus(evsel_list, target.cpu_list); in cmd_stat()
|
| /linux/tools/tracing/rtla/src/ |
| H A D | utils.h | 27 int parse_cpu_list(char *cpu_list, char **monitored_cpus); 65 int parse_cpu_set(char *cpu_list, cpu_set_t *set);
|
| H A D | utils.c | 117 int parse_cpu_set(char *cpu_list, cpu_set_t *set) in parse_cpu_set() argument 129 for (p = cpu_list; *p; ) { in parse_cpu_set() 162 debug_msg("Error parsing the cpu set %s\n", cpu_list); in parse_cpu_set()
|
| /linux/tools/power/x86/amd_pstate_tracer/ |
| H A D | amd_pstate_trace.py | 255 cpu_list = "" variable 283 cpu_list = arg variable 294 if cpu_list: 295 for p in re.split("[,]", cpu_list):
|
| /linux/tools/power/x86/intel_pstate_tracer/ |
| H A D | intel_pstate_tracer.py | 503 cpu_list = "" variable 530 cpu_list = arg variable 541 if cpu_list: 542 for p in re.split("[,]", cpu_list):
|
| /linux/tools/lib/perf/include/perf/ |
| H A D | cpumap.h | 39 LIBPERF_API struct perf_cpu_map *perf_cpu_map__new(const char *cpu_list);
|
| /linux/arch/x86/kvm/vmx/ |
| H A D | tdx.h | 69 struct list_head cpu_list; member
|
| /linux/tools/perf/bench/ |
| H A D | synthesize.c | 219 .cpu_list = "0" in run_multi_threaded()
|
| H A D | evlist-open-close.c | 232 OPT_STRING('C', "cpu", &opts.target.cpu_list, "cpu", in bench_evlist_open_close()
|
| /linux/tools/testing/selftests/kvm/lib/ |
| H A D | kvm_util.c | 636 char *cpu, *cpu_list; in kvm_parse_vcpu_pinning() local 640 cpu_list = strdup(pcpus_string); in kvm_parse_vcpu_pinning() 641 TEST_ASSERT(cpu_list, "strdup() allocation failed."); in kvm_parse_vcpu_pinning() 646 cpu = strtok(cpu_list, delim); in kvm_parse_vcpu_pinning() 662 free(cpu_list); in kvm_parse_vcpu_pinning()
|