trace__fprintf_cpu(9)
β¨ 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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms