Page MenuHomeFreeBSD

boottrace: rc annotations
ClosedPublic

Authored by mhorne on Sep 13 2021, 3:19 PM.
Tags
None
Referenced Files
F148346949: D31930.id102169.diff
Tue, Mar 17, 7:07 AM
F148317401: D31930.id95045.diff
Tue, Mar 17, 3:40 AM
F148268172: D31930.id102169.diff
Mon, Mar 16, 9:50 PM
Unknown Object (File)
Tue, Feb 24, 1:28 AM
Unknown Object (File)
Feb 5 2026, 10:12 PM
Unknown Object (File)
Jan 29 2026, 10:35 PM
Unknown Object (File)
Jan 27 2026, 12:36 AM
Unknown Object (File)
Jan 16 2026, 6:58 AM

Details

Summary

Extend the rc framework to generate boottrace entries around the execution
of each rc script, if enabled.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 43960
Build 40848: arc lint + arc unit

Event Timeline

0mp added inline comments.
libexec/rc/rc.subr
1446
2221

if we use command -v here we don't have to spawn an extra process I think.

libexec/rc/rc.subr
1414

Now that I think about it, a variable name starting with rc_ would fit better. e.g., rc_boottrace.

2222

Quoting is always a good idea here. Especially if one day we decide that boottrace_cmd is configurable.

0mp added inline comments.
libexec/rc/rc.subr
2223

Last minor thing would be to document that this variable is available. Ideally in rc.subr(8) where rc_* variables like rc_arg and rc_flags are documented.

Also, would be nice to add boottrace(4) to either rc or rc.subr.

This revision is now accepted and ready to land.Feb 18 2022, 9:18 AM
This revision was automatically updated to reflect the committed changes.
libexec/rc/rc.subr
2223

Sure, I've made a note to do this as a follow-up.