Skip to content
This repository was archived by the owner on Jul 11, 2023. It is now read-only.

Fixed zero crate deps and added read accessors for VMA parsing #355

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions bpf-sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,27 @@ description = "Bindings for libbpf"
repository = "https://github.com/foniod/redbpf"
homepage = "https://foniod.org"
documentation = "https://docs.rs/bpf-sys"
authors = ["Peter Parkanyi <[email protected]>", "Junyeong Jeong <[email protected]>"]
authors = [
"Peter Parkanyi <[email protected]>",
"Junyeong Jeong <[email protected]>",
]
links = "bpf"
edition = "2018"
license = "MIT OR Apache-2.0"
keywords = ["bpf", "ebpf", "ffi"]

[dependencies]
zero = "0.1"
zero = "0.1.2"
libc = "0.2"
regex = { version = "1.5" }
glob = "0.3.0"
libbpf-sys = "0.6.2"

[build-dependencies]
cc = "1.0"
bindgen = {version = "0.59.2", default-features = false, features = ["runtime"]}
bindgen = { version = "0.59.2", default-features = false, features = [
"runtime",
] }
libc = "0.2"
glob = "0.3.0"

Expand Down
6 changes: 6 additions & 0 deletions redbpf-probes/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ const XDP_TYPES: &[&'static str] = &[

const READ_ACCESSORS: &[&'static str] = &[
// network
"socket",
"msghdr",
"iov_iter",
"iovec",
"sock",
"sockaddr",
"sockaddr_in",
Expand All @@ -77,6 +81,8 @@ const READ_ACCESSORS: &[&'static str] = &[
// task
"task_struct",
"mm_struct",
"vm_area_struct",
"rb_node",
"cred",
];

Expand Down
2 changes: 1 addition & 1 deletion redbpf/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ maintenance = { status = "actively-developed" }
bpf-sys = { path = "../bpf-sys", version = "2.3.0" }
libbpf-sys = "0.6.2"
goblin = "0.4"
zero = "0.1"
zero = "0.1.2"
libc = "0.2"
bindgen = {version = "0.59.2", default-features = false, features = ["runtime"]}
regex = "1.0"
Expand Down