BOOTTRACE(8)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1

🫢 BOOTTRACE(8) 🫢

okay so hi bestie πŸ’– this is the System Manager's Manual page for boottrace(8), and it's lowkey iconic: it's all about running a command and dropping trace receipts before and after. Welcome to the trace era ✨

🌸 NAME 🌸

boottrace β€” trace command execution with boottrace(4) πŸ¦‹

✨ SYNOPSIS ✨

boottrace utility [argument ...]

πŸ¦‹ DESCRIPTION πŸ¦‹

The boottrace utility executes the specified utility, and it creates two boottrace(4) trace entries: one before the execution and one after it. That's the whole plot, no cap πŸ’…

🌈 ENVIRONMENT 🌈

The PATH environment variable is used to locate the requested utility if the name contains no / characters β€” that's the condition, periodt πŸŽ€

πŸ’€ EXIT STATUS πŸ’€

  • If utility was executed successfully, its exit status is returned. πŸ₯³
  • If utility was found but could not be executed, an exit status of 126 is returned. 😭
  • If utility could not be found, an exit status of 127 is returned. πŸ‘»

πŸ“ EXAMPLES πŸ“

Execute the dumpon(8) utility, logging the trace entries:

$ boottrace dumpon -z /dev/gpt/swap0

This will appear in the output of the kern.boottrace.log sysctl(8) node, and it's giving data:

       CPU      msecs    delta process     event                PID CPUtime IBlks OBlks
         0   63918567        0 kernel      sysinit 0x2100001      0    0.00     0     0
       [...]
         0   64076940   120605 boottrace   dumpon start        1602    0.00     0     0
         0   64076942        2 boottrace   dumpon done         1602    0.00     0     0

🫢 SEE ALSO 🫢

boottrace(4), rc.subr(8) β€” go read those too, bestie πŸ’–

πŸ’– cute sign-off: this page is from Debian, dated February 18, 2022, and it answers to BOOTTRACE(8) β€” mwah, slay, bye πŸ’‹

πŸ“¦ where this page comes from