Lines Matching +full:mutually +full:- +full:exclusive
1 // SPDX-License-Identifier: GPL-2.0-only
21 if (target->pid) in target__validate()
22 target->tid = target->pid; in target__validate()
24 /* CPU and PID are mutually exclusive */ in target__validate()
25 if (target->tid && target->cpu_list) { in target__validate()
26 target->cpu_list = NULL; in target__validate()
31 /* UID and PID are mutually exclusive */ in target__validate()
32 if (target->tid && target->uid_str) { in target__validate()
33 target->uid_str = NULL; in target__validate()
38 /* UID and CPU are mutually exclusive */ in target__validate()
39 if (target->uid_str && target->cpu_list) { in target__validate()
40 target->cpu_list = NULL; in target__validate()
45 /* PID and SYSTEM are mutually exclusive */ in target__validate()
46 if (target->tid && target->system_wide) { in target__validate()
47 target->system_wide = false; in target__validate()
52 /* UID and SYSTEM are mutually exclusive */ in target__validate()
53 if (target->uid_str && target->system_wide) { in target__validate()
54 target->system_wide = false; in target__validate()
59 /* BPF and CPU are mutually exclusive */ in target__validate()
60 if (target->bpf_str && target->cpu_list) { in target__validate()
61 target->cpu_list = NULL; in target__validate()
66 /* BPF and PID/TID are mutually exclusive */ in target__validate()
67 if (target->bpf_str && target->tid) { in target__validate()
68 target->tid = NULL; in target__validate()
73 /* BPF and UID are mutually exclusive */ in target__validate()
74 if (target->bpf_str && target->uid_str) { in target__validate()
75 target->uid_str = NULL; in target__validate()
80 /* BPF and THREADS are mutually exclusive */ in target__validate()
81 if (target->bpf_str && target->per_thread) { in target__validate()
82 target->per_thread = false; in target__validate()
87 /* THREAD and SYSTEM/CPU are mutually exclusive */ 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()
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()
139 "SYSTEM/CPU switch overriding PER-THREAD",
162 return -1; in target__strerror()
164 idx = errnum - __TARGET_ERRNO__START; in target__strerror()
175 snprintf(buf, buflen, msg, target->uid_str); in target__strerror()