$
or @
immediately followed by the number of the argument on the command line. Use $
if you are expecting the user to enter an integer as a command-line argument, and @
if you are expecting a string.
probe kernel.function(@1) { } probe kernel.function(@1).return { }
stap commandlineargs.stp kernel function
). You can also specify the script to accept multiple command-line arguments, noting them as @1
, @2
, and so on, in the order they are entered by the user.