Skip to content

Commit 39b7b78

Browse files
committed
samples/syscount: add syscount tool
Signed-off-by: Ivena <huangzhy77@outlook.com>
1 parent 71b5c60 commit 39b7b78

File tree

9 files changed

+809
-0
lines changed

9 files changed

+809
-0
lines changed

samples/meson.build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ subdir('syscall_tp')
1414
subdir('trace_event')
1515
subdir('tracex5')
1616
subdir('xdp_test')
17+
subdir('syscount')
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[build]
2+
target = "x86_64-unknown-none"
3+
4+
[target.x86_64-unknown-none]
5+
linker = "ld.mold"
6+
rustflags = [
7+
"-Zthreads=8",
8+
"-Cforce-frame-pointers=y",
9+
"-Csymbol-mangling-version=v0",
10+
"-Ccodegen-units=1",
11+
"-Crelocation-model=pie",
12+
"-Crelro-level=full",
13+
]
14+
15+
[unstable]
16+
build-std = ["core"]

samples/syscount/Cargo.lock

Lines changed: 98 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

samples/syscount/Cargo.toml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
[package]
2+
name = "syscount"
3+
version = "0.1.0"
4+
edition = "2024"
5+
6+
[dependencies]
7+
8+
[dependencies.rex]
9+
path = "../../rex"
10+
11+
[lints.clippy]
12+
disallowed_methods = "forbid"
13+
disallowed_types = "forbid"
14+
15+
[lints.rust]
16+
incomplete_features = "forbid"
17+
internal_features = "forbid"
18+
unsafe_code = "forbid"
19+
unstable_features = "forbid"
20+
21+
[profile.dev]
22+
panic = "abort"
23+
debug = false
24+
25+
[profile.release]
26+
panic = "abort"
27+
debug = false
28+
lto = true

samples/syscount/clippy.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
disallowed-methods = [
2+
"core::mem::forget",
3+
]
4+
5+
disallowed-types = [
6+
"core::mem::ManuallyDrop",
7+
]

0 commit comments

Comments
 (0)