From patchwork Sun Apr 30 05:41:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Tai X-Patchwork-Id: 49697 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 C663827BBEA; Sun, 30 Apr 2023 06:42:41 +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 7319127BBE2 for ; Sun, 30 Apr 2023 06:42:40 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pszp8-0004O1-8f; Sun, 30 Apr 2023 01:42:14 -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 1pszow-0004Nb-Ra for guix-patches@gnu.org; Sun, 30 Apr 2023 01:42:07 -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 1pszow-0002bk-If for guix-patches@gnu.org; Sun, 30 Apr 2023 01:42:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pszov-0006rN-UV for guix-patches@gnu.org; Sun, 30 Apr 2023 01:42:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63184] [PATCH] gnu: Add systemtap Resent-From: Andy Tai Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 30 Apr 2023 05:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 63184 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 63184@debbugs.gnu.org Cc: Andy Tai X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.168283327726315 (code B ref -1); Sun, 30 Apr 2023 05:42:01 +0000 Received: (at submit) by debbugs.gnu.org; 30 Apr 2023 05:41:17 +0000 Received: from localhost ([127.0.0.1]:37068 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pszoC-0006qL-J1 for submit@debbugs.gnu.org; Sun, 30 Apr 2023 01:41:17 -0400 Received: from lists.gnu.org ([209.51.188.17]:57368) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pszo7-0006qA-Q3 for submit@debbugs.gnu.org; Sun, 30 Apr 2023 01:41:15 -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 1pszo7-0004Ke-7C for guix-patches@gnu.org; Sun, 30 Apr 2023 01:41:11 -0400 Received: from mail-pj1-x102a.google.com ([2607:f8b0:4864:20::102a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pszo4-0002Yp-RM for guix-patches@gnu.org; Sun, 30 Apr 2023 01:41:10 -0400 Received: by mail-pj1-x102a.google.com with SMTP id 98e67ed59e1d1-24de9c66559so374498a91.0 for ; Sat, 29 Apr 2023 22:41:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682833267; x=1685425267; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:from:to:cc:subject:date:message-id:reply-to; bh=6iA+yTi0U/U2I47HG1Ym3yDXnys5LTHRoQgUOwb0C2k=; b=WrUs4FXlMeVSVbz4C2gMEO/rtlCt0usBdNEA1sPRUGBj5bHQTFt1yOCkvcrp+0orX2 vtN12vZcPBwv4wi7VSLWSnGVx2JGkWWcwKWBxJ/8qWlMzhGFvSOaj8mu37bfe7tKbcXj eoAkBMY3cIVAfMmCfkf/62OV9yo5AzVpsK/BzqEJ9zoAILESmMJWL3WbqEfLranLs+1j f/N6BRxUiOabqLr3+1WVAzkqfMxfwgSrBIeHhpBHSN2rgE0F/tOy9QVR6a6fo9gBp3+u wD6FUw2AjQ7Llew776ceYYJymRb+5dcd3tNf4kx9zNbuU+K+t1fQwD0iO4ZY0B/MZZHr C0oQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682833267; x=1685425267; 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=6iA+yTi0U/U2I47HG1Ym3yDXnys5LTHRoQgUOwb0C2k=; b=aXEvEuMVaK2di3WfpRqBXdo+Efl9TffKlAYKZi8ZQQJ+eLAuRiknso80fOGSxRMJgo JzJsgawC/ENJwsutAvI9QIqo+QiPN3JoknSJgTVeOt1GLo+jp1VdSs1vLjKKoeM0mzwg sfVquXEFbYJHOMRLFvqwfPtzT5r50zbQSkYEN+2DvSYiLr072S21p5WSQzszli3cteTM 7m7nZjatEsK2TkqB0uPTlij+ZuAcariIXucG7dRjDNxKdckZMwhOtvw6GzMS0wqisM/4 QCM2651vp9wJpKoIdlR9JiN/Pukww5cuSE3heKfJ6+Erx4bvz99wuLOG7HrI8fnVy8M+ CHgA== X-Gm-Message-State: AC+VfDz+gp1G5S+Q67sqKJxmp3RW0b5aovg0DxyxZ5NQXVeqLbfBBjxd TaN0jBMdLqctx/DWQbkUCOOTO7SidUk= X-Google-Smtp-Source: ACHHUZ7EWJcV/uS8LxwVg++m/OYtsy3sH0Bx7HgnH7jOeQA+/nmLT1IE3VHiOFWZdbYVNQ3my7no6Q== X-Received: by 2002:a17:90a:3843:b0:247:160d:3a8e with SMTP id l3-20020a17090a384300b00247160d3a8emr10201095pjf.22.1682833266802; Sat, 29 Apr 2023 22:41:06 -0700 (PDT) Received: from localhost.localdomain ([98.37.226.98]) by smtp.googlemail.com with ESMTPSA id y18-20020a17090aa41200b00244991b3f7asm22154576pjp.1.2023.04.29.22.41.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 29 Apr 2023 22:41:06 -0700 (PDT) From: Andy Tai Date: Sat, 29 Apr 2023 22:41:02 -0700 Message-Id: <20230430054102.29098-1-atai@atai.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::102a; envelope-from=lichengtai@gmail.com; helo=mail-pj1-x102a.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/debug.scm (systemtap): New variable --- gnu/packages/debug.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/debug.scm b/gnu/packages/debug.scm index fe00cb5705..3e01c7f0a2 100644 --- a/gnu/packages/debug.scm +++ b/gnu/packages/debug.scm @@ -48,6 +48,8 @@ (define-module (gnu packages debug) #:use-module (gnu packages check) #:use-module (gnu packages code) #:use-module (gnu packages compression) + #:use-module (gnu packages cpio) + #:use-module (gnu packages elf) #:use-module (gnu packages flex) #:use-module (gnu packages gdb) #:use-module (gnu packages glib) @@ -918,3 +920,39 @@ (define-public delve (synopsis "Debugger for the Go programming language") (description "Delve is a debugger for the Go programming language.") (license license:expat))) + +(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 linux trace/probe tool") + (description + "SystemTap provides free software (GPL) 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. + +Among other tracing/probing tools, SystemTap is the tool of choice for complex +tasks that may require live analysis, programmable on-line response, and +whole-system symbolic access. SystemTap can also handle simple tracing jobs.") + (license license:gpl2+)))