Lines Matching defs:stats
18 * Linux task stats reporting tool. Queries and prints out the kernel's
42 struct taskstats stats;
52 struct TaskStatistics* stats) {
56 stats->pid = nla_get_u32(attr);
59 stats->tgid = nla_get_u32(attr);
62 nla_memcpy(&stats->stats, attr, sizeof(stats->stats));
71 struct TaskStatistics* stats = (struct TaskStatistics*)arg;
81 stats);
92 struct TaskStatistics* stats) {
93 memset(stats, 0, sizeof(*stats));
107 nl_cb_set(callbacks, NL_CB_VALID, NL_CB_CUSTOM, &parse_task_stats, stats);
115 return stats->pid || stats->tgid;
133 void print_task_stats(const struct TaskStatistics* stats,
135 const struct taskstats* s = &stats->stats;
138 printf("%-25s%d\n", "Stats version:", s->version);
240 printf("Linux task stats reporting tool\n"
246 " --pid PID Print stats for the process id PID\n"
247 " --tgid TGID Print stats for the thread group id TGID\n"
319 struct TaskStatistics stats;
320 ret = query_task_stats(netlink_socket, family_id, command_type, pid, &stats);
325 print_task_stats(&stats, human_readable);