mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-29 01:33:22 +00:00
* feat: support tracepoint-based ebpf programs Signed-off-by: Godones <chenlinfeng25@outlook.com> * remove licenses Signed-off-by: Godones <chenlinfeng25@outlook.com> * feat: Supplement tracepoint related files fix some warnings add docs for tracepoint Signed-off-by: Godones <chenlinfeng25@outlook.com> --------- Signed-off-by: Godones <chenlinfeng25@outlook.com> Co-authored-by: longjin <longjin@DragonOS.org>
45 lines
1.4 KiB
TOML
45 lines
1.4 KiB
TOML
[package]
|
|
name = "mytrace"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
license.workspace = true
|
|
|
|
[dependencies]
|
|
mytrace-common = { path = "../mytrace-common", features = ["user"] }
|
|
|
|
anyhow = { workspace = true, default-features = true }
|
|
aya = { workspace = true }
|
|
aya-log = { workspace = true }
|
|
env_logger = { workspace = true }
|
|
libc = { workspace = true }
|
|
log = { workspace = true }
|
|
tokio = { workspace = true, features = [
|
|
"macros",
|
|
"rt",
|
|
"rt-multi-thread",
|
|
"net",
|
|
"signal",
|
|
"time"
|
|
] }
|
|
[build-dependencies]
|
|
anyhow = { workspace = true }
|
|
aya-build = { workspace = true }
|
|
# TODO(https://github.com/rust-lang/cargo/issues/12375): this should be an artifact dependency, but
|
|
# it's not possible to tell cargo to use `-Z build-std` to build it. We cargo-in-cargo in the build
|
|
# script to build this, but we want to teach cargo about the dependecy so that cache invalidation
|
|
# works properly.
|
|
#
|
|
# Note also that https://github.com/rust-lang/cargo/issues/10593 occurs when `target = ...` is added
|
|
# to an artifact dependency; it seems possible to work around that by setting `resolver = "1"` in
|
|
# Cargo.toml in the workspace root.
|
|
#
|
|
# Finally note that *any* usage of `artifact = ...` in *any* Cargo.toml in the workspace breaks
|
|
# workflows with stable cargo; stable cargo outright refuses to load manifests that use unstable
|
|
# features.
|
|
mytrace-ebpf = { path = "../mytrace-ebpf" }
|
|
|
|
[[bin]]
|
|
name = "mytrace"
|
|
path = "src/main.rs"
|