On Sun, 16 Apr 2017 09:56:13 -0400, Jamal Hadi Salim wrote: > From: Jamal Hadi Salim <j...@mojatatu.com> > > This adds support for filtering based on time since last used. > When we are dumping a large number of actions it is useful to > have the option of filtering based on when the action was last > used to reduce the amount of data crossing to user space.
Noob question - would it be an option to establish some form of streaming statistic updates out of the kernel? The notion of user space trying to keep track of the time here seems a bit shaky. Would it be an option with netlink to open a socket and request specific set of statistic to be dumped on it periodically if they changed? I guess it would be way more code that the patch you present...