To preserve ABI stability force kernel to write v0 format if
ktrace p_osrel is old.
Details
Details
- Reviewers
- None
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 46480 Build 43369: arc lint + arc unit
Event Timeline
Comment Actions
This does not make sense to me. You are basing the output format on the osrel of the binary that is being traced. So 1) it does not solve my issue when I have fresh HEAD and take the ktrace dump on it and move it to stable/13 2) if more than one process is traced, and their binaries have mixed osrel, you get the mix of the record types in the output
Comment Actions
this is a quick hack to demonstrate a solution, I haven't even had time to test it, as the world is still builds. If this approach is ok for you, I will complete the fix, otherwise I will do as you suggested earlier
sys/kern/kern_ktrace.c | ||
---|---|---|
1223 | it should be if (td->td_proc->p_osrel > P_OSREL_KTRACE_VERSIONED) |