trace_ksm_start_scan(9)
π trace_ksm_start_scan(9) π
ok so bestie, welcome to the Kernel API Manual β¨ β this one's a lil tracepoint page, and honestly? it's giving "short but iconic." let's get into it π
πΈ NAME πΈ
trace_ksm_start_scan β literally the function that gets called right after a brand-new ksm scan kicks off π
β¨ SYNOPSIS β¨
void trace_ksm_start_scan (int seq , u32 rmap_entries );
no cap, that's the whole signature β void, so it gives you nothing back, it's purely here to vibe and emit a trace π«
π¦ ARGUMENTS π¦
seqβ the sequence number of the scan π’ iykyk, it's how you tell this scan apart from all the other scansrmap_entriesβ the actual number of rmap entries π (au32, bestie, so plan accordingly)
π§ DESCRIPTION π§
ok so real talk: this bad boy allows you to trace the start of a ksm scan π that's the whole job. it shows up, it marks the beginning, it slays, it leaves. main character energy fr fr π
β SEE ALSO β
go look at the kernel file ./include/trace/events/ksm.h and then run through the whole friend group π«Ά:
trace_ksm_stop_scan(9)trace_ksm_enter(9)trace_ksm_exit(9)trace_ksm_merge_one_page(9)trace_ksm_merge_with_ksm_page(9)trace_ksm_remove_ksm_page(9)trace_ksm_remove_rmap_item(9)trace_ksm_advisor(9)
like, the whole ksm tracepoint squad is there β go say hi π
π friendly reminder: everything above is exactly what the page says, no extra lore, no invented behaviour. i'm cute, not a source of new syscall facts π
and that's the page, bestie!! π this lil gem lives in ./include/trace/events, dated October 2026 (yes, the future, we're time-traveling β¨), and it's literally titled trace_ksm_start_scan(9). mwah, go trace something gorgeous πππ¦
π¦ 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