diff options
| author | Maxim Cournoyer <maxim@guixotic.coop> | 2025-10-01 13:01:57 +0900 |
|---|---|---|
| committer | Maxim Cournoyer <maxim@guixotic.coop> | 2025-10-08 23:23:52 +0900 |
| commit | a520e31858890e8585541828b62cd62b12543602 (patch) | |
| tree | 1581147ebf7defd48b7296502d2cefe2126ce223 /gnu/packages/debug.scm | |
| parent | dab43052a683f7ec1a9490dc6d9c09a55fa01bf8 (diff) | |
gnu: Add rr-zen-pmu-workaround.
* gnu/packages/debug.scm (rr-zen-pmu-workaround): New variable.
Change-Id: I8259ac9f90185c62d8a1f9716e24fbc2d6aa7d62
Co-authored-by: Robin Templeton <robin@guixotic.coop>
Diffstat (limited to 'gnu/packages/debug.scm')
| -rw-r--r-- | gnu/packages/debug.scm | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/gnu/packages/debug.scm b/gnu/packages/debug.scm index e89c370846f..f244107841a 100644 --- a/gnu/packages/debug.scm +++ b/gnu/packages/debug.scm | |||
| @@ -6,7 +6,7 @@ | |||
| 6 | ;;; Copyright © 2019 Pkill -9 <pkill9@runbox.com> | 6 | ;;; Copyright © 2019 Pkill -9 <pkill9@runbox.com> |
| 7 | ;;; Copyright © 2020 Vincent Legoll <vincent.legoll@gmail.com> | 7 | ;;; Copyright © 2020 Vincent Legoll <vincent.legoll@gmail.com> |
| 8 | ;;; Copyright © 2020, 2021 Morgan Smith <Morgan.J.Smith@outlook.com> | 8 | ;;; Copyright © 2020, 2021 Morgan Smith <Morgan.J.Smith@outlook.com> |
| 9 | ;;; Copyright © 2020 Maxim Cournoyer <maxim@guixotic.coop> | 9 | ;;; Copyright © 2020, 2025 Maxim Cournoyer <maxim@guixotic.coop> |
| 10 | ;;; Copyright © 2021 Felix Gruber <felgru@posteo.net> | 10 | ;;; Copyright © 2021 Felix Gruber <felgru@posteo.net> |
| 11 | ;;; Copyright © 2021 Foo Chuan Wei <chuanwei.foo@hotmail.com> | 11 | ;;; Copyright © 2021 Foo Chuan Wei <chuanwei.foo@hotmail.com> |
| 12 | ;;; Copyright © 2022 Michael Rohleder <mike@rohleder.de> | 12 | ;;; Copyright © 2022 Michael Rohleder <mike@rohleder.de> |
| @@ -15,6 +15,7 @@ | |||
| 15 | ;;; Copyright © 2023 Ricardo Wurmus <rekado@elephly.net> | 15 | ;;; Copyright © 2023 Ricardo Wurmus <rekado@elephly.net> |
| 16 | ;;; Copyright © 2024 Raven Hallsby <karl@hallsby.com> | 16 | ;;; Copyright © 2024 Raven Hallsby <karl@hallsby.com> |
| 17 | ;;; Copyright © 2025 Nguyễn Gia Phong <mcsinyx@disroot.org> | 17 | ;;; Copyright © 2025 Nguyễn Gia Phong <mcsinyx@disroot.org> |
| 18 | ;;; Copyright © 2025 Robin Templeton <robin@guixotic.coop> | ||
| 18 | ;;; | 19 | ;;; |
| 19 | ;;; This file is part of GNU Guix. | 20 | ;;; This file is part of GNU Guix. |
| 20 | ;;; | 21 | ;;; |
| @@ -40,6 +41,7 @@ | |||
| 40 | #:use-module (guix build-system gnu) | 41 | #:use-module (guix build-system gnu) |
| 41 | #:use-module (guix build-system cmake) | 42 | #:use-module (guix build-system cmake) |
| 42 | #:use-module (guix build-system go) | 43 | #:use-module (guix build-system go) |
| 44 | #:use-module (guix build-system linux-module) | ||
| 43 | #:use-module (guix build-system pyproject) | 45 | #:use-module (guix build-system pyproject) |
| 44 | #:use-module (guix build-system qt) | 46 | #:use-module (guix build-system qt) |
| 45 | #:use-module (guix gexp) | 47 | #:use-module (guix gexp) |
| @@ -847,6 +849,27 @@ GDB/x86 features like hardware data watchpoints, makes debugging much more | |||
| 847 | fun.") | 849 | fun.") |
| 848 | (license license:expat)))) | 850 | (license license:expat)))) |
| 849 | 851 | ||
| 852 | (define-public rr-zen-pmu-workaround | ||
| 853 | (package | ||
| 854 | (name "rr-zen-pmu-workaround") | ||
| 855 | (version (package-version rr)) | ||
| 856 | (source (package-source rr)) | ||
| 857 | (build-system linux-module-build-system) | ||
| 858 | (arguments | ||
| 859 | (list | ||
| 860 | #:tests? #f ;no tests | ||
| 861 | #:phases | ||
| 862 | #~(modify-phases %standard-phases | ||
| 863 | (add-after 'unpack 'cd | ||
| 864 | (lambda _ | ||
| 865 | (chdir "third-party/zen-pmu-workaround")))))) | ||
| 866 | (home-page "https://github.com/rr-debugger/rr/wiki/Zen") | ||
| 867 | (synopsis "AMD Zen workaround kernel module for rr") | ||
| 868 | (description "This is a Linux kernel module that implements | ||
| 869 | workarounds needed for using the @command{rr} debugger with AMD Zen | ||
| 870 | @acronym{CPU, Central Processing Unit}.") | ||
| 871 | (license license:gpl2))) ;GPLv2 only, like the kernel | ||
| 872 | |||
| 850 | (define-public libbacktrace | 873 | (define-public libbacktrace |
| 851 | ;; There are no releases nor tags. | 874 | ;; There are no releases nor tags. |
| 852 | (let ((revision "2") | 875 | (let ((revision "2") |
