Lines Matching refs:target
112 static struct target target = { variable
168 return (evsel->cpus && !target.cpu_list) ? evsel->cpus : evsel_list->cpus; in perf_evsel__cpus()
304 if (target__has_cpu(&target)) in create_perf_stat_counter()
307 if (!target__has_task(&target) && perf_evsel__is_group_leader(evsel)) { in create_perf_stat_counter()
644 if (perf_evlist__prepare_workload(evsel_list, &target, argv, false, in __run_perf_stat()
671 perf_evsel__open_strerror(counter, &target, in __run_perf_stat()
1413 if (target.system_wide) in print_stat()
1415 else if (target.cpu_list) in print_stat()
1416 fprintf(output, "\'CPU(s) %s", target.cpu_list); in print_stat()
1417 else if (!target__has_task(&target)) { in print_stat()
1421 } else if (target.pid) in print_stat()
1422 fprintf(output, "process id \'%s", target.pid); in print_stat()
1424 fprintf(output, "thread id \'%s", target.tid); in print_stat()
1725 OPT_STRING('p', "pid", &target.pid, "pid", in cmd_stat()
1727 OPT_STRING('t', "tid", &target.tid, "tid", in cmd_stat()
1729 OPT_BOOLEAN('a', "all-cpus", &target.system_wide, in cmd_stat()
1747 OPT_STRING('C', "cpu", &target.cpu_list, "cpu", in cmd_stat()
1848 if (!argc && target__none(&target)) in cmd_stat()
1862 !target__has_cpu(&target)) { in cmd_stat()
1875 target__validate(&target); in cmd_stat()
1877 if (perf_evlist__create_maps(evsel_list, &target) < 0) { in cmd_stat()
1878 if (target__has_task(&target)) { in cmd_stat()
1882 } else if (target__has_cpu(&target)) { in cmd_stat()