Add Makefile.toml to intel_pt_baby_fuzzer (#2779)

* Add intel_pt_babyfuzzer Makefile

* ad cargo make to readme
This commit is contained in:
Marco C. 2024-12-18 16:52:34 +01:00 committed by GitHub
parent d9ddf82499
commit 365ee1c850
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,26 @@
[env]
RUST_BACKTRACE = "0"
TARGET_DIR = "${CARGO_MAKE_CRATE_TARGET_DIRECTORY}"
[env.development]
PROFILE_DIR = "debug"
CARGO_BUILD_ARG = ""
[env.release]
PROFILE_DIR = "release"
CARGO_BUILD_ARG = "--release"
[tasks.build]
command = "cargo"
args = ["build", "--profile", "${CARGO_MAKE_CARGO_PROFILE}"]
[tasks.setcap]
script = "sudo setcap cap_ipc_lock,cap_sys_ptrace,cap_sys_admin,cap_syslog=ep ${CARGO_MAKE_CRATE_TARGET_DIRECTORY}/${PROFILE_DIR}/${CARGO_MAKE_CRATE_NAME}"
dependencies = ["build"]
[tasks.run]
command = "${CARGO_MAKE_CRATE_TARGET_DIRECTORY}/${PROFILE_DIR}/${CARGO_MAKE_CRATE_NAME}"
dependencies = ["build", "setcap"]
[tasks.default]
alias = "run"

View File

@ -12,4 +12,6 @@ After building this example with `cargo build`, you need to give to the executab
You can run this example using `cargo run`, and you can enable the TUI feature by building and running with You can run this example using `cargo run`, and you can enable the TUI feature by building and running with
`--features tui`. `--features tui`.
As an alternative, simply run `cargo make` to build and run the fuzzer (requires `cargo-make`).
This fuzzer is compatible with Linux hosts only having an Intel PT compatible CPU. This fuzzer is compatible with Linux hosts only having an Intel PT compatible CPU.