- I'm using this for debugging the issues in PR 198149
Details
- Reviewers
emaste davide - Commits
- rS282658: Convert hwpmc(4) debug printfs over to KTR.
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Passed - Unit
No Test Coverage
Event Timeline
Please do this as SDTs as well or exclusively. It's fine to remove the printfs, but we really need to move to DTrace as our all around
tracing tool.
Hmm, DTrace is always going to have more overhead than KTR and thus be less well suited for debugging traces and timing issues.
The patch looks very good to me and thanks for undertaking this effort.
About SDT I don't disagree with them but *exclusively* seems a little bit too much, lots of people rely on KTR for tracing (me included) and it seems to be a more lighweight solution than Dtrace if you need limited capabilities.
99% of the time assert(3) will just compile out in userspace. Does this library have any other use of assert(3) (i.e. does it expect anybody to actually compile with -DDEBUG or whatever)?