Lines Matching refs:target
16 enum perf_target_errno perf_target__validate(struct perf_target *target) in perf_target__validate() argument
20 if (target->pid) in perf_target__validate()
21 target->tid = target->pid; in perf_target__validate()
24 if (target->tid && target->cpu_list) { in perf_target__validate()
25 target->cpu_list = NULL; in perf_target__validate()
31 if (target->tid && target->uid_str) { in perf_target__validate()
32 target->uid_str = NULL; in perf_target__validate()
38 if (target->uid_str && target->cpu_list) { in perf_target__validate()
39 target->cpu_list = NULL; in perf_target__validate()
45 if (target->tid && target->system_wide) { in perf_target__validate()
46 target->system_wide = false; in perf_target__validate()
52 if (target->uid_str && target->system_wide) { in perf_target__validate()
53 target->system_wide = false; in perf_target__validate()
61 enum perf_target_errno perf_target__parse_uid(struct perf_target *target) in perf_target__parse_uid() argument
65 const char *str = target->uid_str; in perf_target__parse_uid()
67 target->uid = UINT_MAX; in perf_target__parse_uid()
90 target->uid = result->pw_uid; in perf_target__parse_uid()
107 int perf_target__strerror(struct perf_target *target, int errnum, in perf_target__strerror() argument
142 snprintf(buf, buflen, msg, target->uid_str); in perf_target__strerror()