DOKK / manpages / debian 11 / systemtap-doc / function::regparm.3stap.en
FUNCTION::REGPARM(3stap) Context Functions FUNCTION::REGPARM(3stap)

function::regparm - Specify regparm value used to compile function


regparm(n:long)

n

original regparm value

Call this function with argument n before accessing function arguments using the *_arg function is the function was build with the gcc -mregparm=n option.

(The i386 kernel is built with \-mregparm=3, so systemtap considers regparm(3) the default for kernel functions on that architecture.) Only valid on i386 and x86_64 (when probing 32bit applications). Produces an error on other architectures.

tapset::registers(3stap)

November 2020 SystemTap Tapset Reference