Skip to contentSkip to conversation

fprobe, samples: Add module parameter descriptions

PATCH Applied Masami Hiramatsu (Google) 2 participants 2 messages Jun 23, 2022 – Jun 24, 2022

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fprobe, samples: Add module parameter descriptions

From: Masami Hiramatsu (Google) <[email protected]>

Add module parameter descriptions for the fprobe_example module.

---
 samples/fprobe/fprobe_example.c |    7 +++++++
 1 file changed, 7 insertions(+)
samples/fprobe/fprobe_example.c +7 -0
index 01ee6c8c8382..18b1e5c4b431 100644
@@ -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)
 {
#1 lore raw
This patch was applied to bpf/bpf.git (master) by Andrii Nakryiko <[email protected]>:

Hello:

This patch was applied to bpf/bpf.git (master)
by Andrii Nakryiko <[email protected]>:

Quoted 8 lines · On Fri, 24 Jun 2022 07:31:35 +0900 you wrote:

From: Masami Hiramatsu (Google) <[email protected]>

Add module parameter descriptions for the fprobe_example module.

---
 samples/fprobe/fprobe_example.c |    7 +++++++
 1 file changed, 7 insertions(+)

Here is the summary with links:
- [bpf] fprobe, samples: Add module parameter descriptions

    https://git.kernel.org/bpf/bpf/c/179a93f74b29

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html