From patchwork Sun Apr 30 22:56:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Andy Tai X-Patchwork-Id: 49719 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 BF94127BBE9; Sun, 30 Apr 2023 23:57: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=unavailable 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 1BA0727BBE2 for ; Sun, 30 Apr 2023 23:57:15 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ptFyb-0005Zx-1g; Sun, 30 Apr 2023 18:57:05 -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 1ptFyZ-0005Xk-8G for guix-patches@gnu.org; Sun, 30 Apr 2023 18:57:03 -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 1ptFyY-0006Fs-VB for guix-patches@gnu.org; Sun, 30 Apr 2023 18:57:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ptFyX-0001qr-Rg for guix-patches@gnu.org; Sun, 30 Apr 2023 18:57:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63184] [PATCH v2] 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: Sun, 30 Apr 2023 22:57:01 +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.16828953937075 (code B ref 63184); Sun, 30 Apr 2023 22:57:01 +0000 Received: (at 63184) by debbugs.gnu.org; 30 Apr 2023 22:56:33 +0000 Received: from localhost ([127.0.0.1]:38543 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ptFy4-0001q2-QZ for submit@debbugs.gnu.org; Sun, 30 Apr 2023 18:56:33 -0400 Received: from mail-pj1-f52.google.com ([209.85.216.52]:58602) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ptFxz-0001pe-Sx for 63184@debbugs.gnu.org; Sun, 30 Apr 2023 18:56:31 -0400 Received: by mail-pj1-f52.google.com with SMTP id 98e67ed59e1d1-24781e23c27so2008088a91.0 for <63184@debbugs.gnu.org>; Sun, 30 Apr 2023 15:56:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682895381; x=1685487381; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:from:to:cc:subject:date:message-id:reply-to; bh=YtKjC/pnSeFR7mHo5hli7SzMrOgRA5zJ0j6EI2ZTdGY=; b=hhDYTo4kR0U8knbqexBC16yoHNgr1ADbG//j9ewnh5oaRrwA8XZ+/v7YGJdzlGctBD 8mENkYBBR7M+16x3Un8WxSLYaewBueUje0YeKAIrFwjlXgjYuIOSqSXLAOFqzA1wL46P d4DRIRkSU4DsU8Z28B45HQF4Xxs5CYjLHqkXIFhi/k30tUeNF6rov6hnT1iLv+KsGL8L G03d7SfK3UVvVcbIZWa8plAaVtVuvjCViDzCjtYgCKcDo59wPtrfDbVkpCBxFilL9/Dj KGJBVvoWkzX1x0owqRVx7x6b25QiLq1eH0bBwl9JYNb48dNHpwMkI9luWJf6DY1eCGi0 g+PA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682895381; x=1685487381; 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=YtKjC/pnSeFR7mHo5hli7SzMrOgRA5zJ0j6EI2ZTdGY=; b=E+B5BIgxUsoTVilBdb6aTrNbABP2BgSYdH1VgZ4LDP7LsTO0Mg0uWi1L4jyaFELFe1 X/TonfsHzzFzlYYoQN48iqGgUjshB4zIokFHtt37U3O90/j6sOswiRzou31Aw5Lq1rSN Z38Cdr+eKakhJSf5rNAKusdwRSgn06rJhDiIlw8JbYsivA88UKTw7+vbZlKzmAaupeiz UR1cs7+sAdd7rrYysNYIYy3kkaz0mQrS/uGCtZpbIwlVzJsOgaLmLQV4OiFRRiAvdkFr z2jBbhVGyIuuZdW9NWI8S07w9zZyT6u9dRR5rEJcbcPoZpqnvuEJsIx8Qq84dv1H98P0 u7iQ== X-Gm-Message-State: AC+VfDxfdBJrvcxlUIK6qg2GSMGznpDC4NQzse+VnupkoJv76X6RmHtv UlwLiVHPT/UjEJhE3oFHbMyyy50gHKE= X-Google-Smtp-Source: ACHHUZ6tgIzwYikzIevxtmxxY1gcHjRKrwvXIY5f2shLDg6D5dtsydzipxtdgJ8gSup7FxIZm9gbew== X-Received: by 2002:a17:90b:8ce:b0:24d:f3f5:4d2e with SMTP id ds14-20020a17090b08ce00b0024df3f54d2emr3037721pjb.10.1682895380371; Sun, 30 Apr 2023 15:56:20 -0700 (PDT) Received: from localhost.localdomain ([98.37.226.98]) by smtp.googlemail.com with ESMTPSA id ge14-20020a17090b0e0e00b0024e069c4099sm229645pjb.46.2023.04.30.15.56.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 30 Apr 2023 15:56:19 -0700 (PDT) From: Andy Tai Date: Sun, 30 Apr 2023 15:56:16 -0700 Message-Id: <20230430225616.27671-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: 85c137adde84055d78b16d84e5ae4817995bce28 prerequisite-patch-id: f5feb08c9249508d22e0debbe47222324e9f354e prerequisite-patch-id: de3be9ca0e20edac4bdf93eacda91b65df196c2d prerequisite-patch-id: 9967fd9b0de5c36d810ca5c346e49762dfd3dad8 diff --git a/gnu/packages/instrumentation.scm b/gnu/packages/instrumentation.scm index c25086127a..eca7b5bd15 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. ;;; @@ -25,6 +26,7 @@ (define-module (gnu packages instrumentation) #:use-module (gnu packages compression) #:use-module (gnu packages datastructures) #:use-module (gnu packages documentation) + #:use-module (gnu packages cpio) #:use-module (gnu packages elf) #:use-module (gnu packages engineering) #:use-module (gnu packages file) @@ -526,3 +528,39 @@ (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))) + + +(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 "a 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+))) +