Skip to content

Commit

Permalink
Fix typos in kretfunc documentation
Browse files Browse the repository at this point in the history
Fixes an incorrect link to kretfunc documentation section and fixes example to use proper macro
  • Loading branch information
willfindlay authored and yonghong-song committed Jun 13, 2020
1 parent 26b8763 commit 6a96194
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/reference_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ This guide is incomplete. If something feels missing, check the bcc and kernel s
- [7. Raw Tracepoints](#7-raw-tracepoints)
- [8. system call tracepoints](#8-system-call-tracepoints)
- [9. kfuncs](#9-kfuncs)
- [10. kretfuncs](#9-kretfuncs)
- [10. kretfuncs](#10-kretfuncs)
- [Data](#data)
- [1. bpf_probe_read_kernel()](#1-bpf_probe_read_kernel)
- [2. bpf_probe_read_kernel_str()](#2-bpf_probe_read_kernel_str)
Expand Down Expand Up @@ -354,7 +354,7 @@ The last argument of the probe is the return value of the instrumented function.
For example:
```C
KFUNC_PROBE(do_sys_open, int dfd, const char *filename, int flags, int mode, int ret)
KRETFUNC_PROBE(do_sys_open, int dfd, const char *filename, int flags, int mode, int ret)
{
...
```
Expand Down

0 comments on commit 6a96194

Please sign in to comment.