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

Introduce the BTFhub module #35

Merged
merged 4 commits into from
May 21, 2022
Merged

Introduce the BTFhub module #35

merged 4 commits into from
May 21, 2022

Conversation

mrproliu
Copy link
Contributor

Follow Blog: https://kinvolk.io/blog/2022/03/btfgen-one-step-closer-to-truly-portable-ebpf-programs/
I see it could help users running the eBPF program with CO-RE on the old kernel(without recompile kernel), It's pretty cool. So we could add it.

@mrproliu mrproliu added the enhancement New feature or request label May 19, 2022
@mrproliu mrproliu added this to the 0.2.0 milestone May 19, 2022
@mrproliu mrproliu requested a review from wu-sheng May 19, 2022 09:39

${TMPDIR}/btfhub/tools/btfgen.sh -a ${ARCH} $(each_all_bpf_so_file $FROM)
mkdir -p ${OUTPUT}
cp -r ${TMPDIR}/btfhub/custom-archive/* ${OUTPUT}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You actually copy some of the files from repo https://github.com/aquasecurity/btfhub-archive into our binary, please remember to add these in our binary license.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The files under custom-archive are generated by btfgen.sh(btfhub tools), you mean we need to add https://github.com/aquasecurity/btfhub to the binary license? The btfhub-archive are only some archive binary files. Am I right?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The files under custom-archive are generated by btfgen.sh(btfhub tools), you mean we need to add https://github.com/aquasecurity/btfhub to the binary license? The btfhub-archive are only some archive binary files. Am I right?

Correct me if I'm wrong, btfgen.sh "generates" custom-archive by selecting some of the files from https://github.com/aquasecurity/btfhub-archive , right? If so we should add license https://github.com/aquasecurity/btfhub-archive to binary license

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I take a look at this project. There are no licenses declared. So we ignore it temprory?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it doesn't have a license, we should not use it. Default, the owner has its 100% copyright, and doesn't grant to us and the foundation, even though everything is readable, doesn't mean open-source.

It is better if you open an issue to ask the owner.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, it is not urgent, let's hold this.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok license file created in the btfhub-archive repository. Sorry for the delays. Let me know if there is anything else needed.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!!!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kezhenxu94 @wu-sheng Hi, the license issue has been resolved, please recheck:)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rafaeldtinoco Thanks for fixing this so quickly, and licensed in APLv2.

@vsxen
Copy link

vsxen commented May 20, 2022

cool!

@wu-sheng wu-sheng merged commit 516c080 into apache:main May 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
5 participants