Skip to content

Commit

Permalink
doc: explain how to use perf with skb programs (iovisor#2289)
Browse files Browse the repository at this point in the history
explain how to use perf with skb programs

Signed-off-by: Oriol Arcas <[email protected]>
  • Loading branch information
oriolarcas authored and yonghong-song committed Mar 27, 2019
1 parent 3677925 commit d1e9d22
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/reference_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,8 @@ Return: 0 on success

A method of a BPF_PERF_OUTPUT table, for submitting custom event data to user space. See the BPF_PERF_OUTPUT entry. (This ultimately calls bpf_perf_event_output().)

The ```ctx``` parameter is provided in [kprobes](#1-kprobes) or [kretprobes](#2-kretprobes). For ```SCHED_CLS``` or ```SOCKET_FILTER``` programs, the ```struct __sk_buff *skb``` must be used instead.

Examples in situ:
[search /examples](https://github.com/iovisor/bcc/search?q=perf_submit+path%3Aexamples&type=Code),
[search /tools](https://github.com/iovisor/bcc/search?q=perf_submit+path%3Atools&type=Code)
Expand Down

0 comments on commit d1e9d22

Please sign in to comment.