Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run multiarch builds natively rather than via QEMU #1479

Closed
wants to merge 100 commits into from

Conversation

Stringy
Copy link
Collaborator

@Stringy Stringy commented Dec 20, 2023

Description

This PR attempts to add ppc64le and arm64 to the existing native builds provided for s390x in #1448

@Stringy Stringy requested a review from a team as a code owner December 20, 2023 13:57
@Stringy Stringy added the run-multiarch-builds Run steps for non-x86 archs. label Dec 20, 2023
@Stringy Stringy force-pushed the giles/multiarch-native-builds branch from dfd2e05 to 165afea Compare December 20, 2023 14:14
@Stringy Stringy force-pushed the giles/multiarch-native-builds branch from 23b5bd2 to 8fd91f3 Compare January 2, 2024 11:20
erthalion and others added 26 commits January 3, 2024 08:31
This change makes it so collector compiles and runs using upstream Falco
directly. There are a few minor tweaks still required in Falco itself,
but they are things that are either on their way to upstream or should
be real ease to upstream.

List of changes needed for vanilla to be compatible:
- Remove sinsp-wrapper and link directly to sinsp.
- Remove sinsp_filter_check_iface in favor of sinsp_filter_check.
- Use MINIMAL_BUILD instead of MINIMAL_BUILD_WITH_EBPF.
- Remove g_bpf_drop_syscalls.
- eBPF probe is compiled directly instead of via cmake.
Add uthash submodule
Fix locations for BTF symbols
Configure build process to enable socket only fd optimization
As an optimization, use only a certain subset of cgroup subsystems.
It could be expesinve to pass large cgroup names from the kernel to user
space.
Needed to include the arm64 builder image
One side effect of [1] is that procexit is not included by default
any more if ppm_sc is not empty. Which means to continue receiving
procexit we need to explicitly add it into the list of interesting
events. procexit is essential for memory management, as its handlers
perform threadinfo cache clean up.

[1]: falcosecurity/libs#1001
Turn on Falco assert logging for all build types. Make _DEBUG dependent
on the Debug build type, it would impact asserts logic when asserts
logging is disabled.
If CMAKE_BUILD_TYPE is debug, the condition for stripping the binary is
not invoked, and the resulting exit code is 1, stopping the build.
Ignore this branch and return exit code 0.
This change makes it so collector compiles and runs using upstream Falco
directly. There are a few minor tweaks still required in Falco itself,
but they are things that are either on their way to upstream or should
be real ease to upstream.

List of changes needed for vanilla to be compatible:
- Remove sinsp-wrapper and link directly to sinsp.
- Remove sinsp_filter_check_iface in favor of sinsp_filter_check.
- Use MINIMAL_BUILD instead of MINIMAL_BUILD_WITH_EBPF.
- Remove g_bpf_drop_syscalls.
- eBPF probe is compiled directly instead of via cmake.
Add uthash submodule
Add uthash submodule
@Stringy Stringy force-pushed the giles/ppc64le-core-bpf-testing branch from 5528455 to dc521ae Compare January 3, 2024 08:54
erthalion and others added 19 commits January 3, 2024 11:01
This change makes it so collector compiles and runs using upstream Falco
directly. There are a few minor tweaks still required in Falco itself,
but they are things that are either on their way to upstream or should
be real ease to upstream.

List of changes needed for vanilla to be compatible:
- Remove sinsp-wrapper and link directly to sinsp.
- Remove sinsp_filter_check_iface in favor of sinsp_filter_check.
- Use MINIMAL_BUILD instead of MINIMAL_BUILD_WITH_EBPF.
- Remove g_bpf_drop_syscalls.
- eBPF probe is compiled directly instead of via cmake.
Add uthash submodule
Add uthash submodule
@Stringy Stringy force-pushed the giles/multiarch-native-builds branch from 8fd91f3 to fcb1444 Compare January 3, 2024 11:17
Base automatically changed from giles/ppc64le-core-bpf-testing to mauro/use-falco-upstream January 3, 2024 13:56
Base automatically changed from mauro/use-falco-upstream to master January 5, 2024 07:46
@Stringy Stringy closed this Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
run-multiarch-builds Run steps for non-x86 archs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants