summaryrefslogtreecommitdiff
path: root/samples/fprobe
diff options
context:
space:
mode:
authorMasami Hiramatsu (Google) <mhiramat@kernel.org>2022-06-24 01:31:35 +0300
committerAndrii Nakryiko <andrii@kernel.org>2022-06-25 01:23:04 +0300
commit179a93f74b29d0f37871d7afe826292cda90f113 (patch)
tree29b7ed13d0bcd4a19f3fb8251bbdefaedf428342 /samples/fprobe
parenta2b1a5d40bd12b44322c2ccd40bb0ec1699708b6 (diff)
downloadlinux-179a93f74b29d0f37871d7afe826292cda90f113.tar.xz
fprobe, samples: Add module parameter descriptions
Add module parameter descriptions for the fprobe_example module. Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/165602349520.56016.1314423560740428008.stgit@devnote2
Diffstat (limited to 'samples/fprobe')
-rw-r--r--samples/fprobe/fprobe_example.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/samples/fprobe/fprobe_example.c b/samples/fprobe/fprobe_example.c
index 01ee6c8c8382..18b1e5c4b431 100644
--- a/samples/fprobe/fprobe_example.c
+++ b/samples/fprobe/fprobe_example.c
@@ -25,12 +25,19 @@ static unsigned long nhit;
static char symbol[MAX_SYMBOL_LEN] = "kernel_clone";
module_param_string(symbol, symbol, sizeof(symbol), 0644);
+MODULE_PARM_DESC(symbol, "Probed symbol(s), given by comma separated symbols or a wildcard pattern.");
+
static char nosymbol[MAX_SYMBOL_LEN] = "";
module_param_string(nosymbol, nosymbol, sizeof(nosymbol), 0644);
+MODULE_PARM_DESC(nosymbol, "Not-probed symbols, given by a wildcard pattern.");
+
static bool stackdump = true;
module_param(stackdump, bool, 0644);
+MODULE_PARM_DESC(stackdump, "Enable stackdump.");
+
static bool use_trace = false;
module_param(use_trace, bool, 0644);
+MODULE_PARM_DESC(use_trace, "Use trace_printk instead of printk. This is only for debugging.");
static void show_backtrace(void)
{