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 ms9.migadu.com with LMTPS id wPGSKUvyTmQGcgAASxT56A (envelope-from ) for ; Mon, 01 May 2023 00:57:15 +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 eLPOKEvyTmS9hAEAG6o9tA (envelope-from ) for ; Mon, 01 May 2023 00:57:15 +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 46BF439FF4 for ; Mon, 1 May 2023 00:57:15 +0200 (CEST) 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 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=1682895435; a=rsa-sha256; cv=none; b=CzLjKSCXk5ZqIVa579QlNkwkvkFfIaXxHU6H4cUEFZLqXnc/tANroY3hzUpT11mSgW6NEf 2n7Q/yM8cZ4ZCSEL9D2w0CiIVjrCHY1YUx7x18wxcyNSEuln3GVhi3tNQDS7xMy1127uEr mFazNso7ypTI2QcpSGXsGBSLAEa52/KSzaJabUKq7ey3LxaYOG0KEEtW9C/uC97SRSsFrP bZp+OymK5Jx+3tnBAZP2vBaTol4HPr7BKParUWDd/4gLhAQsSq+bsmls/+YqcKT3W5maSQ 6S0rheGrNdXczm3VKpspOu7iKhnki/mJdCzl6j3reNHyz10hBiR87jCxAfnlGg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=hhDYTo4k; 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=1682895435; 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=YtKjC/pnSeFR7mHo5hli7SzMrOgRA5zJ0j6EI2ZTdGY=; b=TDLZ3aVP4dfX0kksG8pzomfL6Ak+RECXhh7c5OWHhvL1YgHOy228dcjt5fq+crNNVa1w5p +Fn800H9vqu26HTFksM8Ji+ZEIWVVx7mWvwbltW17BiXJ/HDbrhl9/ssbBGliRONxH3QTH QNG/MXnzcs+hspcYqv5mBOb0HoZTa1ShiCdvL2dBI1ijX6ztlW3O/lG2sn60FCfDvuMS+7 Y5JHPuGxwdNu1tLbQyIx6//6t8EBPAz6ArlXER8VSB3oOkrgqhy1po2lFHh2QyqCztxecz ZImpqeUiDNRmRq2QqqDZSCVVlrUkadGLoedwNmYZoelzu6GC5GwKeRAeI4rVkg== X-Migadu-Spam-Score: -0.41 X-Spam-Score: -0.41 X-Migadu-Queue-Id: 46BF439FF4 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=hhDYTo4k; 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: O04xqrHx6/Tz * 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..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+))) + base-commit: 85c137adde84055d78b16d84e5ae4817995bce28 prerequisite-patch-id: f5feb08c9249508d22e0debbe47222324e9f354e prerequisite-patch-id: de3be9ca0e20edac4bdf93eacda91b65df196c2d prerequisite-patch-id: 9967fd9b0de5c36d810ca5c346e49762dfd3dad8 -- 2.39.2