Skip to content

Commit 179a93f

Browse files
mhiramatanakryiko
authored andcommitted
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
1 parent a2b1a5d commit 179a93f

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

samples/fprobe/fprobe_example.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,19 @@ static unsigned long nhit;
2525

2626
static char symbol[MAX_SYMBOL_LEN] = "kernel_clone";
2727
module_param_string(symbol, symbol, sizeof(symbol), 0644);
28+
MODULE_PARM_DESC(symbol, "Probed symbol(s), given by comma separated symbols or a wildcard pattern.");
29+
2830
static char nosymbol[MAX_SYMBOL_LEN] = "";
2931
module_param_string(nosymbol, nosymbol, sizeof(nosymbol), 0644);
32+
MODULE_PARM_DESC(nosymbol, "Not-probed symbols, given by a wildcard pattern.");
33+
3034
static bool stackdump = true;
3135
module_param(stackdump, bool, 0644);
36+
MODULE_PARM_DESC(stackdump, "Enable stackdump.");
37+
3238
static bool use_trace = false;
3339
module_param(use_trace, bool, 0644);
40+
MODULE_PARM_DESC(use_trace, "Use trace_printk instead of printk. This is only for debugging.");
3441

3542
static void show_backtrace(void)
3643
{

0 commit comments

Comments
 (0)