DOKK / manpages / debian 12 / systemtap-doc / function::cpu.3stap.en
FUNCTION::CPU(3stap) Context Functions FUNCTION::CPU(3stap)

function::cpu - Returns the current cpu number


cpu:long()

None

This function returns the current cpu number.

tapset::context(3stap)

November 2022 SystemTap Tapset Reference