DOKK / manpages / debian 10 / systemtap-doc / function::sid.3stap.en
FUNCTION::SID(3stap) Context Functions FUNCTION::SID(3stap)

function::sid - Returns the session ID of the current process


sid:long()

None

The session ID of a process is the process group ID of the session leader. Session ID is stored in the signal_struct since Kernel 2.6.0.

tapset::context(3stap)

October 2018 SystemTap Tapset Reference