FUNCTION::GET_CYCLES(3stap)
β¨ FUNCTION::GET_CYCLES β¨
okay bestie, welcome to the Timestamp Functions corner of the 3stap manual π this one's short, sweet, and honestly kinda iconic.
πΈ NAME πΈ
function::get_cycles β Processor cycle count π
π SYNOPSIS π
get_cycles:long()
π¦ ARGUMENTS π¦
None. literally nothing. zero. the void. no arguments at all, she just works π
β DESCRIPTION β
so here's the tea β this function hands you back the processor cycle counter value if it's available, and if it's not available? it just gives you zero. no drama, no error, just a lil zero π«Ά
now the important part, and bestie pls don't skip this one: the cycle counter is free running and unsynchronized on each processor. that means each processor is doing its own lil thing on its own lil timeline π§β¨
β οΈ because of that, you cannot figure out the order of events by comparing the results of the get_cycles function across different processors. nope. not a thing. the vibe check fails. π
π SEE ALSO π
SystemTap Tapset Reference β Version β September 2026 π
and that's the whole page, bestie!! short king behavior fr fr, but every single detail still ate π go forth and count your cycles responsibly π¦β¨
π¦ where this page comes from
- centos-stream 10: systemtap-client 5.6-3.el10 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- centos-stream 9: systemtap-client 5.6-3.el9 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- fedora 43: systemtap-client 5.6-1.fc43 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- fedora 44: systemtap-client 5.6-1.fc44 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms