/tools/testing/selftests/bpf/progs/ |
D | bpf_iter_tcp4.c | 76 uid_t uid, __u32 seq_num) in dump_tcp_sock() argument 131 icsk->icsk_retransmits, uid, in dump_tcp_sock() 149 uid_t uid, __u32 seq_num) in dump_tw_sock() argument 174 uid_t uid, __u32 seq_num) in dump_req_sock() argument 191 req->num_timeout, uid, 0, 0, 0, req); in dump_req_sock() 204 uid_t uid = ctx->uid; in dump_tcp4() local 223 return dump_tcp_sock(seq, tp, uid, seq_num); in dump_tcp4() 227 return dump_tw_sock(seq, tw, uid, seq_num); in dump_tcp4() 231 return dump_req_sock(seq, req, uid, seq_num); in dump_tcp4()
|
D | bpf_iter_tcp6.c | 76 uid_t uid, __u32 seq_num) in dump_tcp6_sock() argument 135 icsk->icsk_retransmits, uid, in dump_tcp6_sock() 154 uid_t uid, __u32 seq_num) in dump_tw_sock() argument 183 uid_t uid, __u32 seq_num) in dump_req_sock() argument 207 req->num_timeout, uid, 0, 0, 0, req); in dump_req_sock() 220 uid_t uid = ctx->uid; in dump_tcp6() local 239 return dump_tcp6_sock(seq, tp, uid, seq_num); in dump_tcp6() 243 return dump_tw_sock(seq, tw, uid, seq_num); in dump_tcp6() 247 return dump_req_sock(seq, req, uid, seq_num); in dump_tcp6()
|
D | bpf_iter.h | 78 uid_t uid; member 89 uid_t uid __attribute__((aligned(8))); member
|
D | bpf_iter_udp4.c | 65 0, 0L, 0, ctx->uid, 0, in dump_udp4()
|
D | bpf_iter_udp6.c | 73 0, 0L, 0, ctx->uid, 0, in dump_udp6()
|
/tools/perf/util/ |
D | thread_map.h | 16 struct perf_thread_map *thread_map__new_by_uid(uid_t uid); 18 struct perf_thread_map *thread_map__new(pid_t pid, pid_t tid, uid_t uid); 22 const char *tid, uid_t uid, bool all_threads);
|
D | target.c | 75 target->uid = UINT_MAX; in target__parse_uid() 87 int uid = strtol(str, &endptr, 10); in target__parse_uid() local 92 getpwuid_r(uid, &pwd, buf, sizeof(buf), &result); in target__parse_uid() 98 target->uid = result->pw_uid; in target__parse_uid()
|
D | thread_map.c | 74 static struct perf_thread_map *__thread_map__new_all_cpus(uid_t uid) in __thread_map__new_all_cpus() argument 102 if (uid != UINT_MAX) { in __thread_map__new_all_cpus() 105 if (stat(path, &st) != 0 || st.st_uid != uid) in __thread_map__new_all_cpus() 165 struct perf_thread_map *thread_map__new_by_uid(uid_t uid) in thread_map__new_by_uid() argument 167 return __thread_map__new_all_cpus(uid); in thread_map__new_by_uid() 170 struct perf_thread_map *thread_map__new(pid_t pid, pid_t tid, uid_t uid) in thread_map__new() argument 175 if (tid == -1 && uid != UINT_MAX) in thread_map__new() 176 return thread_map__new_by_uid(uid); in thread_map__new() 293 uid_t uid, bool all_threads) in thread_map__new_str() argument 298 if (!tid && uid != UINT_MAX) in thread_map__new_str() [all …]
|
D | target.h | 13 uid_t uid; member
|
/tools/testing/selftests/safesetid/ |
D | safesetid-test.sh | 11 uid=$(id -u) 12 if [ $uid -ne 0 ]; then
|
D | safesetid-test.c | 95 static void ensure_user_exists(uid_t uid) in ensure_user_exists() argument 102 if (getpwuid(uid) == NULL) { in ensure_user_exists() 109 snprintf(name_str, 10, "%d", uid); in ensure_user_exists() 111 p.pw_uid=uid; in ensure_user_exists() 173 uid_t uid; in test_userns() local 179 uid = getuid(); in test_userns() 197 success = write_file(map_file_name, "0 0 1", uid); in test_userns()
|
/tools/testing/selftests/fpu/ |
D | run_test_fpu.sh | 6 uid=$(id -u) 7 if [ $uid -ne 0 ]; then
|
/tools/testing/selftests/clone3/ |
D | clone3.c | 129 uid_t uid = getuid(); in main() local 139 if (uid == 0) in main() 177 if (uid == 0) in main() 188 if (uid == 0) in main()
|
D | clone3_set_tid.c | 154 uid_t uid = getuid(); in main() local 220 if (uid == 0) in main() 227 if (uid == 0) in main() 233 if (uid == 0) in main() 242 if (uid == 0) in main() 247 if (uid != 0) { in main()
|
/tools/testing/selftests/android/ion/ |
D | ion_test.sh | 28 uid=$(id -u) 29 if [ $uid -ne 0 ]; then
|
/tools/testing/selftests/vm/ |
D | test_hmm.sh | 23 uid=$(id -u) 24 if [ $uid -ne 0 ]; then
|
D | test_vmalloc.sh | 31 uid=$(id -u) 32 if [ $uid -ne 0 ]; then
|
/tools/testing/selftests/capabilities/ |
D | test_execve.c | 220 static int do_tests(int uid, const char *our_path) in do_tests() argument 222 bool have_outer_privilege = create_and_enter_ns(uid); in do_tests() 245 if (chown("validate_cap_suidnonroot", uid + 1, -1) != 0) in do_tests() 272 if (uid == 0) { in do_tests() 353 if (uid == 0) { in do_tests() 367 ksft_print_msg("[RUN]\tUID %d +ia => eipa\n", uid); in do_tests() 378 if (uid == 0) { in do_tests()
|
/tools/testing/selftests/pidfd/ |
D | pidfd_getfd_test.c | 176 int uid, fd; in TEST_F() local 185 uid = getuid(); in TEST_F() 186 if (uid == 0) in TEST_F() 196 if (uid == 0) in TEST_F()
|
/tools/testing/selftests/firmware/ |
D | fw_lib.sh | 37 local uid=$(id -u) 38 if [ $uid -ne 0 ]; then
|
/tools/testing/selftests/livepatch/ |
D | functions.sh | 29 uid=$(id -u) 30 if [ $uid -ne 0 ]; then
|
/tools/testing/selftests/mount/ |
D | unprivileged-remount-test.c | 156 uid_t uid; in create_and_enter_userns() local 159 uid = getuid(); in create_and_enter_userns() 168 write_file("/proc/self/uid_map", "0 %d 1", uid); in create_and_enter_userns()
|
D | nosymfollow-test.c | 96 uid_t uid = getuid(); in create_and_enter_ns() local 103 write_file("/proc/self/uid_map", "0 %d 1", uid); in create_and_enter_ns()
|
/tools/testing/selftests/zram/ |
D | zram_lib.sh | 25 local uid=$(id -u) 27 if [ $uid -ne 0 ]; then
|
/tools/testing/selftests/tc-testing/plugin-lib/ |
D | README-PLUGINS | 18 Check if the uid is root. If not, bail out.
|