Fix perf_buffer__new call

This commit is contained in:
Pragyansh Chaturvedi
2025-10-19 04:06:35 +05:30
parent c0b982a514
commit fc4d9a51e7
2 changed files with 34 additions and 28 deletions

View File

@ -20,11 +20,12 @@ private:
public:
BpfPerfBuffer(int map_fd, int page_cnt, py::function callback,
py::object lost_callback);
py::object lost_callback = py::none());
~BpfPerfBuffer();
int poll(int timeout_ms);
int consume();
[[nodiscard]] int fd() const;
};
#endif // PYLIBBPF_BPF_PERF_BUFFER_H