Alessandro Decina
|
122a5306e7
|
aya, aya-bpf-bindings: regenerate bindings
|
3 years ago |
Alessandro Decina
|
a847d6d53b
|
xtask: aya-bpf-bindings: add bpf_adj_room_mode
|
3 years ago |
Alessandro Decina
|
8cd669ca9a
|
xtask: fix include paths for kernel headers bundled with libbpf
|
3 years ago |
Alessandro Decina
|
08c71dfeb1
|
aya: kprobe: remove pid argument
Kprobes can only be attached globally. Per-pid logic needs to be
implemented on the BPF side with bpf_get_current_pid_tgid.
|
3 years ago |
Arnabjyoti Kalita
|
35f15f70e0
|
aya: add minimum kernel version for each map and program type (#18)
|
3 years ago |
Alessandro Decina
|
be035bf42c
|
CI: add lint workflow
|
3 years ago |
Alessandro Decina
|
1d294ba34c
|
CI: don't install bpf-linker
The bpf code isn't tested in CI yet
|
3 years ago |
Alessandro Decina
|
bb15e82c1d
|
aya: add missing load() in kprobe example
Fixes #17
|
3 years ago |
Rafael Ortiz
|
d8d311738c
|
aya: support both bpf_map_def layout variants
Libbpf and iproute2 use two slightly different `bpf_map_def` layouts. This change implements support for loading both.
Refs: #10, #14
|
3 years ago |
Alessandro Decina
|
97cb0db0ad
|
bpf/aya-bpf-cty: target_arch for bpf*-unknown-none was renamed to "bpf"
|
3 years ago |
Alessandro Decina
|
d0a0be65d2
|
Add contributing section to readme
|
3 years ago |
Alessandro Decina
|
58e45f8513
|
Add CONTRIBUTING.md
|
3 years ago |
Alessandro Decina
|
5f0ff1698a
|
aya: netlink: tc: use ptr::read_unaligned instead of deferencing a potentially unaligned ptr
|
3 years ago |
Alessandro Decina
|
7f2ceaf12e
|
aya: netlink: port TC code to using new nlattr utils
|
3 years ago |
Alessandro Decina
|
d9b5ab575f
|
aya: netlink: refactor nlattr writing code
|
3 years ago |
Alessandro Decina
|
c240a2c733
|
aya: netlink: introduce NestedAttrs builder and switch XDP to it
NestedAttrs is a safe interface for writing nlattrs. This is the first
step towards making the netlink code safer and easier to maintain.
|
3 years ago |
Alessandro Decina
|
76baefe61b
|
Add discord link to readme
|
3 years ago |
Alessandro Decina
|
bb595c4e69
|
aya: refactor program section parsing
This renames aya::obj::ProgramKind to aya::obj::ProgramSection and moves
all the program section parsing to ProgramSection::from_str.
|
3 years ago |
Alessandro Decina
|
0188622580
|
aya: fix tracepoint prefix in a couple more places
|
3 years ago |
Alessandro Decina
|
a0151dd485
|
aya: fix trace point section name
Trace points have prefix "tracepoint" not "trace_point".
|
3 years ago |
Alessandro Decina
|
521ef09463
|
Merge pull request #4 from seanyoung/doctest
Fix doctest and run them during CI
|
3 years ago |
Alessandro Decina
|
d70e291580
|
(cargo-release) version 0.10.2
|
3 years ago |
Alessandro Decina
|
fee71b42f1
|
aya: tc: fix QdiscRequest layout
|
3 years ago |
Sean Young
|
1196ba1dcc
|
Fix doctest and run them during CI
Signed-off-by: Sean Young <sean@mess.org>
|
3 years ago |
Alessandro Decina
|
59cfbc51c8
|
Merge pull request #3 from seanyoung/lirc
Add support for lirc programs
|
3 years ago |
Sean Young
|
b49ba69d09
|
Add support for lirc programs
Signed-off-by: Sean Young <sean@mess.org>
|
3 years ago |
Alessandro Decina
|
304abfbfeb
|
(cargo-release) version 0.10.1
|
3 years ago |
Alessandro Decina
|
cdc737490d
|
Merge pull request #1 from aquarhead/fix-load-file
Fix Bpf::load_file when BTF doesn't exist
|
3 years ago |
LOU Xun
|
f1fc30411d
|
Fix Bpf::load_file when BTF doesn't exist
|
3 years ago |
Alessandro Decina
|
94b5e2e4e6
|
Copy readme into aya/
|
3 years ago |
Alessandro Decina
|
7694bacf04
|
aya: add more fields to Cargo.toml
|
3 years ago |
Alessandro Decina
|
9a0b13e781
|
ignore .vscode
|
3 years ago |
Alessandro Decina
|
8956dd0b71
|
add .cargo/config
|
3 years ago |
Alessandro Decina
|
e666cad2d6
|
Fix libc link in readme
|
3 years ago |
Alessandro Decina
|
be0b7bbd83
|
Doc fixes
|
3 years ago |
Alessandro Decina
|
9f7b017d5d
|
aya: bump version to 0.10
|
3 years ago |
Alessandro Decina
|
5e0057acb9
|
Add readme
|
3 years ago |
Alessandro Decina
|
768640dd46
|
aya: add doc aliases for maps and programs
|
3 years ago |
Alessandro Decina
|
293e66af65
|
More docs
|
3 years ago |
Alessandro Decina
|
ad58e171ff
|
aya: refactor tc code a bit and add docs
|
3 years ago |
Alessandro Decina
|
11e21e83be
|
More docs
|
3 years ago |
Alessandro Decina
|
6c7df27bd0
|
More doc fixes
|
3 years ago |
Alessandro Decina
|
28158e6028
|
aya: improve async perf map docs
|
3 years ago |
Alessandro Decina
|
6ecf7dabf3
|
aya: tweak PerfEventArray docs
|
3 years ago |
Alessandro Decina
|
6772595f3e
|
aya: ProgramArray: more doc fixes
|
3 years ago |
Alessandro Decina
|
4bde0c54bd
|
aya: ProgramArray: tweak docs
|
3 years ago |
Alessandro Decina
|
2cda5dbbe7
|
aya: implement ProgramFd for CgroupSkb
|
3 years ago |
Alessandro Decina
|
2d7b9b2e90
|
aya: fix CgroupSkb docs
|
3 years ago |
Alessandro Decina
|
67d35cc1d3
|
bpf: fix PerfMap::output() API when appending context data
map.output(&ctx, &data, nr_bytes) can be used to append nr_bytes from
the current context to the &data event.
|
3 years ago |
Alessandro Decina
|
73c48a5029
|
bpf: add support for BPF_PROG_TYPE_CGROUP_SKB programs
Example:
fn cgroup_skb_egress(skb: SkSkbContext) -> i32 {
// allow data to go through
1
}
|
3 years ago |