Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
yunwei37 committed Aug 15, 2024
1 parent 0868332 commit 918ceff
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/test-runtime.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,9 @@ jobs:
- name: build all release with mpk enable and llvm
run: |
rm -rf build
cmake -Bbuild -DBPFTIME_LLVM_JIT=YES -DBPFTIME_ENABLE_UNIT_TESTING=YES -DBPFTIME_ENABLE_MPK=YES -DCMAKE_BUILD_TYPE=Release
cmake -Bbuild -DBPFTIME_LLVM_JIT=YES -DBPFTIME_ENABLE_UNIT_TESTING=YES -DBPFTIME_ENABLE_MPK=YES -DCMAKE_BUILD_TYPE=Debug
cmake --build build --config Debug --target bpftime_runtime_tests -j$(nproc)
- name: build runtime without libbpf
run: |
rm -rf build
cmake -Bbuild -DBPFTIME_LLVM_JIT=NO -DBPFTIME_ENABLE_UNIT_TESTING=YES -DBPFTIME_BUILD_WITH_LIBBPF=NO
cmake --build build -j$(nproc)
- name: build runtime using ubpf
run: |
rm -rf build
Expand Down
6 changes: 2 additions & 4 deletions runtime/src/bpf_map/userspace/prog_array.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,13 @@
* All rights reserved.
*/

#if __linux__ && BPFTIME_BUILD_WITH_LIBBPF
#if __linux__
#include "bpf/bpf.h"
#include "linux/bpf.h"
#include <bpf/libbpf.h>
#include <gnu/lib-names.h>
#elif __APPLE__
#include "bpftime_epoll.h"
else
#include "bpftime_epoll.h"
#endif
#include "spdlog/spdlog.h"
#include <bpf_map/userspace/prog_array.hpp>
Expand All @@ -31,7 +29,7 @@ else

// syscall() function was hooked by syscall server, direct call to it will lead
// to a result provided by bpftime. So if we want to get things from kernel, we
// must manually execute `syscall` from libc
// must manually execute `syscall` from libc
static void *libc_handle = dlopen(LIBC_SO, RTLD_LAZY);
static auto libc_syscall =
reinterpret_cast<decltype(&::syscall)>(dlsym(libc_handle, "syscall"));
Expand Down
2 changes: 0 additions & 2 deletions runtime/src/bpftime_config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ const agent_config bpftime::get_agent_config_from_env() noexcept
auto helpers_sv = std::string_view(custom_helpers);
process_helper_sv(helpers_sv, ',', agent_config);
} else {
SPDLOG_INFO(
"Enabling helper groups ufunc, kernel, shm_map by default");
agent_config.enable_kernel_helper_group =
agent_config.enable_shm_maps_helper_group =
agent_config.enable_ufunc_helper_group = true;
Expand Down

0 comments on commit 918ceff

Please sign in to comment.