Home
last modified time | relevance | path

Searched refs:uid (Results 1 – 25 of 53) sorted by relevance

123

/tools/testing/selftests/bpf/progs/
Dbpf_iter_tcp4.c76 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()
Dbpf_iter_tcp6.c76 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()
Dbpf_iter.h78 uid_t uid; member
89 uid_t uid __attribute__((aligned(8))); member
Dbpf_iter_udp4.c65 0, 0L, 0, ctx->uid, 0, in dump_udp4()
Dbpf_iter_udp6.c73 0, 0L, 0, ctx->uid, 0, in dump_udp6()
/tools/perf/util/
Dthread_map.h16 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);
Dtarget.c75 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()
Dthread_map.c74 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 …]
Dtarget.h13 uid_t uid; member
/tools/testing/selftests/safesetid/
Dsafesetid-test.sh11 uid=$(id -u)
12 if [ $uid -ne 0 ]; then
Dsafesetid-test.c95 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/
Drun_test_fpu.sh6 uid=$(id -u)
7 if [ $uid -ne 0 ]; then
/tools/testing/selftests/clone3/
Dclone3.c129 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()
Dclone3_set_tid.c154 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/
Dion_test.sh28 uid=$(id -u)
29 if [ $uid -ne 0 ]; then
/tools/testing/selftests/vm/
Dtest_hmm.sh23 uid=$(id -u)
24 if [ $uid -ne 0 ]; then
Dtest_vmalloc.sh31 uid=$(id -u)
32 if [ $uid -ne 0 ]; then
/tools/testing/selftests/capabilities/
Dtest_execve.c220 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/
Dpidfd_getfd_test.c176 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/
Dfw_lib.sh37 local uid=$(id -u)
38 if [ $uid -ne 0 ]; then
/tools/testing/selftests/livepatch/
Dfunctions.sh29 uid=$(id -u)
30 if [ $uid -ne 0 ]; then
/tools/testing/selftests/mount/
Dunprivileged-remount-test.c156 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()
Dnosymfollow-test.c96 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/
Dzram_lib.sh25 local uid=$(id -u)
27 if [ $uid -ne 0 ]; then
/tools/testing/selftests/tc-testing/plugin-lib/
DREADME-PLUGINS18 Check if the uid is root. If not, bail out.

123