Home
last modified time | relevance | path

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

/tools/perf/util/
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.h24 struct thread_map *thread_map__new_by_uid(uid_t uid);
25 struct thread_map *thread_map__new(pid_t pid, pid_t tid, uid_t uid);
32 const char *tid, uid_t uid);
Dthread_map.c92 struct thread_map *thread_map__new_by_uid(uid_t uid) in thread_map__new_by_uid() argument
124 if (st.st_uid != uid) in thread_map__new_by_uid()
178 struct thread_map *thread_map__new(pid_t pid, pid_t tid, uid_t uid) in thread_map__new() argument
183 if (tid == -1 && uid != UINT_MAX) in thread_map__new()
184 return thread_map__new_by_uid(uid); in thread_map__new()
313 uid_t uid) in thread_map__new_str() argument
318 if (!tid && uid != UINT_MAX) in thread_map__new_str()
319 return thread_map__new_by_uid(uid); in thread_map__new_str()
Dtarget.h12 uid_t uid; member
Dpython.c570 int pid = -1, tid = -1, uid = UINT_MAX; in pyrf_thread_map__init() local
573 kwlist, &pid, &tid, &uid)) in pyrf_thread_map__init()
576 pthreads->threads = thread_map__new(pid, tid, uid); in pyrf_thread_map__init()
Devlist.c1333 threads = thread_map__new_str(target->pid, target->tid, target->uid); in perf_evlist__create_maps()
/tools/testing/selftests/capabilities/
Dtest_execve.c206 static int do_tests(int uid, const char *our_path) in do_tests() argument
208 bool have_outer_privilege = create_and_enter_ns(uid); in do_tests()
230 if (chown("validate_cap_suidnonroot", uid + 1, -1) != 0) in do_tests()
257 if (uid == 0) { in do_tests()
329 if (uid == 0) { in do_tests()
342 printf("[RUN]\tUID %d +ia => eipa\n", uid); in do_tests()
353 if (uid == 0) { in do_tests()
/tools/testing/selftests/zram/
Dzram_lib.sh26 local uid=$(id -u)
28 if [ $uid -ne 0 ]; then
/tools/testing/selftests/mount/
Dunprivileged-remount-test.c155 uid_t uid; in create_and_enter_userns() local
158 uid = getuid(); in create_and_enter_userns()
167 write_file("/proc/self/uid_map", "0 %d 1", uid); in create_and_enter_userns()
/tools/perf/tests/
Dtask-exit.c41 .uid = UINT_MAX, in test__task_exit()
Dopenat-syscall-tp-fields.c20 .uid = UINT_MAX, in test__syscall_openat_tp_fields()
Dbackward-ring-buffer.c86 .uid = UINT_MAX, in test__backward_ring_buffer()
Devent-times.c15 .uid = UINT_MAX, in attach__enable_on_exec()
Dbpf.c94 .uid = UINT_MAX, in do_test()
Dperf-record.c42 .uid = UINT_MAX, in test__PERF_RECORD()
/tools/perf/Documentation/
Dperf-trace.txt55 --uid=::
56 Record events in threads owned by uid. Name or number.
Dperf-top.txt83 --uid=::
84 Record events in threads owned by uid. Name or number.
Dperf-record.txt170 --uid=::
171 Record events in threads owned by uid. Name or number.
/tools/perf/
Dbuiltin-kvm.c1360 kvm->opts.target.uid = UINT_MAX; in kvm_events_live()
Dbuiltin-stat.c118 .uid = UINT_MAX,
Dbuiltin-trace.c2775 .uid = UINT_MAX, in cmd_trace()