-
Notifications
You must be signed in to change notification settings - Fork 423
refactor(aya-ebpf): make btf_maps libbpf-compatible #1457
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
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| #!/usr/bin/env sh | ||
|
|
||
| set -eux | ||
|
|
||
| # Wrapper to override AR/RANLIB for cross-compilation from macOS to Linux musl. | ||
| # zlib's configure sets AR=libtool on Darwin (Mach-O format, not ELF). | ||
| # See https://github.com/madler/zlib/issues/331 | ||
| exec /usr/bin/make AR=x86_64-linux-musl-ar ARFLAGS=rcs RANLIB=x86_64-linux-musl-ranlib "$@" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| #ifndef AYA_CI_STUB_ARGP_H | ||
| #define AYA_CI_STUB_ARGP_H | ||
|
|
||
| #include <stdio.h> | ||
|
|
||
| typedef int error_t; | ||
|
|
||
| struct argp_option { | ||
| const char *name; | ||
| int key; | ||
| const char *arg; | ||
| int flags; | ||
| const char *doc; | ||
| int group; | ||
| }; | ||
|
|
||
| struct argp_state; | ||
|
|
||
| typedef error_t (*argp_parser_t)(int key, char *arg, struct argp_state *state); | ||
|
|
||
| struct argp { | ||
| const struct argp_option *options; | ||
| argp_parser_t parser; | ||
| const char *args_doc; | ||
| const char *doc; | ||
| const void *children; | ||
| void *help_filter; | ||
| const char *argp_domain; | ||
| }; | ||
|
|
||
| struct argp_state { | ||
| const char *name; | ||
| }; | ||
|
|
||
| #define OPTION_ARG_OPTIONAL 0x1 | ||
| #define ARGP_HELP_SEE 0x40 | ||
| #define ARGP_ERR_UNKNOWN 1 | ||
|
|
||
| int argp_help(const struct argp *argp, FILE *stream, unsigned int flags, | ||
| char *name); | ||
|
|
||
| #endif /* AYA_CI_STUB_ARGP_H */ | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| # Autoconf cache variables to skip configure checks for libraries unavailable | ||
| # during cross-compilation. | ||
| ac_cv_search_argp_parse="none required" | ||
| ac_cv_search__obstack_free="none required" | ||
| ac_cv_search_gzdirect="none required" | ||
| ac_cv_search_fts_close="none required" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| # Target-specific toolchain for x86_64 musl cross-compilation on macOS. | ||
| # cc-rs checks AR_{target} before AR, so these only apply for x86_64-unknown-linux-musl. | ||
| AR_x86_64_unknown_linux_musl=x86_64-linux-musl-ar | ||
| RANLIB_x86_64_unknown_linux_musl=x86_64-linux-musl-ranlib |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.