Lines Matching refs:stats
61 taskstats stats; member
64 static pid_t ParseAggregateTaskStats(nlattr* attr, int attr_size, taskstats* stats) { in ParseAggregateTaskStats() argument
73 int len = static_cast<int>(sizeof(*stats)); in ParseAggregateTaskStats()
75 nla_memcpy(stats, attr, len); in ParseAggregateTaskStats()
98 taskstats stats; in ParseTaskStats() local
101 ret = ParseAggregateTaskStats(nested_attr, nla_len(attr), &stats); in ParseTaskStats()
105 taskstats_request->stats = stats; in ParseTaskStats()
121 bool TaskstatsSocket::GetStats(int pid, int type, TaskStatistics& stats) { in GetStats() argument
146 stats = TaskStatistics(taskstats_request.stats); in GetStats()
151 bool TaskstatsSocket::GetPidStats(int pid, TaskStatistics& stats) { in GetPidStats() argument
152 return GetStats(pid, TASKSTATS_CMD_ATTR_PID, stats); in GetPidStats()
155 bool TaskstatsSocket::GetTgidStats(int tgid, TaskStatistics& stats) { in GetTgidStats() argument
156 bool ret = GetStats(tgid, TASKSTATS_CMD_ATTR_TGID, stats); in GetTgidStats()
158 stats.set_pid(tgid); in GetTgidStats()