1FUNCTION::CMDLINE_AR(3stap) Context Functions FUNCTION::CMDLINE_AR(3stap)
2
3
4
6 function::cmdline_args - Fetch command line arguments from current
7 process
8
10 cmdline_args:string(n:long,m:long,delim:string)
11
13 n
14 First argument to get (zero is normally the program itself)
15
16 m
17 Last argument to get (or minus one for all arguments after n)
18
19 delim
20 String to use to separate arguments when more than one.
21
23 Returns arguments from the current process starting with argument
24 number n, up to argument m. If there are less than n arguments, or the
25 arguments cannot be retrieved from the current process, the empty
26 string is returned. If m is smaller than n then all arguments starting
27 from argument n are returned. Argument zero is traditionally the
28 command itself.
29
31 tapset::context(3stap)
32
33
34
35SystemTap Tapset Reference November 2019 FUNCTION::CMDLINE_AR(3stap)