]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'bpf-libbpf-perf-rb-api'
authorDaniel Borkmann <daniel@iogearbox.net>
Mon, 8 Jul 2019 13:35:44 +0000 (15:35 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 8 Jul 2019 13:35:45 +0000 (15:35 +0200)
commit153e8fdd094b07e0c51a964e474a6b5566279317
treec17fdb0f9b71b4c169e4c252a6dd40ee5e38bc62
parent158f11695ca20e671b08d41b65ab07be89d16598
parentca88b6eb0705b2ceb8e37c9fbb236cca0027dd5f
Merge branch 'bpf-libbpf-perf-rb-api'

Andrii Nakryiko says:

====================
This patchset adds a high-level API for setting up and polling perf buffers
associated with BPF_MAP_TYPE_PERF_EVENT_ARRAY map. Details of APIs are
described in corresponding commit.

Patch #1 adds a set of APIs to set up and work with perf buffer.
Patch #2 enhances libbpf to support auto-setting PERF_EVENT_ARRAY map size.
Patch #3 adds test.
Patch #4 converts bpftool map event_pipe to new API.
Patch #5 updates README to mention perf_buffer_ prefix.

v6->v7:
- __x64_ syscall prefix (Yonghong);
v5->v6:
- fix C99 for loop variable initialization usage (Yonghong);
v4->v5:
- initialize perf_buffer_raw_opts in bpftool map event_pipe (Jakub);
- add perf_buffer_ to README;
v3->v4:
- fixed bpftool event_pipe cmd error handling (Jakub);
v2->v3:
- added perf_buffer__new_raw for more low-level control;
- converted bpftool map event_pipe to new API (Daniel);
- fixed bug with error handling in create_maps (Song);
v1->v2:
- add auto-sizing of PERF_EVENT_ARRAY maps;
====================

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>