Skip to content

Commit

Permalink
Update reference_guide.md
Browse files Browse the repository at this point in the history
I think it should be attach_uretprobe rather than attach_uprobe.
  • Loading branch information
SuperSix0 committed Aug 16, 2019
1 parent 5ce16e4 commit e102514
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/reference_guide.md
Expand Up @@ -1146,8 +1146,8 @@ This will instrument ```strlen()``` function from libc, and call our BPF functio
Other examples:

```Python
b.attach_uprobe(name="c", sym="getaddrinfo", fn_name="do_entry")
b.attach_uprobe(name="/usr/bin/python", sym="main", fn_name="do_main")
b.attach_uretprobe(name="c", sym="getaddrinfo", fn_name="do_return")
b.attach_uretprobe(name="/usr/bin/python", sym="main", fn_name="do_main")
```

You can call attach_uretprobe() more than once, and attach your BPF function to multiple user-level functions.
Expand Down

0 comments on commit e102514

Please sign in to comment.