It's time to advance the resolution of the kdump timestamp, as even
when tracing, some system calls are executed faster than 1 µs.
To be able to read of old ktrace.out files, versioning was added
to struct ktr_header.
While here ability to print CPU number of earch entry added.
Details
Details
- Reviewers
jhb pauamma_gundo.com - Group Reviewers
manpages - Commits
- rGfc90f3a28145: ktrace: Increase precision of timestamps.
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
Also: in last sentence of summary, "earch" should be "each".
usr.bin/kdump/kdump.1 | ||
---|---|---|
57 | If I read the code correctly (not sure I do). |
Comment Actions
Perhaps adjust the log message a bit to something like:
ktrace: Increase precision of timestamps. Replace struct timeval in header with struct timespec. To differentiate header formats, add a new KTRNEW flag set in the header type field similar to the existing KTRDROP flag. To make it easier to extend ktrace headers in the future, extend the existing header with a version field (version 0 is reserved for older records without KTRNEW) as well as new fields holding the thread ID and CPU ID.
sys/sys/ktrace.h | ||
---|---|---|
259 | Since all new versions will have different headers, wouldn't this flag be better called KTR_VERSIONED or KTR_HAS_VERSION or something? |