/third_party/musl/libc-test/src/functionalext/supplement/linux/ |
H A D | getprocpid.c | 105 pid_t pid2 = gettid(); in pthread_func() 121 EXPECT_EQ("getproctid_0100", pid1, gettid()); in getproctid_0100() 141 EXPECT_EQ("getproctid_0200", pid1, gettid()); in getproctid_0200() 146 if (pid2 != gettid()) { in getproctid_0200() 182 EXPECT_EQ("getproctid_0300", pid1, gettid()); in getproctid_0300()
|
/third_party/ltp/testcases/realtime/func/pi-tests/ |
H A D | testpi-2.c | 73 int gettid(void) in gettid() function 86 int i, tid = gettid(); in func_lowrt() 116 int i, tid = gettid(); in func_rt() 144 int i, tid = gettid(); in func_noise()
|
H A D | testpi-4.c | 72 int gettid(void) in gettid() function 85 int i, tid = gettid(); in func_nonrt() 116 int i, tid = gettid(); in func_rt() 144 int i, tid = gettid(); in func_noise()
|
H A D | testpi-1.c | 71 int gettid(void) in gettid() function 84 int i, tid = gettid(); in func_nonrt() 114 int i, tid = gettid(); in func_rt() 142 int i, tid = gettid(); in func_noise()
|
/third_party/rust/crates/rustix/src/thread/ |
H A D | id.rs | 4 /// `gettid()`—Returns the thread ID. 12 /// [Linux]: https://man7.org/linux/man-pages/man2/gettid.2.html 15 pub fn gettid() -> Pid { in gettid() functions 16 backend::thread::syscalls::gettid() in gettid()
|
H A D | mod.rs | 31 pub use id::gettid;
|
/third_party/rust/crates/rustix/tests/thread/ |
H A D | id.rs | 6 assert_eq!(thread::gettid(), thread::gettid()); in test_gettid()
|
H A D | prctl.rs | 97 match core_scheduling_cookie(rustix::thread::gettid(), CoreSchedulingScope::Thread) { in test_core_scheduling_cookie()
|
/third_party/musl/libc-test/src/functional/ |
H A D | pthread_gettid_np.c | 12 *((pid_t *)arg) = gettid();
in pthread_test() 18 TEST(gettid() == pthread_gettid_np(pthread_self()),"pthread_gettid_np() is failed\n");
in main()
|
/third_party/ltp/testcases/kernel/syscalls/fanotify/ |
H A D | fanotify11.c | 36 #define gettid() syscall(SYS_gettid) macro 45 tid = gettid(); in thread_create_file()
|
/third_party/ltp/testcases/realtime/stress/pi-tests/ |
H A D | testpi-3.c | 67 int gettid(void) in gettid() function 101 int rc, i, j, policy, tid = gettid(); in func_nonrt() 150 int rc, i, j, policy, tid = gettid(); in func_rt() 206 int rc, i, j, policy, tid = gettid(); in func_noise()
|
/third_party/rust/crates/rustix/src/backend/libc/thread/ |
H A D | syscalls.rs | 276 pub(crate) fn gettid() -> Pid { 277 // `gettid` wasn't supported in glibc until 2.30, and musl until 1.2.2, 281 fn gettid() via SYS_gettid -> c::pid_t in gettid() functions 285 let tid = gettid(); in gettid()
|
/third_party/ltp/testcases/network/nfs/nfs_stress/ |
H A D | nfs05_make_tree.c | 54 #define gettid() syscall(__NR_gettid) macro 132 pid_t tid = gettid(); in thread_fn()
|
/third_party/musl/src/linux/ |
H A D | gettid.c | 9 pid_t gettid(void) in gettid() function
|
/third_party/musl/libc-test/src/functionalext/supplement/misc/ |
H A D | setpriority.c | 27 int result = setpriority(PRIO_PROCESS, gettid(), 1); in setpriority_0100()
|
/third_party/musl/libc-test/src/functionalext/supplement/linux/linux_gtest/ |
H A D | linux_gettid_test.cpp | 14 * @tc.desc: This test verifies whether the thread ID returned by the gettid function is greater than 0 to ensure that 20 pid_t tid = gettid(); in HWTEST_F()
|
/third_party/skia/third_party/externals/oboe/apps/OboeTester/app/src/main/cpp/ |
H A D | OboeTesterStreamCallback.cpp | 28 int scheduler = sched_getscheduler(gettid()); in printScheduler()
|
/third_party/skia/third_party/externals/swiftshader/src/Common/ |
H A D | DebugAndroid.cpp | 32 ALOGE("Waiting for debugger: gdbserver :${PORT} --attach %u. Look for thread %u", getpid(), gettid()); in AndroidEnterDebugger()
|
/third_party/eudev/src/shared/ |
H A D | random-util.c | 105 x ^= (unsigned) gettid(); in initialize_srand()
|
H A D | missing.h | 110 static inline pid_t gettid(void) { in gettid() function
|
/third_party/ltp/testcases/realtime/func/rt-migrate/ |
H A D | rt-migrate.c | 73 #define gettid() syscall(__NR_gettid) macro 316 thread_pids[id] = gettid(); in start_task() 330 pid = gettid(); in start_task()
|
/third_party/skia/third_party/externals/oboe/samples/shared/ |
H A D | DefaultAudioStreamCallback.h | 112 pid_t current_thread_id = gettid(); in setThreadAffinity()
|
/third_party/mesa3d/src/gallium/winsys/svga/drm/ |
H A D | vmw_screen_svga.c | 276 snprintf(desc, sizeof(desc) - 1, "vmw_winsys_screen=%p pid=%d", vws, gettid()); in vmw_svga_winsys_add_stats() 311 const pid_t pid = gettid(); in vmw_winsys_screen_mksstat_acq_slot() 354 __atomic_store_n(&vws->mksstat_tls[slot].pid, gettid(), __ATOMIC_RELEASE); in vmw_winsys_screen_mksstat_rel_slot() 826 uint32_t expected = gettid(); in vmw_svga_winsys_stats_time_pop()
|
/third_party/musl/Benchmark/musl/ |
H A D | libc_hilog.cpp | 146 header.tid = (uint32_t)(gettid()); in HiLogAdapterPrintArgs1()
|
/third_party/musl/libc-test/src/functionalext/supplement/thread/thread_gtest/ |
H A D | thread_pthrd_test.cpp | 521 arg->tid = gettid(); in ThreadGettidNpFn() 534 EXPECT_EQ(gettid(), pthread_gettid_np(pthread_self())); in HWTEST_F()
|