Lines Matching defs:tgid

80     static RTGMsg Build(uint32_t cmd = 0, int32_t tgid = 0, int64_t data = 0)
82 return RTGMsg(cmd, tgid, data);
93 this->tgid = var;
143 ss << " tgid: " << tgid;
155 RTGMsg(uint32_t cmd, int32_t tgid, int64_t data)
156 : cmd(cmd), tgid(tgid), data(data), in_size(0), out_size(0), in(nullptr), out(nullptr)
161 int32_t tgid;
198 int tgid = -1;
199 RTGMsg msg = RTGMsg::Build(CMD_CREATE_RTG).Out(&tgid).OutSize(sizeof(tgid));
201 return RTGIOCtrl(msg) ? tgid : -1;
204 bool RTGCtrl::PutThreadGroup(int tgid)
208 RTGMsg msg = RTGMsg::Build(CMD_RELEASE_RTG, tgid);
212 bool RTGCtrl::JoinThread(int tgid, pid_t tid)
216 RTGMsg msg = RTGMsg::Build(CMD_ADD_RTG_THREAD, tgid, tid);
220 bool RTGCtrl::RemoveThread(int tgid, pid_t tid)
224 RTGMsg msg = RTGMsg::Build(CMD_DEL_RTG_THREAD, tgid, tid);
228 bool RTGCtrl::UpdatePerfUtil(int tgid, int util)
232 RTGMsg msg = RTGMsg::Build(CMD_SET_GROUP_UTIL, tgid, util);
236 bool RTGCtrl::UpdatePerfFreq(int tgid, int64_t freq)
240 RTGMsg msg = RTGMsg::Build(CMD_SET_GROUP_FREQ, tgid, freq);
244 RTGLoadInfo RTGCtrl::UpdateAndGetLoad(int tgid, pid_t tid)
249 RTGMsg msg = RTGMsg::Build(CMD_GET_THREAD_LOAD, tgid, tid).Out(&info).OutSize(sizeof(info));
258 RTGLoadInfo RTGCtrl::UpdateAndGetLoad(int tgid)
263 RTGMsg msg = RTGMsg::Build(CMD_GET_GROUP_LOAD, tgid).Out(&info).OutSize(sizeof(info));
272 bool RTGCtrl::SetGroupWindowSize(int tgid, uint64_t size)
276 RTGMsg msg = RTGMsg::Build(CMD_SET_GROUP_WINDOW_SIZE, tgid, size);
280 bool RTGCtrl::SetInvalidInterval(int tgid, uint64_t interval)
284 RTGMsg msg = RTGMsg::Build(CMD_SET_INVALID_INTERVAL, tgid, interval);
288 bool RTGCtrl::Begin(int tgid)
292 RTGMsg msg = RTGMsg::Build(CMD_SET_GROUP_WINDOW_ROLLOVER, tgid, RTG_FRAME_START);
296 bool RTGCtrl::End(int tgid)
300 RTGMsg msg = RTGMsg::Build(CMD_SET_GROUP_WINDOW_ROLLOVER, tgid, RTG_FRAME_END);
304 bool RTGCtrl::SetPreferredCluster(int tgid, int clusterId)
308 RTGMsg msg = RTGMsg::Build(CMD_SET_PREFERRED_CLUSTER, tgid, clusterId);