From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id +GI+At2/6mIVIgEAbAwnHQ (envelope-from ) for ; Wed, 03 Aug 2022 20:35:09 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id kJxZAd2/6mKLfQEAG6o9tA (envelope-from ) for ; Wed, 03 Aug 2022 20:35:09 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id A1354F1CA for ; Wed, 3 Aug 2022 20:35:08 +0200 (CEST) Received: from localhost ([::1]:41114 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oJJD1-0000H0-Kj for larch@yhetil.org; Wed, 03 Aug 2022 14:35:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42430) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJJCg-0000Gq-EL for guix-devel@gnu.org; Wed, 03 Aug 2022 14:34:49 -0400 Received: from smtp.polymtl.ca ([132.207.4.11]:46239) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJJCc-0004LQ-V8 for guix-devel@gnu.org; Wed, 03 Aug 2022 14:34:45 -0400 Received: from laura.hitronhub.home (modemcable094.169-200-24.mc.videotron.ca [24.200.169.94]) (authenticated bits=0) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id 273IYTVn008104 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Wed, 3 Aug 2022 14:34:36 -0400 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.polymtl.ca 273IYTVn008104 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=polymtl.ca; s=default; t=1659551676; bh=+UUsxzQ1d5kyVRIETYcVmIwc2hHDjJIRhxKVa06EsDg=; h=From:To:Cc:Subject:Date:From; b=p3W+xtYcpguQuHgeFl5Xifu8YpIyWwqQkWseHymFMe1i/BZTjHYGQ3UiSIrxRWa5T G3b8JzqO9D9PRZj7Z+USDHmp49dpI6GuvxkWqtJ8F/jTul/bxp46WR0qdRzPKCYIkJ ZeARZQxj0xOtsTVwU7hfAgSuTkEyjOUqhXSIrZDo= From: Olivier Dion To: guix-devel@gnu.org Cc: Olivier Dion Subject: [PATCH] gnu: Add perf-tools. Date: Wed, 3 Aug 2022 14:34:26 -0400 Message-Id: <762adaa93e56bdb1e32e7aa114153bc525b3ced0.1659551643.git.olivier.dion@polymtl.ca> X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Poly-FromMTA: (modemcable094.169-200-24.mc.videotron.ca [24.200.169.94]) at Wed, 3 Aug 2022 18:34:29 +0000 Received-SPF: pass client-ip=132.207.4.11; envelope-from=olivier.dion@polymtl.ca; helo=smtp.polymtl.ca X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1659551708; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=+UUsxzQ1d5kyVRIETYcVmIwc2hHDjJIRhxKVa06EsDg=; b=FsIVXBZitp3+FdbhQjL83J27ugTI7B4cmNfz1M8oEOPcjXeanDWXvyWp92wSdyG5gZ0gY+ X5Cwi7levcZcNjiHKNOTJaLSfFFUoftO6jdgWnCUiKGaX/LBriLF7crGcNH6m8qvu6Dpmc dApuNPE3/5UsrPNKw8cA/+ujboh8Yduhc5zRdyJw76EVLkJ+Io5jt1RP01uLYbg9XeAPhx C7X8lhXLsAucrveLi/9Uo6zgO8O1M1sfswejqty5Bon6/56tWHtspM991smoPDnvov+GCW S7AMvQ3KAH66fnpKeqpbBMqCqmP0k9aj2B1zzwgTdOHBK/f956ChljE4gbX3kw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1659551708; a=rsa-sha256; cv=none; b=OkxKKEFcz2Y80BIysVlNC8rTyCGtgnpkYFZodO5UjafyROpQl2YxO91FkL1NbZeElgi/51 n/mxaFhQiUm7+wN3PypRIvT4+ZDUwL/Of2XZJu8SRXwSTrBPI26ZNWNFEJLV9ysqP6JBt6 WX7LRkJ/uxRgPKqoCkNV/GeZpBw2TLwBKhbEY62OQ4FZlhPkrwCuz9SUxPUf4/RujBnaNc YfLCeu1WYZOd0F7IW1QtmjjLmL6iZRRyFC0sGuvy/iTGg/qwHeQKETq5wQvXkGVfSItcoX nlDsURMoPFIP+WWAYDlFoNoRj9LoOESclORKHUXdXo+0kJ4gtEsa84FvvHLSaQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=polymtl.ca header.s=default header.b=p3W+xtYc; dmarc=pass (policy=quarantine) header.from=polymtl.ca; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.11 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=polymtl.ca header.s=default header.b=p3W+xtYc; dmarc=pass (policy=quarantine) header.from=polymtl.ca; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: A1354F1CA X-Spam-Score: -2.11 X-Migadu-Scanner: scn1.migadu.com X-TUID: oY4ZwKqkjEC7 * gnu/packages/instrumentation.scm (perf-tools): New variable. --- gnu/packages/instrumentation.scm | 46 ++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/gnu/packages/instrumentation.scm b/gnu/packages/instrumentation.scm index 4e23e9bed4..66329c55a1 100644 --- a/gnu/packages/instrumentation.scm +++ b/gnu/packages/instrumentation.scm @@ -18,6 +18,7 @@ (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 datastructures) @@ -25,6 +26,7 @@ (define-module (gnu packages instrumentation) #:use-module (gnu packages elf) #:use-module (gnu packages engineering) #: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 +292,50 @@ (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"))))) + (inputs (list bash gawk perf)) + (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