Lines Matching refs:target
99 static struct target target = { variable
164 if (target__has_cpu(&target)) in create_perf_stat_counter()
167 if (!target__has_task(&target) && perf_evsel__is_group_leader(evsel)) { in create_perf_stat_counter()
294 if (perf_evlist__prepare_workload(evsel_list, &target, argv, false, in __run_perf_stat()
324 perf_evsel__open_strerror(counter, &target, in __run_perf_stat()
808 if (target.system_wide) in print_header()
810 else if (target.cpu_list) in print_header()
811 fprintf(output, "\'CPU(s) %s", target.cpu_list); in print_header()
812 else if (!target__has_task(&target)) { in print_header()
816 } else if (target.pid) in print_header()
817 fprintf(output, "process id \'%s", target.pid); in print_header()
819 fprintf(output, "thread id \'%s", target.tid); in print_header()
943 OPT_STRING('p', "pid", &target.pid, "pid",
945 OPT_STRING('t', "tid", &target.tid, "tid",
947 OPT_BOOLEAN('a', "all-cpus", &target.system_wide,
965 OPT_STRING('C', "cpu", &target.cpu_list, "cpu",
1321 if (!argc && target__none(&target)) in cmd_stat()
1333 if ((stat_config.aggr_mode == AGGR_THREAD) && !target__has_task(&target)) { in cmd_stat()
1347 !target__has_cpu(&target)) { in cmd_stat()
1360 target__validate(&target); in cmd_stat()
1362 if (perf_evlist__create_maps(evsel_list, &target) < 0) { in cmd_stat()
1363 if (target__has_task(&target)) { in cmd_stat()
1367 } else if (target__has_cpu(&target)) { in cmd_stat()