Lines Matching refs:stats
42 struct taskstats stats; member
52 struct TaskStatistics* stats) { in parse_aggregate_task_stats() argument
56 stats->pid = nla_get_u32(attr); in parse_aggregate_task_stats()
59 stats->tgid = nla_get_u32(attr); in parse_aggregate_task_stats()
62 nla_memcpy(&stats->stats, attr, sizeof(stats->stats)); in parse_aggregate_task_stats()
71 struct TaskStatistics* stats = (struct TaskStatistics*)arg; in parse_task_stats() local
81 stats); in parse_task_stats()
92 struct TaskStatistics* stats) { in query_task_stats() argument
93 memset(stats, 0, sizeof(*stats)); in query_task_stats()
107 nl_cb_set(callbacks, NL_CB_VALID, NL_CB_CUSTOM, &parse_task_stats, stats); in query_task_stats()
115 return stats->pid || stats->tgid; in query_task_stats()
133 void print_task_stats(const struct TaskStatistics* stats, in print_task_stats() argument
135 const struct taskstats* s = &stats->stats; in print_task_stats()
326 struct TaskStatistics stats; in main() local
327 ret = query_task_stats(netlink_socket, family_id, command_type, pid, &stats); in main()
332 print_task_stats(&stats, human_readable); in main()