[package]
edition = "2024"
rust-version = "1.94.1"
name = "ktstr"
version = "0.4.14"
build = "build.rs"
exclude = [
".build-cache/",
"doc/guide/book/",
".github/",
".githooks/",
".config/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Test harness for Linux process schedulers"
documentation = "https://likewhatevs.github.io/ktstr/api/ktstr/"
readme = "README.md"
keywords = [
"sched_ext",
"scheduler",
"testing",
"bpf",
"linux",
]
categories = ["development-tools::testing"]
license = "GPL-2.0-only"
repository = "https://github.com/likewhatevs/ktstr"
[features]
integration = []
[lib]
name = "ktstr"
path = "src/lib.rs"
[[bin]]
name = "cargo-ktstr"
path = "src/bin/cargo-ktstr.rs"
[[bin]]
name = "ktstr"
path = "src/bin/ktstr.rs"
[[bin]]
name = "ktstr-jemalloc-alloc-worker"
path = "src/bin/jemalloc_alloc_worker.rs"
[[bin]]
name = "ktstr-jemalloc-probe"
path = "src/bin/jemalloc_probe.rs"
[[test]]
name = "assert_gate_matrix"
path = "tests/assert_gate_matrix.rs"
[[test]]
name = "cargo_ktstr_cli"
path = "tests/cargo_ktstr_cli.rs"
[[test]]
name = "cgroup_parent_multilevel"
path = "tests/cgroup_parent_multilevel.rs"
[[test]]
name = "compile_fail"
path = "tests/compile_fail.rs"
[[test]]
name = "ctprof_capture"
path = "tests/ctprof_capture.rs"
[[test]]
name = "ctprof_capture_jemalloc_e2e"
path = "tests/ctprof_capture_jemalloc_e2e.rs"
[[test]]
name = "ctprof_capture_jemalloc_wiring"
path = "tests/ctprof_capture_jemalloc_wiring.rs"
[[test]]
name = "ctprof_compare"
path = "tests/ctprof_compare.rs"
[[test]]
name = "ctprof_kconfig_capture"
path = "tests/ctprof_kconfig_capture.rs"
[[test]]
name = "ctprof_pipeline_e2e"
path = "tests/ctprof_pipeline_e2e.rs"
[[test]]
name = "ctprof_show"
path = "tests/ctprof_show.rs"
[[test]]
name = "derive_payload_tests"
path = "tests/derive_payload_tests.rs"
[[test]]
name = "derive_scheduler_payload_wrapper_tests"
path = "tests/derive_scheduler_payload_wrapper_tests.rs"
[[test]]
name = "disk_template_e2e"
path = "tests/disk_template_e2e.rs"
[[test]]
name = "distributed_slice_registration"
path = "tests/distributed_slice_registration.rs"
[[test]]
name = "eevdf_tests"
path = "tests/eevdf_tests.rs"
[[test]]
name = "extra_kconfig_e2e"
path = "tests/extra_kconfig_e2e.rs"
[[test]]
name = "failure_dump_e2e"
path = "tests/failure_dump_e2e.rs"
[[test]]
name = "guest_pmu_e2e"
path = "tests/guest_pmu_e2e.rs"
[[test]]
name = "jemalloc_alloc_worker_exit_codes"
path = "tests/jemalloc_alloc_worker_exit_codes.rs"
[[test]]
name = "jemalloc_probe_helpers_test"
path = "tests/jemalloc_probe_helpers_test.rs"
[[test]]
name = "jemalloc_probe_signals_test"
path = "tests/jemalloc_probe_signals_test.rs"
[[test]]
name = "jemalloc_probe_tests"
path = "tests/jemalloc_probe_tests.rs"
[[test]]
name = "ktstr_cli"
path = "tests/ktstr_cli.rs"
[[test]]
name = "ktstr_sched_tests"
path = "tests/ktstr_sched_tests.rs"
[[test]]
name = "ktstr_test_macro"
path = "tests/ktstr_test_macro.rs"
[[test]]
name = "ldd_pin"
path = "tests/ldd_pin.rs"
[[test]]
name = "live_host_inside_vm"
path = "tests/live_host_inside_vm.rs"
[[test]]
name = "live_host_pipeline_e2e"
path = "tests/live_host_pipeline_e2e.rs"
[[test]]
name = "llm_extract_e2e_test"
path = "tests/llm_extract_e2e_test.rs"
[[test]]
name = "numa_tests"
path = "tests/numa_tests.rs"
[[test]]
name = "parse_stall_duration_test"
path = "tests/parse_stall_duration_test.rs"
[[test]]
name = "payload_fixtures"
path = "tests/payload_fixtures.rs"
[[test]]
name = "preempt_regression"
path = "tests/preempt_regression.rs"
[[test]]
name = "private_module_paths"
path = "tests/private_module_paths.rs"
[[test]]
name = "scenario_coverage"
path = "tests/scenario_coverage.rs"
[[test]]
name = "scx_cleanup_test"
path = "tests/scx_cleanup_test.rs"
[[test]]
name = "snapshot_e2e"
path = "tests/snapshot_e2e.rs"
[[test]]
name = "snapshot_real_capture_e2e"
path = "tests/snapshot_real_capture_e2e.rs"
[[test]]
name = "src_file_size_guard"
path = "tests/src_file_size_guard.rs"
[[test]]
name = "verdict_claim_integration"
path = "tests/verdict_claim_integration.rs"
[[test]]
name = "verifier_pipeline"
path = "tests/verifier_pipeline.rs"
[[test]]
name = "vm_integration"
path = "tests/vm_integration.rs"
[[test]]
name = "worker_thread_integration"
path = "tests/worker_thread_integration.rs"
[[test]]
name = "worktype_eevdf_validation"
path = "tests/worktype_eevdf_validation.rs"
[dependencies.anyhow]
version = "1"
[dependencies.base64]
version = "0.22"
[dependencies.bincode]
version = "2"
features = ["serde"]
[dependencies.blazesym]
version = "0.2"
features = ["dwarf"]
[dependencies.btf-rs]
version = "1.1.1"
[dependencies.clap]
version = "4"
features = ["derive"]
[dependencies.clap_complete]
version = "4"
[dependencies.comfy-table]
version = "7.2"
[dependencies.cpio]
version = "0.4.1"
[dependencies.crc32fast]
version = "1.5"
[dependencies.ctor]
version = "0.8"
[dependencies.encoding_rs]
version = "0.8"
[dependencies.flate2]
version = "1"
[dependencies.gimli]
version = "0.33"
[dependencies.gix]
version = "0.81"
features = [
"sha1",
"blocking-network-client",
"blocking-http-transport-reqwest-rust-tls",
"worktree-mutation",
"status",
"revision",
]
default-features = false
[dependencies.glob]
version = "0.3"
[dependencies.goblin]
version = "0.10.5"
features = ["elf64"]
[dependencies.grex]
version = "1.4"
default-features = false
[dependencies.hex]
version = "0.4"
[dependencies.humantime]
version = "2"
[dependencies.indicatif]
version = "0.18"
[dependencies.itoa]
version = "1"
[dependencies.ktstr-macros]
version = "0.4.8"
[dependencies.kvm-bindings]
version = "0.14"
features = ["fam-wrappers"]
[dependencies.kvm-ioctls]
version = "0.24"
[dependencies.libbpf-rs]
version = "0.26"
features = ["vendored"]
[dependencies.libbpf-sys]
version = "1.6"
features = ["vendored"]
[dependencies.libc]
version = "0.2"
[dependencies.linkme]
version = "0.3"
[dependencies.linux-loader]
version = "0.13"
features = [
"bzimage",
"elf",
"pe",
]
[dependencies.llama-cpp-2]
version = "0.1.145"
features = [
"openmp",
"sampler",
]
default-features = false
[dependencies.lz4_flex]
version = "0.12"
features = ["frame"]
[dependencies.memchr]
version = "2"
[dependencies.memmap2]
version = "0.9"
[dependencies.netlink-packet-core]
version = "0.7"
[dependencies.netlink-packet-generic]
version = "0.3"
[dependencies.netlink-sys]
version = "0.8"
[dependencies.nix]
version = "0.31"
features = [
"event",
"feature",
"fs",
"mount",
"poll",
"process",
"ptrace",
"reboot",
"sched",
"signal",
"term",
"uio",
]
[dependencies.object]
version = "0.39"
features = ["build"]
default-features = false
[dependencies.opendal]
version = "0.55"
features = ["services-ghac"]
default-features = false
[dependencies.perf-event-open-sys]
version = "6"
[dependencies.polars]
version = "0.53.0"
features = [
"lazy",
"describe",
]
default-features = false
[dependencies.rand]
version = "0.10"
[dependencies.rayon]
version = "1"
[dependencies.regex]
version = "1"
[dependencies.reqwest]
version = "0.13"
features = ["blocking"]
[dependencies.rmesg]
version = "1"
features = ["sync"]
default-features = false
[dependencies.rustix]
version = "1"
features = [
"fs",
"shm",
"system",
]
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.sha1]
version = "0.10"
features = ["asm"]
[dependencies.sha2]
version = "0.10"
features = ["asm"]
[dependencies.siphasher]
version = "1"
[dependencies.strsim]
version = "0.11"
[dependencies.strum]
version = "0.27"
features = ["derive"]
[dependencies.tar]
version = "0.4"
[dependencies.tempfile]
version = "3"
[dependencies.thiserror]
version = "2"
[dependencies.tikv-jemalloc-ctl]
version = "0.6"
features = ["stats"]
[dependencies.tikv-jemallocator]
version = "0.6"
features = ["stats"]
[dependencies.tokio]
version = "1"
features = ["rt"]
[dependencies.tracing]
version = "0.1"
[dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]
[dependencies.virtio-bindings]
version = "0.2.7"
[dependencies.virtio-queue]
version = "0.17"
[dependencies.vm-fdt]
version = "0.3"
[dependencies.vm-memory]
version = "=0.17.1"
features = ["backend-mmap"]
[dependencies.vm-superio]
version = "0.8.1"
[dependencies.vmm-sys-util]
version = "0.15"
[dependencies.walkdir]
version = "2"
[dependencies.xz2]
version = "0.1"
features = ["static"]
[dependencies.zerocopy]
version = "0.8.48"
features = ["derive"]
[dependencies.zstd]
version = "0.13"
features = ["zstdmt"]
[dev-dependencies.assert_cmd]
version = "2"
[dev-dependencies.grok]
version = "2"
features = ["fancy-regex"]
default-features = false
[dev-dependencies.insta]
version = "1"
[dev-dependencies.mockito]
version = "1"
[dev-dependencies.predicates]
version = "3"
[dev-dependencies.proptest]
version = "1"
[dev-dependencies.tracing-test]
version = "0.2"
[dev-dependencies.trybuild]
version = "1"
[dev-dependencies.virtio-queue]
version = "0.17"
features = ["test-utils"]
[build-dependencies.cc]
version = "1"
[build-dependencies.flate2]
version = "1"
[build-dependencies.gix]
version = "0.81"
features = [
"sha1",
"blocking-network-client",
"blocking-http-transport-reqwest-rust-tls",
"worktree-mutation",
]
default-features = false
[build-dependencies.libbpf-cargo]
version = "0.26"
[build-dependencies.reqwest]
version = "0.13"
features = ["blocking"]
[build-dependencies.siphasher]
version = "1"
[build-dependencies.tar]
version = "0.4"
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
"cfg(coverage)",
"cfg(coverage_nightly)",
]
[profile.release]
lto = "thin"
panic = "abort"