So far, only an API for TASKSTATS_CMD_ATTR_PID is implemented, which gives statistics of a single thread.
To get cumulative statistics of a whole process/thread group, TASKSTATS_CMD_ATTR_TGID would need to be used.
Add tgid_stats API for TASKSTATS_CMD_ATTR_TGID
Change debug! to warn! if wrong kind of reply is received
Add second example to README to hint at usage difference
So far, only an API for
TASKSTATS_CMD_ATTR_PID
is implemented, which gives statistics of a single thread. To get cumulative statistics of a whole process/thread group,TASKSTATS_CMD_ATTR_TGID
would need to be used.