FUNCTION::NS_TID(3stap)
β¨ NAME β¨
okay bestie, so this is function::ns_tid from the Context Functions chapter of the SystemTap Tapset Reference (that's the 3stap manual, iykyk) β and it returns the thread ID of a target process as seen in a pid namespace. that's the whole vibe. π
πΈ SYNOPSIS πΈ
ns_tid:long()
look at her. one function, zero drama, returns a long. she ate. π
π¦ ARGUMENTS π¦
- None β literally nothing. no args, no stress, no "wait what do i pass in". she takes nothing and she gives you a thread ID. iconic behaviour. β¨
π DESCRIPTION π
so the way this works is: ns_tid hands you the thread ID of a target process, but β and this is the important part β the way that thread ID looks as seen in a pid namespace. π
which namespace tho? bestie, it depends:
- if a target pid namespace was provided, you get the thread ID as seen in that namespace.
- if not, you get it as seen in the
stapprocess namespace.
that's it. that's the function. no cap. π«Ά
fr fr the whole point is that the same thread can have different IDs depending on which namespace you're peeking from, and this function respects that. don't @ me, that's just what the page says. π
π SEE ALSO π
tapset::context(3stap)β go read the context tapset page too, she's the main character of this whole friend group. π
mwah π that's the SystemTap Tapset Reference, September 2026 version, signing off β thanks for coming to my ted talk, now go probe something. π§ββοΈπ
π¦ 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