diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2019-09-03 20:37:06 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2019-09-03 20:37:06 +0000 |
commit | 9229017530bd86e2e61395d8c84aab603db1e230 (patch) | |
tree | ee1a215f66595d4ce8046cabe1a86105b2e3cdf9 | |
parent | f626973b9a662dba3db685cac319393bf9e5cb05 (diff) | |
parent | 0e0b85de42e59f85c262d52743601ae13439f8a2 (diff) | |
download | extras-9229017530bd86e2e61395d8c84aab603db1e230.tar.gz |
Merge "Add support for new taskstats v9 functionality"
-rw-r--r-- | taskstats/taskstats.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/taskstats/taskstats.c b/taskstats/taskstats.c index 361e99f5..f2cf16f7 100644 --- a/taskstats/taskstats.c +++ b/taskstats/taskstats.c @@ -234,6 +234,13 @@ void print_task_stats(const struct TaskStatistics* stats, printf("--------------------------\n"); printf("%-25s%llu\n", "Voluntary switches:", s->nvcsw); printf("%-25s%llu\n", "Involuntary switches:", s->nivcsw); + +#if TASKSTATS_VERSION > 8 + if (s->version > 8) { + printf("%-25s%llu\n", "Thrashing count:", s->thrashing_count); + printf("%-25s%llu\n", "Thrashing delay total:", s->thrashing_delay_total); + } +#endif } void print_usage() { |