Page MenuHomeFreeBSD

boottrace(1): small wrapper utility
Needs ReviewPublic

Authored by mhorne on Mon, Sep 13, 3:17 PM.
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

Create a small program that, when invoked, will create start and stop
boottrace entries via sysctl, and execute the desired command. As
opposed to three lines of shell script, this utility allows the resource
usage to be correctly calculated when each sysctl is invoked, since the
execution of the desired program (rc script) will be part of the same
process.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint OK
Unit
No Unit Test Coverage
Build Status
Buildable 41480
Build 38369: arc lint + arc unit

Event Timeline

siderop1_netapp.com added inline comments.
usr.bin/boottrace/boottrace.c
56

So if this utility is expected to be called by the RC framework, where do we draw the line between boot times and run times? Here you've chosen the RC scripts are run times, but they are a big part of boot, no?

usr.bin/boottrace/boottrace.c
56

I suppose it is up to interpretation, whether the execution of startup scripts is considered part of "boot" or not. That said, I believe the original patch uses the start of multi-user as the separation point, which is reasonable enough. I will update this patch to use BOOTTRACE() instead.

usr.bin/boottrace/boottrace.c
56

I am honestly fine either way, just wanted to have the justification documented somewhere.