/drivers/peripheral/camera/hal_c/hdi_cif/include/ |
H A D | camera.h | 32 #define gettid() (pid_t)syscall(SYS_gettid) macro 49 pid_t tid = gettid(); \ 58 pid_t tid = gettid(); \ 67 pid_t tid = gettid(); \ 76 pid_t tid = gettid(); \ 85 pid_t tid = gettid(); \
|
/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()
|
/kernel/linux/linux-6.6/tools/tracing/rtla/src/ |
H A D | timerlat_u.c | 46 retval = sched_setaffinity(gettid(), sizeof(set), &set); in timerlat_u_main() 67 retval = set_pid_cgroup(gettid(), params->cgroup_name); in timerlat_u_main() 86 debug_msg("User-space timerlat pid %d on cpu %d\n", gettid(), cpu); in timerlat_u_main() 97 debug_msg("Leaving timerlat pid %d on cpu %d\n", gettid(), cpu); in timerlat_u_main()
|
/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()
|
/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()
|
/kernel/linux/linux-6.6/tools/testing/selftests/arm64/abi/ |
H A D | tpidr2.c | 203 if (gettid() == 0) in write_clone_read() 205 set_tpidr2(gettid()); in write_clone_read() 206 if (get_tpidr2() == gettid()) { in write_clone_read()
|
/kernel/linux/linux-6.6/tools/testing/selftests/powerpc/dscr/ |
H A D | dscr_explicit_test.c | 35 srand(gettid()); in dscr_explicit_lockstep_thread() 62 srand(gettid()); in dscr_explicit_lockstep_test() 101 srand(gettid()); in dscr_explicit_random_thread()
|
/kernel/linux/linux-6.6/tools/perf/tests/shell/coresight/thread_loop/ |
H A D | thread_loop.c | 4 // define this for gettid() 14 // gettid is 178 on arm64 17 #define gettid() syscall(SYS_gettid) macro 31 unsigned long long tid = gettid(); in thrfn()
|
/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()
|
/kernel/linux/linux-5.10/tools/build/feature/ |
H A D | test-gettid.c | 8 return gettid(); in main()
|
/kernel/linux/linux-6.6/tools/build/feature/ |
H A D | test-gettid.c | 8 return gettid(); in main()
|
/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/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/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/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()
|
/kernel/linux/build/test/unittest/accesstokenid/ |
H A D | accesstokenid_test.cpp | 175 tinfo->tid = gettid(); in CheckChildThreadInheritance() 192 tinfo->tid = gettid(); in CheckChildThreadSetIndepent() 293 tinfo.tid = gettid(); in HWTEST_F() 335 tinfo.tid = gettid(); in HWTEST_F()
|
/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()
|