summaryrefslogtreecommitdiff
path: root/samples/bpf/syscall_tp_kern.c
diff options
context:
space:
mode:
authorJon Doron <jond@wiz.io>2023-02-07 11:19:16 +0300
committerAndrii Nakryiko <andrii@kernel.org>2023-02-09 02:27:39 +0300
commitab8684b8cecf711cc9e47c1cbb1a8f4b549f8893 (patch)
treea49c0d20fc9050717c695e2408303d54cb6502ec /samples/bpf/syscall_tp_kern.c
parent9b0651e429a04b58c29f2133da4ccc70f81263b8 (diff)
downloadlinux-ab8684b8cecf711cc9e47c1cbb1a8f4b549f8893.tar.xz
libbpf: Add sample_period to creation options
Add option to set when the perf buffer should wake up, by default the perf buffer becomes signaled for every event that is being pushed to it. In case of a high throughput of events it will be more efficient to wake up only once you have X events ready to be read. So your application can wakeup once and drain the entire perf buffer. Signed-off-by: Jon Doron <jond@wiz.io> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20230207081916.3398417-1-arilou@gmail.com
Diffstat (limited to 'samples/bpf/syscall_tp_kern.c')
0 files changed, 0 insertions, 0 deletions