See the stapex(3stap) manual page for a collection of sample
systemtap scripts.
To start the configured servers, or the default server, if none
are configured:
$ [ service ] stap-server start
To start a server that handles all kernel versions installed in
/lib/modules:
$ [ service ] stap-server start -i
To obtain information about the running server(s):
$ [ service ] stap-server status
To start a server like another one, except targeting a different
architecture, by referencing the first server's nickname:
$ [ service ] stap-server start -n
NICKNAME -a
ARCH
To start a server for a kernel release not installed (cross-
compiling)
$ [ service ] stap-server start -a
ARCH -r
/BUILDDIR
To stop one of the servers by referencing its process id
(obtained by running stap-server status
):
$ [ service ] stap-server stop -p
PID
To run a script using a compile server:
$ stap SCRIPT --use-server
To run a script as an unprivileged user using a compile server:
$ stap SCRIPT
To stop all running servers:
$ [ service ] stap-server stop
To restart servers after a global configuration change and/or
when default servers have been added, changed, or removed:
$ [ service ] stap-server force-reload