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

aya_log: Allow aya log to be consumed from C #798

Open
dave-tucker opened this issue Sep 28, 2023 · 2 comments
Open

aya_log: Allow aya log to be consumed from C #798

dave-tucker opened this issue Sep 28, 2023 · 2 comments

Comments

@dave-tucker
Copy link
Member

It would be pretty excellent to have an extern C API in aya_log, and to also package it as a staticlib.
One would then hope that we could call info(), warn() etc... from a C eBPF program.

@ajwerner
Copy link
Member

Does the C bpf ecosystem support linking multiple compilation units together?

@dave-tucker
Copy link
Member Author

As I recall it does. libbpf/bpftool has limited support. There is a fork of lld around with bpf support from Meta.
And of course, bpf-linker supports linking C too 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants