From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id aJBYBIkI62LjVgAAbAwnHQ (envelope-from ) for ; Thu, 04 Aug 2022 01:45:13 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id ENtNA4kI62L9cgAAG6o9tA (envelope-from ) for ; Thu, 04 Aug 2022 01:45:13 +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 92191D5B5 for ; Thu, 4 Aug 2022 01:45:12 +0200 (CEST) Received: from localhost ([::1]:46478 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oJO35-0004VL-Hx for larch@yhetil.org; Wed, 03 Aug 2022 19:45:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35896) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJO2w-0004VA-Vo for guix-patches@gnu.org; Wed, 03 Aug 2022 19:45:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:60670) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oJO2w-0001lW-FB for guix-patches@gnu.org; Wed, 03 Aug 2022 19:45:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oJO2w-0001hy-6a for guix-patches@gnu.org; Wed, 03 Aug 2022 19:45:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56962] [PATCH] gnu: Add perf-tools. Resent-From: Olivier Dion Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 03 Aug 2022 23:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 56962 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 56962@debbugs.gnu.org Cc: Olivier Dion X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16595702886525 (code B ref -1); Wed, 03 Aug 2022 23:45:02 +0000 Received: (at submit) by debbugs.gnu.org; 3 Aug 2022 23:44:48 +0000 Received: from localhost ([127.0.0.1]:50419 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJO2i-0001hB-0F for submit@debbugs.gnu.org; Wed, 03 Aug 2022 19:44:48 -0400 Received: from lists.gnu.org ([209.51.188.17]:33784) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJO2g-0001h3-AW for submit@debbugs.gnu.org; Wed, 03 Aug 2022 19:44:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35822) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJO2f-0004T2-6K for guix-patches@gnu.org; Wed, 03 Aug 2022 19:44:45 -0400 Received: from smtp.polymtl.ca ([132.207.4.11]:40557) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJO2b-0001hd-J3 for guix-patches@gnu.org; Wed, 03 Aug 2022 19:44:43 -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 273NiUYQ001555 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Wed, 3 Aug 2022 19:44:38 -0400 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.polymtl.ca 273NiUYQ001555 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=polymtl.ca; s=default; t=1659570278; bh=/uSFUG4L5y0N5UAQr01pFd8harLDvwpCUldwuFPujhU=; h=From:To:Cc:Subject:Date:From; b=U+uNn8rwHX0U6ZIFbLzpyJtFT/x4Y6o5wCyvY/I8nphHZf1dnLt+Di/AiP7SzX9xy YNLxM9Crfa+yndoJLRO6KE2Vtlxv/52d2lvRU42y5V2E6ITUzRxuS/19qtaBJc++Y5 3/H+nIthdbO8gdkLLzSxAXkzFvgz5yMWz3amer+k= Date: Wed, 3 Aug 2022 19:44:28 -0400 Message-Id: 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 23:44:30 +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: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" Reply-to: Olivier Dion X-ACL-Warn: , Olivier Dion via Guix-patches From: Olivier Dion via Guix-patches via 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=1659570312; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=/uSFUG4L5y0N5UAQr01pFd8harLDvwpCUldwuFPujhU=; b=qPWXReFPREiz/vDbiwSrkbyxoyDGx6M3LYuh8IdNRAbYn+hEP5BWG7rov/MW9hibN68PIK YU34GDxT5hbYplq4BJaTtsF533GDdWKrJGjUP3D8nB0t4F/wBOC3SGfbk9a5QFf/Z6wTf1 Kov+65ZZ4hxGgWTi/m3O00onIz/gtqmuoVkpvB5CCUS/wpCe4U3dM9cJf7/7Tgwt1CmEPu NDHJxhuME2GEQyaGsJg9uMaxRhE5coyq0kYixMzeacsfypIRO9pxSsC3aq0h/fMVuprmSS rMxmONFQTjsa0bSD70APJf5sRNqjYw0wLMJQ983TmseblFg/zncBcHi5Hz+NSg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1659570312; a=rsa-sha256; cv=none; b=rwMPbQ/3k2GILFM2jxiKpud5Lc0nC0D7QaoLIOaF84iUJ9qdbqEXoSHL+cD8r1S/rgXkw/ U+2pdiwPiqxer/ORwmoQubK9qJbrUKYMfkcWl3ei0WgH4dbGEc0/ep3Dt8xKD+Vg8mVF79 2G/aeU3OzVdn/McASTVrTbzqCnfuoRS5wEaRM3gJRpWWAid1r97PxFowVBjV/+Rr0sIeHu D6JrU035doz0gcGTm/LHVs8DXVz92yHtu7JAMKk1+mhp/PfWVP6DG6Zwj44BvNLlvMP2BN VMhvhTEJD3X0d6ULkmAslNbqd/8qUkul4KcDwaPrb9KakFbcICDogPcjM/KfVw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=polymtl.ca header.s=default header.b=U+uNn8rw; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -1.81 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=polymtl.ca header.s=default header.b=U+uNn8rw; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 92191D5B5 X-Spam-Score: -1.81 X-Migadu-Scanner: scn0.migadu.com X-TUID: rHPg1Eb8ZoQp * 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