/foundation/resourceschedule/ffrt/test/ut/testcase/ |
H A D | ut_rtg.cpp | 61 int tgid = RTGCtrl::Instance().GetThreadGroup(); in HWTEST_F() local 62 if (tgid < 0) { in HWTEST_F() 63 FFRT_LOGE("Failed to Get RTG id %d", tgid); in HWTEST_F() 66 bool ret = RTGCtrl::Instance().PutThreadGroup(tgid); in HWTEST_F() 68 FFRT_LOGE("Failed to Put RTG id %d", tgid); in HWTEST_F() 76 int tgid = RTGCtrl::Instance().GetThreadGroup(); in HWTEST_F() local 77 if (tgid < 0) { in HWTEST_F() 78 FFRT_LOGE("Failed to Get RTG id %d", tgid); in HWTEST_F() 81 bool ret = RTGCtrl::Instance().SetGroupWindowSize(tgid, WINDOW_SIZE); in HWTEST_F() 86 ret = RTGCtrl::Instance().PutThreadGroup(tgid); in HWTEST_F() 96 int tgid = RTGCtrl::Instance().GetThreadGroup(); HWTEST_F() local 116 int tgid = RTGCtrl::Instance().GetThreadGroup(); HWTEST_F() local 134 int tgid = RTGCtrl::Instance().GetThreadGroup(); HWTEST_F() local 159 int tgid = RTGCtrl::Instance().GetThreadGroup(); HWTEST_F() local 227 int tgid = RTGCtrl::Instance().GetThreadGroup(); HWTEST_F() local [all...] |
/foundation/resourceschedule/ffrt/src/eu/ |
H A D | thread_group.h | 26 return tgid; in Id() 31 return tgid >= 0 && RTGCtrl::Instance().Enabled(); in Enabled() 40 tgid = RTGCtrl::Instance().GetThreadGroup(); in Init() 41 return tgid >= 0; in Init() 50 if (!RTGCtrl::Instance().PutThreadGroup(tgid)) { in Release() 54 tgid = -1; in Release() 65 RTGCtrl::Instance().Begin(tgid); in Begin() 73 RTGCtrl::Instance().End(tgid); in End() 82 return RTGCtrl::Instance().JoinThread(tgid, RTGCtrl::GetTID()); in Join() 90 return RTGCtrl::Instance().JoinThread(tgid, ti in Join() 167 int tgid = -1; global() member in ffrt::ThreadGroup [all...] |
H A D | rtg_ioctl.cpp | 80 static RTGMsg Build(uint32_t cmd = 0, int32_t tgid = 0, int64_t data = 0) in Build() 82 return RTGMsg(cmd, tgid, data); in Build() 93 this->tgid = var; in TGid() 143 ss << " tgid: " << tgid; in Format() local 155 RTGMsg(uint32_t cmd, int32_t tgid, int64_t data) in RTGMsg() argument 156 : cmd(cmd), tgid(tgid), data(data), in_size(0), out_size(0), in(nullptr), out(nullptr) in RTGMsg() 161 int32_t tgid; member in ffrt::RTGCtrl::RTGMsg 198 int tgid in GetThreadGroup() local 204 PutThreadGroup(int tgid) PutThreadGroup() argument 212 JoinThread(int tgid, pid_t tid) JoinThread() argument 220 RemoveThread(int tgid, pid_t tid) RemoveThread() argument 228 UpdatePerfUtil(int tgid, int util) UpdatePerfUtil() argument 236 UpdatePerfFreq(int tgid, int64_t freq) UpdatePerfFreq() argument 244 UpdateAndGetLoad(int tgid, pid_t tid) UpdateAndGetLoad() argument 258 UpdateAndGetLoad(int tgid) UpdateAndGetLoad() argument 272 SetGroupWindowSize(int tgid, uint64_t size) SetGroupWindowSize() argument 280 SetInvalidInterval(int tgid, uint64_t interval) SetInvalidInterval() argument 288 Begin(int tgid) Begin() argument 296 End(int tgid) End() argument 304 SetPreferredCluster(int tgid, int clusterId) SetPreferredCluster() argument [all...] |
H A D | rtg_ioctl.h | 45 bool PutThreadGroup(int tgid); 46 bool JoinThread(int tgid, pid_t tid); 47 bool RemoveThread(int tgid, pid_t tid); 48 bool UpdatePerfUtil(int tgid, int util); 49 bool UpdatePerfFreq(int tgid, int64_t freq); 50 RTGLoadInfo UpdateAndGetLoad(int tgid, pid_t tid); 51 RTGLoadInfo UpdateAndGetLoad(int tgid); 52 bool SetGroupWindowSize(int tgid, uint64_t size); 53 bool SetInvalidInterval(int tgid, uint64_t interval); 55 bool Begin(int tgid); [all...] |
/third_party/musl/libc-test/src/functional/ |
H A D | tgkill.c | 12 int tgid, tid;
in main() local 13 tgid = ARGV_1;
in main() 16 if (tgkill(tgid, tid, SIGPROF) == -1 && errno != ESRCH) {
in main()
|
/third_party/musl/src/linux/ |
H A D | tgkill.c | 19 int tgkill(int tgid, int tid, int sig) in tgkill() argument 21 return syscall(__NR_tgkill, tgid, tid, sig); in tgkill()
|
/third_party/musl/porting/linux/user/src/linux/ |
H A D | tgkill.c | 19 int tgkill(int tgid, int tid, int sig) in tgkill() argument 21 return syscall(__NR_tgkill, tgid, tid, sig); in tgkill()
|
/third_party/ltp/testcases/kernel/syscalls/tgkill/ |
H A D | tgkill.h | 12 static inline int sys_tgkill(int tgid, int tid, int sig) in sys_tgkill() argument 14 return tst_syscall(__NR_tgkill, tgid, tid, sig); in sys_tgkill()
|
H A D | tgkill03.c | 80 const int *tgid; member 85 { "Invalid tgid", &invalid_pid, &parent_tid, SIGUSR1, EINVAL }, 89 { "Defunct tgid", &defunct_tid, &child_tid, SIGUSR1, ESRCH }, 97 TEST(sys_tgkill(*tc->tgid, *tc->tid, tc->sig)); in run()
|
/third_party/ltp/testcases/kernel/syscalls/rt_sigqueueinfo/ |
H A D | rt_sigqueueinfo.h | 12 static int sys_rt_sigqueueinfo(pid_t tgid, int sig, siginfo_t *uinfo) in sys_rt_sigqueueinfo() argument 14 return tst_syscall(__NR_rt_sigqueueinfo, tgid, sig, uinfo); in sys_rt_sigqueueinfo()
|
/third_party/ltp/testcases/kernel/syscalls/fanotify/ |
H A D | fanotify11.c | 62 int tgid = getpid(); in test01() local 64 tst_res(TINFO, "Test #%u: %s FAN_REPORT_TID: tgid=%d, tid=%d, event.pid=%d", in test01() 66 tgid, tid, event.pid); in test01() 84 else if (!(tcases[i] & FAN_REPORT_TID) && event.pid == tgid) in test01() 85 tst_res(TPASS, "event.pid == tgid"); in test01()
|
/third_party/ltp/testcases/kernel/syscalls/clone/ |
H A D | clone08.c | 20 static pid_t ptid, ctid, tgid; variable 149 tgid = tst_syscall(__NR_getpid); in test_clone_thread() 178 if (tgid == tst_syscall(__NR_getpid)) in child_clone_thread()
|
/third_party/musl/porting/linux/user/include/sys/ |
H A D | tgkill.h | 24 * @param tgid the group ID of the calling process. 31 int tgkill(int tgid, int tid, int sig);
|
/third_party/musl/include/sys/ |
H A D | tgkill.h | 24 * @param tgid the group ID of the calling process. 31 int tgkill(int tgid, int tid, int sig);
|
/foundation/resourceschedule/memmgr/common/include/ |
H A D | kernel_interface.h | 34 int tgid; member
|
/third_party/pulseaudio/src/pulsecore/ |
H A D | core-util.c | 1175 GETGROUPS_T *gids, tgid; in pa_own_uid_in_group() local 1199 if ((k = is_group(tgid = getgid(), name)) < 0) in pa_own_uid_in_group() 1202 *gid = tgid; in pa_own_uid_in_group()
|
/third_party/libbpf/include/uapi/linux/ |
H A D | bpf.h | 1996 * Get the current pid and tgid. 1998 * A 64-bit integer containing the current tgid and pid, and 2000 * *current_task*\ **->tgid << 32 \|** 4166 * Returns 0 on success, values for *pid* and *tgid* as seen from the current 7209 __u32 tgid; member
|