Home
last modified time | relevance | path

Searched refs:gettid (Results 1 - 25 of 45) sorted by relevance

12

/third_party/musl/libc-test/src/functionalext/supplement/linux/
H A Dgetprocpid.c105 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 Dtestpi-2.c73 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 Dtestpi-4.c72 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 Dtestpi-1.c71 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 Did.rs4 /// `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 Dmod.rs31 pub use id::gettid;
/third_party/rust/crates/rustix/tests/thread/
H A Did.rs6 assert_eq!(thread::gettid(), thread::gettid()); in test_gettid()
H A Dprctl.rs97 match core_scheduling_cookie(rustix::thread::gettid(), CoreSchedulingScope::Thread) { in test_core_scheduling_cookie()
/third_party/musl/libc-test/src/functional/
H A Dpthread_gettid_np.c12 *((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 Dfanotify11.c36 #define gettid() syscall(SYS_gettid) macro
45 tid = gettid(); in thread_create_file()
/third_party/ltp/testcases/realtime/stress/pi-tests/
H A Dtestpi-3.c67 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 Dsyscalls.rs276 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 Dnfs05_make_tree.c54 #define gettid() syscall(__NR_gettid) macro
132 pid_t tid = gettid(); in thread_fn()
/third_party/musl/src/linux/
H A Dgettid.c9 pid_t gettid(void) in gettid() function
/third_party/musl/libc-test/src/functionalext/supplement/misc/
H A Dsetpriority.c27 int result = setpriority(PRIO_PROCESS, gettid(), 1); in setpriority_0100()
/third_party/musl/libc-test/src/functionalext/supplement/linux/linux_gtest/
H A Dlinux_gettid_test.cpp14 * @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 DOboeTesterStreamCallback.cpp28 int scheduler = sched_getscheduler(gettid()); in printScheduler()
/third_party/skia/third_party/externals/swiftshader/src/Common/
H A DDebugAndroid.cpp32 ALOGE("Waiting for debugger: gdbserver :${PORT} --attach %u. Look for thread %u", getpid(), gettid()); in AndroidEnterDebugger()
/third_party/eudev/src/shared/
H A Drandom-util.c105 x ^= (unsigned) gettid(); in initialize_srand()
H A Dmissing.h110 static inline pid_t gettid(void) { in gettid() function
/third_party/ltp/testcases/realtime/func/rt-migrate/
H A Drt-migrate.c73 #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 DDefaultAudioStreamCallback.h112 pid_t current_thread_id = gettid(); in setThreadAffinity()
/third_party/mesa3d/src/gallium/winsys/svga/drm/
H A Dvmw_screen_svga.c276 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 Dlibc_hilog.cpp146 header.tid = (uint32_t)(gettid()); in HiLogAdapterPrintArgs1()
/third_party/musl/libc-test/src/functionalext/supplement/thread/thread_gtest/
H A Dthread_pthrd_test.cpp521 arg->tid = gettid(); in ThreadGettidNpFn()
534 EXPECT_EQ(gettid(), pthread_gettid_np(pthread_self())); in HWTEST_F()

Completed in 9 milliseconds

12