File tree 4 files changed +23
-9
lines changed
4 files changed +23
-9
lines changed Original file line number Diff line number Diff line change 3
3
CMakeCache. *
4
4
CMakeFiles /*
5
5
[Tt ]esting /*
6
+ cmake-build-debug
6
7
ebpf_code.h
7
8
vm-exten.btf
8
9
check
@@ -18,6 +19,7 @@ index.html*
18
19
# ## VisualStudioCode ###
19
20
.vscode /settings.json
20
21
.vscode /runtime.json
22
+ .idea
21
23
22
24
example /libffi /test
23
25
test /man
Original file line number Diff line number Diff line change @@ -78,4 +78,7 @@ endif()
78
78
option (ENABLE_EBPF_VERIFIER "Whether to enable ebpf verifier" OFF )
79
79
80
80
# whether to build with bpftime daemon
81
- option (BUILD_BPFTIME_DAEMON "Whether to build the bpftime daemon" ON )
81
+ option (BUILD_BPFTIME_DAEMON "Whether to build the bpftime daemon" ON )
82
+
83
+ # whether to build with shared bpf_map
84
+ option (BPFTIME_BUILD_KERNEL_BPF "Whether to build with bpf share maps" ON )
Original file line number Diff line number Diff line change @@ -26,6 +26,11 @@ elseif(${FRIDA_OS_ARCH} MATCHES "linux-arm.*")
26
26
set (FRIDA_GUM_DEVKIT_SHA256 "6b5963eb740062aec6c22c46ec2944a68006f72d290f714fb747ffe75b448a60" )
27
27
# Frida only has armhf builds..
28
28
set (FRIDA_OS_ARCH "linux-armhf" )
29
+ elseif (${FRIDA_OS_ARCH} MATCHES "darwin-arm.*" )
30
+ set (FRIDA_CORE_DEVKIT_SHA256 "50aea2d5dfff000ed1f1dc1fdb2db67a02e4c4f44e782fa311f8afa31df327b6" )
31
+ set (FRIDA_GUM_DEVKIT_SHA256 "b40c08bebd6958d41d91b7819171a457448cccad5faf417c9b4901be54b6c633" )
32
+ # for macos-arm m* chip series
33
+ set (FRIDA_OS_ARCH "macos-arm64e" )
29
34
else ()
30
35
message (FATAL_ERROR "Unsupported frida arch ${FRIDA_OS_ARCH} " )
31
36
endif ()
Original file line number Diff line number Diff line change @@ -71,21 +71,25 @@ set(sources
71
71
src/bpf_map/userspace/per_cpu_array_map.cpp
72
72
src/bpf_map/userspace/per_cpu_hash_map.cpp
73
73
src/bpf_map/userspace/prog_array.cpp
74
-
75
- src/bpf_map/shared/array_map_kernel_user.cpp
76
- src/bpf_map/shared/hash_map_kernel_user.cpp
77
- src/bpf_map/shared/percpu_array_map_kernel_user.cpp
78
- src/bpf_map/shared/perf_event_array_kernel_user.cpp
79
-
80
74
extension/extension_helper.cpp
81
75
)
82
76
77
+ if (BPFTIME_BUILD_KERNEL_BPF)
78
+ list (APPEND sources
79
+ src/bpf_map/shared/array_map_kernel_user.cpp
80
+ src/bpf_map/shared/hash_map_kernel_user.cpp
81
+ src/bpf_map/shared/percpu_array_map_kernel_user.cpp
82
+ src/bpf_map/shared/perf_event_array_kernel_user.cpp
83
+ )
84
+ endif ()
85
+
86
+
83
87
set (headers
84
88
include /
85
89
)
86
- message (INFO "Headers: ${headers} " )
90
+ message (INFO " Headers: ${headers} " )
87
91
88
- message (INFO "Found the following sources: ${sources} " )
92
+ message (INFO " Found the following sources: ${sources} " )
89
93
90
94
if (CMAKE_BUILD_TYPE STREQUAL "Debug" )
91
95
add_definitions (-DSPDLOG_ACTIVE_LEVEL=SPDLOG_LEVEL_DEBUG)
You can’t perform that action at this time.
0 commit comments