summaryrefslogtreecommitdiffstats
path: root/runtime/docs/examples/argv.c
blob: 5200c350aee3e1a8db6700ea2d657bbd36b15808 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
MAP arglist ;

int inst_do_execve (char * filename, char __user *__user *argv, char __user *__user *envp, struct pt_regs * regs)
{
  struct map_node_str *ptr;

  _stp_copy_argv_from_user (arglist, argv);

  foreach (arglist, ptr)
    printk ("%s ", ptr->str);
  printk ("\n");
}