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 ms9.migadu.com with LMTPS id aMUbJdaCT2TrmgAASxT56A (envelope-from ) for ; Mon, 01 May 2023 11:13:58 +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 mLVMJNaCT2TxLAEAG6o9tA (envelope-from ) for ; Mon, 01 May 2023 11:13:58 +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 21EB5B9F2 for ; Mon, 1 May 2023 11:13:58 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ptI1M-0006Uy-RC; Sun, 30 Apr 2023 21:08:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ptI1K-0006UE-K0 for guix-patches@gnu.org; Sun, 30 Apr 2023 21:08:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ptI1K-0001um-BT for guix-patches@gnu.org; Sun, 30 Apr 2023 21:08:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ptI1K-0005XA-6a for guix-patches@gnu.org; Sun, 30 Apr 2023 21:08:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63184] [PATCH v3] gnu: Add systemtap References: <20230430054102.29098-1-atai@atai.org> In-Reply-To: <20230430054102.29098-1-atai@atai.org> Resent-From: Andy Tai Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 01 May 2023 01:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63184 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 63184@debbugs.gnu.org Cc: Andy Tai Received: via spool by 63184-submit@debbugs.gnu.org id=B63184.168290323221196 (code B ref 63184); Mon, 01 May 2023 01:08:02 +0000 Received: (at 63184) by debbugs.gnu.org; 1 May 2023 01:07:12 +0000 Received: from localhost ([127.0.0.1]:38574 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ptI0V-0005Vn-SR for submit@debbugs.gnu.org; Sun, 30 Apr 2023 21:07:12 -0400 Received: from mail-pg1-f172.google.com ([209.85.215.172]:48189) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ptI0R-0005VX-AV for 63184@debbugs.gnu.org; Sun, 30 Apr 2023 21:07:10 -0400 Received: by mail-pg1-f172.google.com with SMTP id 41be03b00d2f7-518d325b8a2so1722560a12.0 for <63184@debbugs.gnu.org>; Sun, 30 Apr 2023 18:07:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682903221; x=1685495221; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:from:to:cc:subject:date:message-id:reply-to; bh=SsrQNXMWNoEyCgq2yDgZm6DAzL9Ni5F+RE2/TjeqkHs=; b=ObusS9GBmAaQR9I8CofiB8N8lok45HOntpZXmgxiJZKkXZyhc+RaHJKs94T9w7UNr1 X5m80DGWi9gETgyYbryzFv4cEfgVdaoicYjPpKGHTn21EXRyhY3A3uxxfzL8HTXtwuBZ 3z+gP8eROOz+8+UP6Fo3DXIOGOBTLBBXktMKxJJmgl+7f69bbvuOrjk315Hafcv7p8AJ awA0NaTvhqnKoMtKw3WZgInDbP64jc6xwOFgNLCdyMGGP2jLVObw2ZgcX5mKglkAvpkl eQg/BumIvT4+nPw59Vr/A2y4V0oB7QL87caeMbPzm12WQEalfoM0O4WgzjslRDKuV6MM FJiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682903221; x=1685495221; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=SsrQNXMWNoEyCgq2yDgZm6DAzL9Ni5F+RE2/TjeqkHs=; b=XYomANkMO1tEmh4Np3luNg9I/oH8d7BJfkDABgiZTNq8s2iD5jU1zBw1QiYM25117a z/FLiWLAe1pIGo08voAJ5tXrQbhN3yAsPSFIqUFaX7Bfqbm3aTbU7bleOxxxsc7dFkOy AbnFoWbh+9cvrjs/ggYKOnsbOauM6GRBfFIaxUlUUdJISUYMkyvk1ZzOC15INhM1rHmV dI5+7pdDpttezRhHdrbntVLJOKQBt9C6fDXapEExKqDOjSrdiYsB9W2AacogyWLQyCC6 BvzuKVBGBjbk49va6/gq2FA9hL3tD/gFEOrUqYodls6yWo+G62Qri7/nX8NWcp1naNOD AHtw== X-Gm-Message-State: AC+VfDxl/aPTY5tSIIsuKWE5MqqiH1bWZRcE/uGxOwrtap9SRZ7Kkv5i 7C0DzyMdfttKDc+NdZN3DEU7LKTAe0k= X-Google-Smtp-Source: ACHHUZ5umH4rZOPT9ey04zhO5KyCBYKGGIAyl3+GowEXwV1VKNQEc65hpV6UNwr58NWQnSsJ5cUQmg== X-Received: by 2002:a17:902:f68b:b0:1a2:58f1:5e1d with SMTP id l11-20020a170902f68b00b001a258f15e1dmr15337500plg.36.1682903220886; Sun, 30 Apr 2023 18:07:00 -0700 (PDT) Received: from localhost.localdomain ([98.37.226.98]) by smtp.googlemail.com with ESMTPSA id c11-20020a170902724b00b001a527761c31sm16840455pll.79.2023.04.30.18.06.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 30 Apr 2023 18:06:59 -0700 (PDT) From: Andy Tai Date: Sun, 30 Apr 2023 18:06:54 -0700 Message-Id: <20230501010654.8940-1-atai@atai.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1682932438; a=rsa-sha256; cv=none; b=MaEVOcmL+7DbT2iE7d85NDr+da3SxAP+Nx5/uPLMpw/VQmwJgt3janlUY6Nd8MxXLYRw/i 1Zx1IaAvqGs4g1KVcVSHIMxvkk0mmv/aIFdHsC4LKomGzP58a/EudN+ypUnI68vXj9+KlH SpxflpcmRPDrnE5INSaVH7Le1hDetzkVx6cbYxaRhRsL6z+lQyR2SucIEaqQD/X0ZwCPPt BqqakBd/byAzeJK8d5MqY+nJETDx4xaEnmYX+35Wzm9hxiXGVyz3nJGTx/fTvoeQv1bPn0 PnUDRyxN8ap8XgQZmIWkgfVHDvFKTnCydU6TVxLCXAJmpTjmL3tmjXh5zyrPQA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=ObusS9GB; dmarc=none; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1682932438; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=SsrQNXMWNoEyCgq2yDgZm6DAzL9Ni5F+RE2/TjeqkHs=; b=bQqyTfOWmYAY9dYPYxtCOufz8kjLwRI9/3KneMqRlvDuWVvF+8gmGmNJWbuED7uT6XLx7Y WRGnZHGi202/2CIU7VISG/MLze5J8+3ECHxUzpqPd65BRHm5FE1WlMeWuPz/yb7P7Buo18 j3bFQRFA91ikjYyvSvtzeKebS1xGkIrrZU9eHtT4vsR0sVTfDS4cVKEopRCCg3L2712BM2 nZ9R9K6PgYZyLJeZgxNQeoQYxaIzuV58jSrZEeei4bseBmbJl8QFhjP5uOoBIt/rYK8m68 ZYPaJd0zZZ2wq4CoIROoYIznIKhF5LvCQ1b3lZQRNLxjXlt2ZcH+UNnqyu2Evg== X-Migadu-Spam-Score: 0.09 X-Spam-Score: 0.09 X-Migadu-Queue-Id: 21EB5B9F2 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=ObusS9GB; dmarc=none; 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-TUID: 1RSurCalO64s * gnu/packages/instrumentation.scm (systemtap): New variable --- gnu/packages/instrumentation.scm | 38 ++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/gnu/packages/instrumentation.scm b/gnu/packages/instrumentation.scm index c25086127a..0d57cdd316 100644 --- a/gnu/packages/instrumentation.scm +++ b/gnu/packages/instrumentation.scm @@ -1,5 +1,6 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2021, 2022 Olivier Dion +;;; Copyright © 2023 Andy Tai ;;; ;;; This file is part of GNU Guix. ;;; @@ -23,6 +24,7 @@ (define-module (gnu packages instrumentation) #:use-module (gnu packages boost) #:use-module (gnu packages commencement) #:use-module (gnu packages compression) + #:use-module (gnu packages cpio) #:use-module (gnu packages datastructures) #:use-module (gnu packages documentation) #:use-module (gnu packages elf) @@ -468,6 +470,40 @@ (define-public perf-tools ftrace.") (license (list license:gpl2)))) +(define-public systemtap + (package + (name "systemtap") + (version "4.9") + (source (origin + (method url-fetch) + (uri (string-append + "https://sourceware.org/ftp/systemtap/releases/" name "-" + version ".tar.gz")) + (sha256 + (base32 + "161smpv4ajqfncmgylvs89bbix1id60nf0g7clmga2lxxax3646h")))) + (build-system gnu-build-system) + (native-inputs (list cpio python)) + (inputs (list elfutils)) + + (home-page "https://sourceware.org/systemtap/") + (synopsis "GNU/Linux trace/probe tool") + (description + "SystemTap provides infrastructure to simplify the +gathering of information about the running Linux system. This assists +diagnosis of a performance or functional problem. SystemTap eliminates the +need for the developer to go through the tedious and disruptive +instrument, recompile, install, and reboot sequence that may be otherwise +required to collect data. + +SystemTap provides a simple command line interface and scripting language for +writing instrumentation for a live running kernel plus user-space applications. +We are publishing samples, as well as enlarging the internal \"tapset\" script +library to aid reuse and abstraction. SystemTap is a tool for complex +tasks that may require live analysis, programmable on-line response, and +whole-system symbolic access, and can also handle simple tracing jobs.") + (license license:gpl2+))) + (define-public uftrace (package (name "uftrace") @@ -526,3 +562,5 @@ (define-public uftrace performance. It provides the command @command{uftrace}. User that want to do scripting need to install python-3 or luajit in their profile.") (license license:gpl2))) + + base-commit: 23552fb2fbcb78757e8b563de9466831f6386105 -- 2.39.2