summaryrefslogtreecommitdiffstats
path: root/samples/kprobes/kretprobe_example.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-10-12 10:54:35 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-10-12 10:54:35 -0700
commit378102f364d3fba88b8162df13d639d620e9272c (patch)
tree4d08ab65dc1e99d47c1b53fb7d7640711ea46cf6 /samples/kprobes/kretprobe_example.c
parent1a76eb5b04062cf2a32d5c7f0aefc9d92c3f986a (diff)
parent25cb62b76430a91cc6195f902e61c2cb84ade622 (diff)
downloadblackbird-op-linux-378102f364d3fba88b8162df13d639d620e9272c.tar.gz
blackbird-op-linux-378102f364d3fba88b8162df13d639d620e9272c.zip
Merge 4.3-rc5 into tty-next
We want the tty fixes and reverts in here as well so that people can properly test and use it. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'samples/kprobes/kretprobe_example.c')
-rw-r--r--samples/kprobes/kretprobe_example.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/samples/kprobes/kretprobe_example.c b/samples/kprobes/kretprobe_example.c
index 1041b6731598..ebb1d1aed547 100644
--- a/samples/kprobes/kretprobe_example.c
+++ b/samples/kprobes/kretprobe_example.c
@@ -7,7 +7,7 @@
*
* usage: insmod kretprobe_example.ko func=<func_name>
*
- * If no func_name is specified, do_fork is instrumented
+ * If no func_name is specified, _do_fork is instrumented
*
* For more information on theory of operation of kretprobes, see
* Documentation/kprobes.txt
@@ -25,7 +25,7 @@
#include <linux/limits.h>
#include <linux/sched.h>
-static char func_name[NAME_MAX] = "do_fork";
+static char func_name[NAME_MAX] = "_do_fork";
module_param_string(func, func_name, NAME_MAX, S_IRUGO);
MODULE_PARM_DESC(func, "Function to kretprobe; this module will report the"
" function's execution time");
OpenPOWER on IntegriCloud