FUNCTION::CURRENT_EX(3stap) Context Functions FUNCTION::CURRENT_EX(3stap)

function::current_exe_file - get the file struct pointer for the current task's executable file

    current_exe_file:long()

None

This function returns the file struct pointer for the current task's executable file. Note that the file struct pointer isn't locked on return. The return value of this function can be passed to fullpath_struct_file to get the path from the file struct.

April 2024 SystemTap Tapset Reference
QR Code