Skip to content

Commit

Permalink
Add timeout to perf_buffer_poll docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ashleydavies authored and yonghong-song committed Apr 19, 2019
1 parent 440268e commit e76a7c7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/reference_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -1244,10 +1244,12 @@ Normal output from a BPF program is either:

### 1. perf_buffer_poll()

Syntax: ```BPF.perf_buffer_poll()```
Syntax: ```BPF.perf_buffer_poll([timeout])```

This polls from all open perf ring buffers, calling the callback function that was provided when calling open_perf_buffer for each entry.

The timeout parameter is optional and measured in milliseconds.

Example:

```Python
Expand Down

0 comments on commit e76a7c7

Please sign in to comment.