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

Add bpfcall and runtime buffers #20

Merged
merged 7 commits into from
Apr 13, 2021
Merged

Add bpfcall and runtime buffers #20

merged 7 commits into from
Apr 13, 2021

Conversation

jpsamaroo
Copy link
Owner

@jpsamaroo jpsamaroo commented Apr 8, 2021

Todo:

  • Test new helpers
  • Test buffer codegen
  • Implement and test constant strings

@jpsamaroo jpsamaroo added the enhancement New feature or request label Apr 8, 2021
Added runtime bpfcall helper
Added runtime buffers/strings
Reorganized files into runtime and host folders
Added trace_printk and get_current_comm helpers
@jpsamaroo
Copy link
Owner Author

@PallHaraldsson this PR exposes the bpf_trace_printk helper (as BPFnative.RT.trace_printk), which you can use to print custom output to /sys/kernel/debug/tracing/trace. Check the "helpers" testset in the root-only tests for examples of how to use this.

@jpsamaroo jpsamaroo mentioned this pull request Apr 13, 2021
@jpsamaroo
Copy link
Owner Author

Also, in this PR I've disabled BTF output, since we're throwing assertions in LLVM during BTF generation. I'll probably need to finish maleadt/LLVM.jl#152 so we can fixup our debuginfo to match what LLVM (and the kernel) expects.

@jpsamaroo jpsamaroo merged commit e4d5d1c into master Apr 13, 2021
@jpsamaroo jpsamaroo deleted the jps/bpfcall branch April 13, 2021 13:12
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
Development

Successfully merging this pull request may close these issues.

1 participant