From: Daniel Borkmann Date: Mon, 8 Jul 2019 13:35:44 +0000 (+0200) Subject: Merge branch 'bpf-libbpf-perf-rb-api' X-Git-Tag: v5.3-rc1~140^2~28^2~7 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=d2850ce0bdd772a85043b1f07af99205b96e6e2a;p=users%2Fhch%2Fmisc.git 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 --- d2850ce0bdd772a85043b1f07af99205b96e6e2a