Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Makefile.toml to intel_pt_baby_fuzzer #2779

Merged
merged 2 commits into from
Dec 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions fuzzers/binary_only/intel_pt_baby_fuzzer/Makefile.toml
Original file line number Diff line number Diff line change
@@ -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"
2 changes: 2 additions & 0 deletions fuzzers/binary_only/intel_pt_baby_fuzzer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
`--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.
Loading