FUNCTION::CURRENT_EX(3stap)
β¨ NAME β¨
function::current_exe_file β bestie, this one grabs the file struct pointer for the current task's executable file π
(this lives in the 3stap manual, under the Context Functions crew π«Ά)
πΈ SYNOPSIS πΈ
current_exe_file:long()
π ARGUMENTS π
None. Nada. Zero. She takes no arguments, she just knows π
π¦ DESCRIPTION π¦
okay so here's the tea β: this function returns the file struct pointer for the current task's executable file. Like, the actual binary that's running right now. It's giving "who am I really" but for processes β¨
β οΈ lowkey important bestie: the file struct pointer isn't locked on return. No cap. So don't be out here assuming it's safe to just vibe with it forever β the original manpage said it, so I'm saying it π«Ά
And here's the cute part π β you can pass the return value of this function to fullpath_struct_file to get the path from the file struct. It's a whole pipeline, it's iconic, it's teamwork π
π SEE ALSO π
not me having nothing extra to link here β the page keeps it in-house, so just remember your bestie fullpath_struct_file for that path-glow-up moment π
SystemTap Tapset Reference, Version β that's the September 2026 era, babes β mwah, go forth and get those file struct pointers πππ¦
π¦ 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