From 46aa62449ff4857117dcf6d11a78027679ffe4ec Mon Sep 17 00:00:00 2001 From: Griffin Smith Date: Fri, 16 Apr 2021 10:49:46 -0400 Subject: feat(grfn/yeren): Install rr This... mostly works! I had to install it from the latest master branch to get it functioning on my CPU, hopefully once they release a new version I can remove the override. Change-Id: I863d2e822b149838c58aa1c1e7dc73a127a0aeb8 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3022 Reviewed-by: grfn Tested-by: BuildkiteCI --- users/grfn/system/home/modules/development.nix | 10 ++++++++++ users/grfn/system/system/machines/yeren.nix | 4 ++++ 2 files changed, 14 insertions(+) diff --git a/users/grfn/system/home/modules/development.nix b/users/grfn/system/home/modules/development.nix index 327a3998d5c3..c33dad2b4c2b 100644 --- a/users/grfn/system/home/modules/development.nix +++ b/users/grfn/system/home/modules/development.nix @@ -56,6 +56,16 @@ with lib; lldb hyperfine clang-tools + (rr.overrideAttrs (_: rec { + version = "f25671d094edac8059cec56b98d7f10f2c740697"; + src = pkgs.fetchFromGitHub { + owner = "rr-debugger"; + repo = "rr"; + rev = version; + sha256 = "149s4mw8vl8d3nx15sfp62z0izp2dibz99k720j75rjnkwk2bq2z"; + fetchSubmodules = true; + }; + })) clj2nix clojure diff --git a/users/grfn/system/system/machines/yeren.nix b/users/grfn/system/system/machines/yeren.nix index 7bb06716f79a..a44d73ed0466 100644 --- a/users/grfn/system/system/machines/yeren.nix +++ b/users/grfn/system/system/machines/yeren.nix @@ -43,6 +43,10 @@ extraModprobeConfig = '' options snd-intel-dspcfg dsp_driver=1 ''; + + kernel.sysctl = { + "kernel.perf_event_paranoid" = -1; + }; }; fileSystems = { -- cgit 1.4.1