From: Olivier Dion via Guix-patches via <guix-patches@gnu.org>
To: 56962@debbugs.gnu.org
Cc: Olivier Dion <olivier.dion@polymtl.ca>
Subject: [bug#56962] [PATCH] gnu: Add perf-tools.
Date: Wed, 3 Aug 2022 19:44:28 -0400 [thread overview]
Message-ID: <b5bd1f1d2f39fb8fbef3fdff8447eead6bcbfb91.1659570242.git.olivier.dion@polymtl.ca> (raw)
* gnu/packages/instrumentation.scm (perf-tools): New variable.
---
gnu/packages/instrumentation.scm | 58 ++++++++++++++++++++++++++++++++
1 file changed, 58 insertions(+)
diff --git a/gnu/packages/instrumentation.scm b/gnu/packages/instrumentation.scm
index 4e23e9bed4..f52cf11505 100644
--- a/gnu/packages/instrumentation.scm
+++ b/gnu/packages/instrumentation.scm
@@ -18,13 +18,17 @@
(define-module (gnu packages instrumentation)
#:use-module (gnu packages base)
+ #:use-module (gnu packages bash)
#:use-module (gnu packages bison)
#:use-module (gnu packages boost)
+ #:use-module (gnu packages commencement)
#:use-module (gnu packages datastructures)
#:use-module (gnu packages documentation)
#:use-module (gnu packages elf)
#:use-module (gnu packages engineering)
+ #:use-module (gnu packages file)
#:use-module (gnu packages flex)
+ #:use-module (gnu packages gawk)
#:use-module (gnu packages glib)
#:use-module (gnu packages haskell-xyz)
#:use-module (gnu packages libunwind)
@@ -290,6 +294,60 @@ (define-public lttng-tools
@code{lttng-relayd} for network streaming.")
(license (list license:gpl2 license:lgpl2.1))))
+(define-public perf-tools
+ (package
+ (name "perf-tools")
+ (version "1.0")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/brendangregg/perf-tools")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1ab735idi0h62yvhzd7822jj3555vygixv4xjrfrdvi8d2hhz6qn"))))
+ (build-system copy-build-system)
+ (arguments
+ `(#:install-plan
+ ',(append
+ (map (cut list <> "bin/")
+ '("disk/bitesize"
+ "fs/cachestat"
+ "execsnoop"
+ "kernel/funccount"
+ "kernel/funcgraph"
+ "kernel/funcslower"
+ "kernel/functrace"
+ "iolatency"
+ "iosnoop"
+ "killsnoop"
+ "kernel/kprobe"
+ "opensnoop"
+ "misc/perf-stat-hist"
+ "tools/reset-ftrace"
+ "syscount"
+ "net/tcpretrans"
+ "system/tpoint"
+ "user/uprobe"))
+ '(("man/man8/" "share/man/man8")))))
+ (propagated-inputs
+ (list
+ bash
+ coreutils ; cat + rm
+ gawk
+ gcc-toolchain ; objdump + ldconfig
+ file
+ perf
+ perl
+ procps ; sysctl
+ which))
+ (home-page "https://github.com/brendangregg/perf-tools")
+ (synopsis "Performance analysis tools")
+ (description "Perf-tools is a collection of scripts for performance
+analysis and instrumentation based on Linux perf_events (aka perf) and
+ftrace.")
+ (license (list license:gpl2))))
+
(define-public uftrace
(package
(name "uftrace")
--
2.37.1
next reply other threads:[~2022-08-03 23:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-03 23:44 Olivier Dion via Guix-patches via [this message]
2022-08-05 12:42 ` bug#56962: [PATCH] gnu: Add perf-tools Mathieu Othacehe
2022-08-05 14:18 ` [bug#56962] " Olivier Dion via Guix-patches via
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b5bd1f1d2f39fb8fbef3fdff8447eead6bcbfb91.1659570242.git.olivier.dion@polymtl.ca \
--to=guix-patches@gnu.org \
--cc=56962@debbugs.gnu.org \
--cc=olivier.dion@polymtl.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).