From d783d9302eaee292f96ca1361ed05de2ac2498f6 Mon Sep 17 00:00:00 2001 From: Florian RICHER Date: Thu, 27 Jun 2024 21:22:07 +0200 Subject: [PATCH] Add gammaray test --- .gitignore | 3 ++- README.md | 12 ++++++++++++ flake.nix | 5 +++++ 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 9af4330..8b815eb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .vscode build/ -.cache/ \ No newline at end of file +.cache/ +.direnv/ diff --git a/README.md b/README.md index ce14c18..eb75b03 100644 --- a/README.md +++ b/README.md @@ -4,3 +4,15 @@ 2. `cmakeConfigurePhase` 3. `buildPhase` 4. `./src/tutorial_kirigami2` + +For use gammaray, you need to disable yama security. + +``` +echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope +``` + +Then run with, + +``` +gammaray ./src/tutorial_kirigami2 +``` diff --git a/flake.nix b/flake.nix index 1487543..15fcb2c 100644 --- a/flake.nix +++ b/flake.nix @@ -22,6 +22,11 @@ pkgs.ninja pkgs.cmake pkgs.gcc + + # Not required at compile time + pkgs.gammaray + pkgs.gdb # Required for gammaray + pkgs.lldb # Required for gammaray ]; dontFixCmake = true;