android_kernel_motorola_sm6375/samples/kprobes
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Huang Shijie 57c24b2140 samples/kretprobe: fix the wrong type
The regs_return_value() returns "unsigned long" or "long" value.  But the
retval is int type now, it may cause overflow, the log may becomes:

    [ 2911.078869] do_brk returned -2003877888 and took 4620 ns to execute

This patch converts the retval to "unsigned long" type, and fixes the
overflow issue.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Huang Shijie <[email protected]>
Cc: Petr Mladek <[email protected]>
Cc: Steve Capper <[email protected]>
Cc: Ananth N Mavinakayanahalli <[email protected]>
Cc: Anil S Keshavamurthy <[email protected]>
Cc: Masami Hiramatsu <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
2016-08-04 08:50:07 -04:00
..
jprobe_example.c samples/jprobe: convert the printk to pr_info/pr_err 2016-08-04 08:50:07 -04:00
kprobe_example.c samples/kprobe: convert the printk to pr_info/pr_err 2016-08-04 08:50:07 -04:00
kretprobe_example.c samples/kretprobe: fix the wrong type 2016-08-04 08:50:07 -04:00
Makefile