Skip to content

Commit 874d567

Browse files
committed
Move BpfPerfBuffer under src/maps
1 parent 771d8fe commit 874d567

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ pybind11_add_module(
1414
src/core/bpf_exception.h
1515
src/core/bpf_map.h
1616
src/core/bpf_object.h
17-
src/core/bpf_perf_buffer.h
17+
src/maps/bpf_perf_buffer.h
1818
src/bindings/main.cpp
1919
src/core/bpf_program.cpp
2020
src/core/bpf_map.cpp
2121
src/core/bpf_object.cpp
22-
src/core/bpf_perf_buffer.cpp)
22+
src/maps/bpf_perf_buffer.cpp)
2323

2424
# --- libbpf build rules ---
2525
set(LIBBPF_SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/libbpf/src)

src/bindings/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ extern "C" {
1010
#include "core/bpf_program.h"
1111
#include "core/bpf_exception.h"
1212
#include "core/bpf_map.h"
13-
#include "core/bpf_perf_buffer.h"
13+
#include "maps/bpf_perf_buffer.h"
1414

1515
namespace py = pybind11;
1616

src/core/bpf_perf_buffer.cpp renamed to src/maps/bpf_perf_buffer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#include "bpf_perf_buffer.h"
2-
#include "bpf_exception.h"
2+
#include "core/bpf_exception.h"
33

44
BpfPerfBuffer::BpfPerfBuffer(int map_fd, int page_cnt, py::function callback,
55
py::object lost_callback)
File renamed without changes.

0 commit comments

Comments
 (0)