| 1 |
/** |
| 2 |
* sfunction system - Issue a command to the system |
| 3 |
* |
| 4 |
* @cmd: the command to issue to the system |
| 5 |
* |
| 6 |
* Description: This function runs a command on the system. The |
| 7 |
* command is started in the background some time after the current |
| 8 |
* probe completes. The command is run with the same UID as the user |
| 9 |
* running the stap or staprun command. The runtime may impose a |
| 10 |
* relatively short length limit on the command string. Exceeding it |
| 11 |
* may print a warning. |
| 12 |
*/ |
| 13 |
function system (cmd:string) %{ /* unprivileged */ |
| 14 |
_stp_ctl_send(STP_SYSTEM, STAP_ARG_cmd, strlen(STAP_ARG_cmd)+1); |
| 15 |
%} |