Home
last modified time | relevance | path

Searched refs:SYS_gettid (Results 1 – 15 of 15) sorted by relevance

/linux/tools/perf/tests/shell/coresight/thread_loop/
H A Dthread_loop.c13 #ifndef SYS_gettid
15 # define SYS_gettid 178 macro
17 #define gettid() syscall(SYS_gettid)
/linux/tools/testing/selftests/powerpc/ptrace/
H A Dptrace-syscall.c77 pid_t pid = getpid(), tid = syscall(SYS_gettid); in test_ptrace_syscall_restart()
82 syscall(SYS_gettid, 10, 11, 12, 13, 14, 15); in test_ptrace_syscall_restart()
103 if (regs.user_syscall_nr != SYS_gettid || in test_ptrace_syscall_restart()
137 if (regs.user_syscall_nr != SYS_gettid || in test_ptrace_syscall_restart()
/linux/tools/testing/selftests/pidfd/
H A Dpidfd_test.c437 getpid(), syscall(SYS_gettid)); in test_pidfd_poll_exec_thread()
443 getpid(), syscall(SYS_gettid)); in test_pidfd_poll_exec_thread()
483 syscall(SYS_gettid)); in child_poll_exec_test()
536 getpid(), syscall(SYS_gettid)); in test_pidfd_poll_leader_exit_thread()
538 ksft_print_msg("Child Thread: DONE. pid %d tid %ld\n", getpid(), syscall(SYS_gettid)); in test_pidfd_poll_leader_exit_thread()
547 ksft_print_msg("Child: starting. pid %d tid %ld\n", getpid(), syscall(SYS_gettid)); in child_poll_leader_exit_test()
/linux/tools/testing/selftests/x86/
H A Dfsgsbase_restore.c130 pid_t pid = getpid(), tid = syscall(SYS_gettid); in tracee_zap_segment()
164 pid_t pid = getpid(), tid = syscall(SYS_gettid); in main()
/linux/tools/testing/selftests/proc/
H A Dproc.h19 return syscall(SYS_gettid); in sys_gettid()
/linux/tools/testing/selftests/kvm/lib/
H A Dassert.c69 return syscall(SYS_gettid); in _gettid()
H A Dtest_util.c380 sprintf(path, "/proc/%ld/schedstat", syscall(SYS_gettid)); in get_run_delay()
/linux/tools/testing/selftests/bpf/
H A Dbpf_util.h86 #define sys_gettid() syscall(SYS_gettid)
/linux/tools/testing/selftests/kvm/
H A Drseq_test.c247 (void *)(unsigned long)syscall(SYS_gettid)); in main()
/linux/tools/perf/tests/
H A Dmmap-thread-lookup.c49 td->tid = syscall(SYS_gettid); in thread_init()
/linux/tools/testing/selftests/net/tcp_ao/lib/
H A Daolib.h97 syscall(SYS_gettid), \
121 syscall(SYS_gettid), __FILE__, __LINE__, \
125 syscall(SYS_gettid), __FILE__, __LINE__, \
/linux/tools/testing/selftests/powerpc/include/
H A Dutils.h81 return syscall(SYS_gettid); in gettid()
/linux/tools/testing/selftests/sched/
H A Dcs_prctl_test.c39 return syscall(SYS_gettid); in gettid()
/linux/tools/testing/selftests/mm/
H A Dpkey_sighandler_tests.c148 tid = syscall_raw(SYS_gettid, 0, 0, 0, 0, 0, 0); in raise_sigusr2()
H A Duffd-unit-tests.c1348 *pid = syscall(SYS_gettid); in uffd_mmap_changing_thread()