Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
javierhonduco committed Nov 12, 2024
1 parent 66215c9 commit f17808c
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 20 deletions.
17 changes: 3 additions & 14 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 8 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
name = "lightswitch"
version = "0.1.0"
edition = "2021"
description = "CPU profiler as a library for Linux suitable for on-demand and continuous profiling"
license = "MIT"
repository = "https://github.com/javierhonduco/lightswitch"

[workspace]
members = [
Expand All @@ -16,7 +19,7 @@ memmap2 = "0.9.5"
anyhow = "1.0.93"
object = "0.36.5"
# TODO: Move to a release.
libbpf-rs = { git = "https://github.com/libbpf/libbpf-rs", rev="4ebf2ac7cd509e9442aff9b9f92164f252adf2a3", features = ["static"] }
libbpf-rs = { version = "0.23.0", features = ["static"] }
tracing = "0.1.40"
thiserror = "2.0.3"
errno = "0.3.9"
Expand Down Expand Up @@ -45,10 +48,10 @@ ctrlc = "3.4.5"
crossbeam-channel = "0.5.13"
libbpf-sys = "1.5.0"
itertools = "0.13.0"
lightswitch-metadata = {path = "lightswitch-metadata"}
lightswitch-proto = { path = "lightswitch-proto"}
lightswitch-capabilities = {path = "lightswitch-capabilities"}
lightswitch-object = {path = "lightswitch-object"}
lightswitch-metadata = { path = "lightswitch-metadata", version = "0.1.0" }
lightswitch-proto = { path = "lightswitch-proto", version = "0.1.0" }
lightswitch-capabilities = { path = "lightswitch-capabilities", version = "0.1.0" }
lightswitch-object = { path = "lightswitch-object", version = "0.1.0" }
memmap2 = { workspace = true }
anyhow = { workspace = true }
object = { workspace = true }
Expand Down
2 changes: 2 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@
cargo-insta
## Remove unused deps
cargo-shear
## Release to crates.io
cargo-release
# Commented out because this is typically not cached and it's rarely used
# ocamlPackages.magic-trace
];
Expand Down
5 changes: 4 additions & 1 deletion lightswitch-capabilities/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
name = "lightswitch-capabilities"
version = "0.1.0"
edition = "2021"
description = "Discover which BPF features are available"
license = "MIT"
repository = "https://github.com/javierhonduco/lightswitch"

[dependencies]
libc = "0.2.162"
Expand All @@ -11,7 +14,7 @@ libbpf-rs = { workspace = true}
perf-event-open-sys = { workspace = true}
errno = { workspace = true}
tracing = { workspace = true}
nix = { workspace = true}
nix = { workspace = true, features = ["feature"] }

[build-dependencies]
libbpf-cargo = { workspace = true}
Expand Down
3 changes: 3 additions & 0 deletions lightswitch-metadata/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
name = "lightswitch-metadata"
version = "0.1.0"
edition = "2021"
description = "Provides metadata used by profilers and debuggers"
license = "MIT"
repository = "https://github.com/javierhonduco/lightswitch"

[dependencies]
lru = "0.12.5"
Expand Down
3 changes: 3 additions & 0 deletions lightswitch-object/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
name = "lightswitch-object"
version = "0.1.0"
edition = "2021"
description = "Deals with object files"
license = "MIT"
repository = "https://github.com/javierhonduco/lightswitch"

[dependencies]
data-encoding = "2.6.0"
Expand Down
3 changes: 3 additions & 0 deletions lightswitch-proto/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
name = "lightswitch-proto"
version = "0.1.0"
edition = "2021"
description = "Protocol buffers wrappers for use in profiling tools"
license = "MIT"
repository = "https://github.com/javierhonduco/lightswitch"

[dependencies]
prost = "0.13"
Expand Down

0 comments on commit f17808c

Please sign in to comment.