https://github.com/sd2k/aya-uretprobe-test
https://github.com/sd2k/aya-uretprobe-test
Last synced: 26 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/sd2k/aya-uretprobe-test
- Owner: sd2k
- Created: 2023-01-22T18:56:15.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-22T18:56:20.000Z (over 3 years ago)
- Last Synced: 2026-06-03T20:24:50.142Z (about 1 month ago)
- Language: Rust
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# aya-uretprobe-test
Repo containing a reproducible example of a problem I'm having with aya and uretprobes, probably just stemming from my lack of understanding.
Specifically, I can't tell how to decide how struct args and return values should be correctly retrieved. It seems like the fields of the struct are passed/returned as separate args, is this something to do with the calling convention?
## Prerequisites
1. Install a rust stable toolchain: `rustup install stable`
1. Install a rust nightly toolchain: `rustup install nightly`
1. Install bpf-linker: `cargo install bpf-linker`
## Run probe
```bash
RUST_LOG=info cargo xtask run
```
## Run probed executable
```bash
cargo run --bin targettest
```