docs(uprobe): Correct probe type in bash readline example (#168)

* docs(uprobe): Correct probe type in bash readline example

* docs(readme): Fix broken links to example READMEs
This commit is contained in:
marun
2025-06-17 17:26:42 +08:00
committed by GitHub
parent d2cde6232b
commit 32180eaccd
3 changed files with 4 additions and 4 deletions

View File

@@ -58,7 +58,7 @@ In the printret function, we first obtain the process name and process ID of the
In addition, we also need to define the uprobe probe using the SEC macro and define the probe function using the BPF_KRETPROBE macro.In the `SEC` macro in the code above, we need to specify the type of the uprobe, the path of the binary file to capture, and the name of the function to capture. For example, the definition of the `SEC` macro in the code above is as follows:
```c
SEC("uprobe//bin/bash:readline")
SEC("uretprobe//bin/bash:readline")
```
This indicates that we want to capture the `readline` function in the `/bin/bash` binary file.