-
Notifications
You must be signed in to change notification settings - Fork 716
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The current format of output filenames for a specific GOARCH is <stem>_<clang target>_<linux target>.go The s390x GOARCH has a linux target of "s390", which leads to a file name like foo_bpfeb_s390.go The problem is that "_s390" is interpreted as an additional build constraint by the Go toolchain. In effect, the will only be included in the build if GOARCH is s390 and s390x which is of course not possible. Fix this by changing the output filename format and add some code which removes files with the old naming schema. There is a small risk that this might in the future delete files that we haven't written, but the chances of that seem low enough. Extend the bpf2go tests to ensure that we've generated the right build tags for arm64, amd64 and s390x. Signed-off-by: Lorenz Bauer <lmb@isovalent.com>
- Loading branch information
Showing
5 changed files
with
119 additions
and
49 deletions.
There are no files selected for viewing
This file contains 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 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 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
2 changes: 1 addition & 1 deletion
2
examples/uretprobe/bpf_bpfel_x86.go → examples/uretprobe/bpf_x86_bpfel.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
File renamed without changes.