| /Linux-v6.6/tools/perf/tests/shell/coresight/thread_loop/ |
| D | thread_loop.c | 13 #ifndef SYS_gettid 15 # define SYS_gettid 178 macro 17 #define gettid() syscall(SYS_gettid)
|
| /Linux-v6.6/tools/testing/selftests/bpf/prog_tests/ |
| D | cgrp_local_storage.c | 49 skel->bss->target_pid = syscall(SYS_gettid); in test_tp_btf() 55 syscall(SYS_gettid); in test_tp_btf() 56 syscall(SYS_gettid); in test_tp_btf() 138 syscall(SYS_gettid); in test_recursion() 205 skel->bss->target_pid = syscall(SYS_gettid); in test_yes_rcu_lock()
|
| D | task_local_storage.c | 26 skel->bss->target_pid = syscall(SYS_gettid); in test_sys_enter_exit() 32 syscall(SYS_gettid); in test_sys_enter_exit() 33 syscall(SYS_gettid); in test_sys_enter_exit() 102 syscall(SYS_gettid); in test_recursion()
|
| D | rcu_read_lock.c | 24 skel->bss->target_pid = syscall(SYS_gettid); in test_success() 57 skel->bss->target_pid = syscall(SYS_gettid); in test_rcuptr_acquire()
|
| D | linked_funcs.c | 23 skel->rodata->my_tid = syscall(SYS_gettid); in test_linked_funcs()
|
| D | ns_current_pid_tgid.c | 31 pid = syscall(SYS_gettid); in test_current_pid_tgid()
|
| D | bpf_cookie.c | 584 skel->bss->my_tid = syscall(SYS_gettid); in test_bpf_cookie()
|
| D | core_reloc.c | 1012 my_pid_tgid = getpid() | ((uint64_t)syscall(SYS_gettid) << 32); in run_core_reloc_tests()
|
| /Linux-v6.6/tools/testing/selftests/powerpc/ptrace/ |
| D | ptrace-syscall.c | 77 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-v6.6/tools/testing/selftests/pidfd/ |
| D | pidfd_test.c | 385 getpid(), syscall(SYS_gettid)); in test_pidfd_poll_exec_thread() 391 getpid(), syscall(SYS_gettid)); in test_pidfd_poll_exec_thread() 431 syscall(SYS_gettid)); in child_poll_exec_test() 484 getpid(), syscall(SYS_gettid)); in test_pidfd_poll_leader_exit_thread() 486 ksft_print_msg("Child Thread: DONE. pid %d tid %d\n", getpid(), syscall(SYS_gettid)); in test_pidfd_poll_leader_exit_thread() 495 ksft_print_msg("Child: starting. pid %d tid %d\n", getpid(), syscall(SYS_gettid)); in child_poll_leader_exit_test()
|
| /Linux-v6.6/tools/testing/selftests/x86/ |
| D | ptrace_syscall.c | 186 pid_t pid = getpid(), tid = syscall(SYS_gettid); in test_ptrace_syscall_restart() 191 syscall(SYS_gettid, 10, 11, 12, 13, 14, 15); in test_ptrace_syscall_restart() 211 if (regs.user_syscall_nr != SYS_gettid || in test_ptrace_syscall_restart() 242 if (regs.user_syscall_nr != SYS_gettid || in test_ptrace_syscall_restart() 306 pid_t pid = getpid(), tid = syscall(SYS_gettid); in test_restart_under_ptrace()
|
| D | fsgsbase_restore.c | 131 pid_t pid = getpid(), tid = syscall(SYS_gettid); in tracee_zap_segment() 165 pid_t pid = getpid(), tid = syscall(SYS_gettid); in main()
|
| /Linux-v6.6/tools/perf/tests/ |
| D | sigtrap.c | 119 __atomic_fetch_sub(&ctx.tids_want_signal, syscall(SYS_gettid), __ATOMIC_RELAXED); in sigtrap_handler() 125 pid_t tid = syscall(SYS_gettid); in test_thread()
|
| D | mmap-thread-lookup.c | 48 td->tid = syscall(SYS_gettid); in thread_init()
|
| /Linux-v6.6/tools/testing/selftests/proc/ |
| D | proc.h | 19 return syscall(SYS_gettid); in sys_gettid()
|
| /Linux-v6.6/tools/testing/selftests/kvm/lib/ |
| D | assert.c | 66 return syscall(SYS_gettid); in _gettid()
|
| D | test_util.c | 355 sprintf(path, "/proc/%ld/schedstat", syscall(SYS_gettid)); in get_run_delay()
|
| /Linux-v6.6/tools/testing/selftests/bpf/map_tests/ |
| D | task_storage_map.c | 118 syscall(SYS_gettid); in test_task_storage_map_stress_lookup()
|
| /Linux-v6.6/tools/testing/selftests/kvm/ |
| D | rseq_test.c | 214 (void *)(unsigned long)syscall(SYS_gettid)); in main()
|
| /Linux-v6.6/tools/testing/selftests/powerpc/include/ |
| D | utils.h | 81 return syscall(SYS_gettid); in gettid()
|
| /Linux-v6.6/tools/testing/selftests/sched/ |
| D | cs_prctl_test.c | 39 return syscall(SYS_gettid); in gettid()
|
| /Linux-v6.6/Documentation/fault-injection/ |
| D | fault-injection.rst | 514 sprintf(buf, "/proc/self/task/%ld/fail-nth", syscall(SYS_gettid));
|