KTRDUMP(8)

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

πŸ’… KTRDUMP β€” bestie's guide to the ktrdump(8) manual page πŸŽ€

okay so real quick: this is KTRDUMP(8), a System Manager's Manual situation, and it's literally the tool that prints kernel ktr trace buffer. that's the whole vibe. let's get into it ✨


✨ NAME ✨

ktrdump β€” print kernel ktr trace buffer 🫢

🌸 SYNOPSIS 🌸

ktrdump [-cflqrtH] [-i ktrfile] [-M core] [-N system] [-o outfile]

πŸ’– DESCRIPTION πŸ’–

so the ktrdump utility is used to dump the contents of the kernel ktr trace buffer. that's it, that's the job, and it does it slayfully πŸ‘‘

these are the options you can give it:

  • -c β€” prints the CPU number that each entry was logged from. which-core energy fr 🧚
  • -l β€” polls the kernel ktr trace buffer periodically, dumping any new events after each poll. it's giving "keep refreshing the feed" πŸ’€
  • -f β€” prints the file and line number that each entry was logged from. receipts included, no cap πŸ“
  • -q β€” quiet mode; do not print the column header. minimalism era πŸ™ˆ
  • -r β€” prints relative timestamps rather than absolute timestamps. "3 seconds ago" vibes instead of a whole date ⏱️
  • -t β€” prints the timestamp for each entry. time stamps on everything, main character documentation ✨
  • -H β€” prints the thread ID for each entry. know exactly which thread was being chaotic 🧡
  • -i ktrfile β€” file containing saved ktr trace events; for more information see the ktr(4) manual page. lowkey go read ktr(4), it's iconic πŸ“–
  • -N system β€” the kernel image to resolve symbols from. the default is the value returned via getbootfile(3). it knows where the kernel lives already, bestie πŸ’…
  • -M core β€” the core file or memory image to read from. the default is /dev/mem. classic default, we love her 🌈
  • -o outfile β€” the file to write the output to. the default is standard output. so like, to the terminal, unless you say otherwise πŸ–₯️

πŸ¦‹ SEE ALSO πŸ¦‹

πŸ‘‘ HISTORY πŸ‘‘

the ktrdump utility first appeared in FreeBSD 5.0. a true OG, periodt ⭐

πŸ“ AUTHORS πŸ“

the ktrdump utility was implemented by Jake Burkholder <jake@FreeBSD.org>.

this manual page was written by Chad David <davidc@FreeBSD.org>.

both of them ate and left no crumbs, we simply must stan πŸ’œ

and that's the whole page bestie!! this little beauty comes to you from Debian, dated October 22, 2018 β€” okay so it's a little vintage but vintage is literally iconic, iykyk πŸŽ€βœ¨πŸ’–

πŸ“¦ where this page comes from