Lines Matching refs:target
17 enum target_errno target__validate(struct target *target) in target__validate() argument
21 if (target->pid) in target__validate()
22 target->tid = target->pid; in target__validate()
25 if (target->tid && target->cpu_list) { in target__validate()
26 target->cpu_list = NULL; in target__validate()
32 if (target->tid && target->uid_str) { in target__validate()
33 target->uid_str = NULL; in target__validate()
39 if (target->uid_str && target->cpu_list) { in target__validate()
40 target->cpu_list = NULL; in target__validate()
46 if (target->tid && target->system_wide) { in target__validate()
47 target->system_wide = false; in target__validate()
53 if (target->uid_str && target->system_wide) { in target__validate()
54 target->system_wide = false; in target__validate()
60 if (target->bpf_str && target->cpu_list) { in target__validate()
61 target->cpu_list = NULL; in target__validate()
67 if (target->bpf_str && target->tid) { in target__validate()
68 target->tid = NULL; in target__validate()
74 if (target->bpf_str && target->uid_str) { in target__validate()
75 target->uid_str = NULL; in target__validate()
81 if (target->bpf_str && target->per_thread) { in target__validate()
82 target->per_thread = false; in target__validate()
88 if (target->per_thread && (target->system_wide || target->cpu_list)) { in target__validate()
89 target->per_thread = false; in target__validate()
97 enum target_errno target__parse_uid(struct target *target) in target__parse_uid() argument
101 const char *str = target->uid_str; in target__parse_uid()
103 target->uid = UINT_MAX; in target__parse_uid()
126 target->uid = result->pw_uid; in target__parse_uid()
148 int target__strerror(struct target *target, int errnum, in target__strerror() argument
175 snprintf(buf, buflen, msg, target->uid_str); in target__strerror()