HomeFreeBSD

MFC 339620: Add a "live" mode to ktrdump.

Description

MFC 339620: Add a "live" mode to ktrdump.

Support a "live" mode in ktrdump enabled via the -l flag. In this
mode, ktrdump polls the kernel's trace buffer periodically (currently
hardcoded as a 50 millisecond interval) and dumps any newly added
entries. Fancier logic for the timeout (e.g. a command line option or
some kind of backoff based on the time since the last entry) can be
added later as the need arises.

Note that this does not include the capsicum fixes from the original
commit since ktrdump in stable/11 is not capsicum-ized.

Details

Committed
jhbJan 2 2019, 7:48 PM
Parents
rS342705: MFC 339620: Add a "live" mode to ktrdump.
Branches
Unknown
Tags
Unknown