kprobes: update jprobe_example.c for do_fork() change
[deliverable/linux.git] / samples / kprobes / jprobe_example.c
index b7541355b92bd547c27faa21ac6a01a2b96cbc85..9119ac6a82702972d5973c0da0a1e9399d665b8a 100644 (file)
 
 /* Proxy routine having the same arguments as actual do_fork() routine */
 static long jdo_fork(unsigned long clone_flags, unsigned long stack_start,
-             struct pt_regs *regs, unsigned long stack_size,
-             int __user *parent_tidptr, int __user *child_tidptr)
+             unsigned long stack_size, int __user *parent_tidptr,
+             int __user *child_tidptr)
 {
-       printk(KERN_INFO "jprobe: clone_flags = 0x%lx, stack_size = 0x%lx,"
-                       " regs = 0x%p\n",
-              clone_flags, stack_size, regs);
+       pr_info("jprobe: clone_flags = 0x%lx, stack_start = 0x%lx "
+               "stack_size = 0x%lx\n", clone_flags, stack_start, stack_size);
 
        /* Always end with a call to jprobe_return(). */
        jprobe_return();
This page took 0.026715 seconds and 5 git commands to generate.