This website works better with JavaScript.
Explore
Help
Sign In
yanguangshaonian
/
aya
mirror of
https://github.com/aya-rs/aya
Watch
1
Star
0
Fork
You've already forked aya
0
Code
Issues
Packages
Projects
Releases
Wiki
Activity
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
4bad464c92
main
pr/Billy99/974
linker-bindep
fix-verifier-blixt
revert-461-main
gh-pages
ci
perf-event
aya-v0.13.1
aya-obj-v0.2.1
aya-log-v0.2.1
aya-log-common-v0.1.15
aya-ebpf-bindings-v0.1.1
aya-ebpf-cty-v0.2.2
aya-v0.13.0
aya-obj-v0.2.0
aya-log-ebpf-v0.1.0
aya-log-ebpf-macros-v0.1.0
aya-log-parser-v0.1.13
aya-ebpf-v0.1.0
aya-ebpf-macros-v0.1.0
aya-ebpf-bindings-v0.1.0
aya-ebpf-cty-v0.2.1
aya-log-v0.2.0
aya-log-common-v0.1.14
aya-v0.12.0
aya-obj-v0.1.0
aya-log-common-v0.1.13
aya-log-v0.1.13
aya-log-common-v0.1.11
aya-log-v0.1.11
aya-log-common-v0.1.10
aya-log-v0.1.10
aya-v0.11.0
aya-log-common-v0.1.9
aya-log-v0.1.9
aya-v0.10.7
aya-v0.10.6
aya-log-v0.1.1
aya-v0.10.5
aya-v0.10.4
aya-v0.10.3
aya-v0.10.2
aya-v0.10.1
aya-v0.10.0
aya-ebpf-macros-v0.1.1
aya-ebpf-v0.1.1
Branches
Tags
${ item.name }
Create tag
${ searchTerm }
Create branch
${ searchTerm }
from '4bad464c92'
${ noResults }
aya
/
Cargo.toml
3 lines
50 B
TOML
Raw
Normal View
History
Unescape
Escape
Turn the project into a workspace, move code under aya/
4 years ago
[
workspace
]
Add aya-gen aya-gen can be used to generate bindings for kernel types, eg: aya-gen btf-types ethhdr --probe-read-getters Will generate: // ... #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct ethhdr { pub h_dest: [::aya_bpf_cty::c_uchar; 6usize], pub h_source: [::aya_bpf_cty::c_uchar; 6usize], pub h_proto: __be16, } impl ethhdr { pub fn h_dest(&self) -> Option<[::aya_bpf_cty::c_uchar; 6usize]> { unsafe { ::aya_bpf::helpers::bpf_probe_read(&self.h_dest) }.ok() } pub fn h_source(&self) -> Option<[::aya_bpf_cty::c_uchar; 6usize]> { unsafe { ::aya_bpf::helpers::bpf_probe_read(&self.h_source) }.ok() } pub fn h_proto(&self) -> Option<__be16> { unsafe { ::aya_bpf::helpers::bpf_probe_read(&self.h_proto) }.ok() } }
4 years ago
members
=
[
"aya"
,
"aya-gen"
,
"xtask"
]