From patchwork Mon May 1 01:06:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Andy Tai X-Patchwork-Id: 49721 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 6D02427BBEA; Mon, 1 May 2023 02:08:17 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id F1A0827BBE9 for ; Mon, 1 May 2023 02:08:15 +0100 (BST) 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 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+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/instrumentation.scm (systemtap): New variable --- gnu/packages/instrumentation.scm | 38 ++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) base-commit: 23552fb2fbcb78757e8b563de9466831f6386105 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))) + +