Message ID | 1590628967-4158-1-git-send-email-mrv@mojatatu.com |
---|---|
State | Accepted |
Delegated to: | David Ahern |
Headers | show |
Series | [v2,iproute2-next,1/1] tc: report time an action was first used | expand |
On 5/27/20 7:22 PM, Roman Mashak wrote: > Have print_tm() dump firstuse value along with install, lastuse > and expires. > > v2: Resubmit after 'master' merged into next > > Signed-off-by: Roman Mashak <mrv@mojatatu.com> > --- > tc/tc_util.c | 4 ++++ > 1 file changed, 4 insertions(+) > applied to iproute2-next. Thanks,
diff --git a/tc/tc_util.c b/tc/tc_util.c index fd5fcb242b64..b7ff911b63ed 100644 --- a/tc/tc_util.c +++ b/tc/tc_util.c @@ -758,6 +758,10 @@ void print_tm(FILE *f, const struct tcf_t *tm) print_uint(PRINT_ANY, "last_used", " used %u sec", tm->lastuse / hz); + if (tm->firstuse != 0) + print_uint(PRINT_ANY, "first_used", " firstused %u sec", + tm->firstuse / hz); + if (tm->expires != 0) print_uint(PRINT_ANY, "expires", " expires %u sec", tm->expires / hz);
Have print_tm() dump firstuse value along with install, lastuse and expires. v2: Resubmit after 'master' merged into next Signed-off-by: Roman Mashak <mrv@mojatatu.com> --- tc/tc_util.c | 4 ++++ 1 file changed, 4 insertions(+) -- 2.7.4