trace__fprintf_cpu(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay so bestie, welcome to the trace__fprintf_cpu(9) page in the Kernel API Manual πŸ’– this one is literally about trace__fprintf_cpu β€” it prints the CPU ID to a given file stream. no cap.


πŸŽ€ SYNOPSIS πŸŽ€

size_t trace__fprintf_cpu (u32 cpu , FILE *fp );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • cpu β€” the CPU ID you want to print πŸ‘‘
  • fp β€” the file stream you're writing to 🫢

🌸 DESCRIPTION 🌸

So what it does is format and print the specified CPU ID enclosed in brackets β€” like, for example, "[003] " β€” to the provided file pointer. yep, that trailing space is part of the example, bestie, don't come for me πŸ’…

It's used to align and display the CPU ID consistently within the trace output. it's giving consistency, it's giving trace-output main character energy ✨


⭐ RETURN ⭐

The number of characters printed. that's it, that's the return value πŸŽ€


πŸ”₯ SEE ALSO πŸ”₯

  • Kernel file ./tools/perf/builtin-trace.c
  • struct syscall(9)

mwah πŸ’‹ this page comes from ./tools/perf, dated October 2026, and it's serving trace__fprintf_cpu(9) realness in the Kernel API Manual πŸŒˆπŸ‘‘

πŸ“¦ where this page comes from