From patchwork Thu Sep 23 12:40:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Olivier Dion X-Patchwork-Id: 33260 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 DC50F27BBE3; Thu, 23 Sep 2021 14:44:28 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 303EE27BBE5 for ; Thu, 23 Sep 2021 14:44:28 +0100 (BST) Received: from localhost ([::1]:53522 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mTP1X-0003vV-5c for patchwork@mira.cbaines.net; Thu, 23 Sep 2021 09:44:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60390) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mTOWA-0008Lc-Aw for guix-patches@gnu.org; Thu, 23 Sep 2021 09:12:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:41416) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mTOWA-0004VU-2e for guix-patches@gnu.org; Thu, 23 Sep 2021 09:12:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mTOW9-00049v-Pl for guix-patches@gnu.org; Thu, 23 Sep 2021 09:12:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50756] [PATCH] gnu: Add lttng-tools. Resent-From: Olivier Dion Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 23 Sep 2021 13:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 50756 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 50756@debbugs.gnu.org Cc: Olivier Dion X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.163240268815927 (code B ref -1); Thu, 23 Sep 2021 13:12:01 +0000 Received: (at submit) by debbugs.gnu.org; 23 Sep 2021 13:11:28 +0000 Received: from localhost ([127.0.0.1]:52960 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mTOVb-00048n-Be for submit@debbugs.gnu.org; Thu, 23 Sep 2021 09:11:28 -0400 Received: from lists.gnu.org ([209.51.188.17]:57108) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mTO1j-0003Eg-IJ for submit@debbugs.gnu.org; Thu, 23 Sep 2021 08:40:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53484) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mTO1f-0003FY-Ue for guix-patches@gnu.org; Thu, 23 Sep 2021 08:40:35 -0400 Received: from smtp.polymtl.ca ([132.207.4.11]:58595) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mTO1c-0004ef-1t for guix-patches@gnu.org; Thu, 23 Sep 2021 08:40:30 -0400 Received: from laura.hitronhub.home (modemcable094.169-200-24.mc.videotron.ca [24.200.169.94]) (authenticated bits=0) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id 18NCe8tE007964 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Thu, 23 Sep 2021 08:40:19 -0400 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.polymtl.ca 18NCe8tE007964 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=polymtl.ca; s=default; t=1632400819; bh=DlS4a9Fmoe7NxvPYFA5d0rj4BqLcs0DqwaKYxM1oFJA=; h=From:To:Cc:Subject:Date:From; b=mFdn/8TucU9oURHooGv133xYe/HBUaGZW5Cg0Blhh+j0cac88tGl7264WRTYv0yEG KGTjKW06qaS3RR31Yrgw9uyrmU+rn6wI4KwlcIRC0l0VE6v6A9M3Nw8W6n3IbWbOUo fPss6uTj70xTq8phUZ7wy8IT+1s+RdrvypKHqj4E= Date: Thu, 23 Sep 2021 08:40:04 -0400 Message-Id: <20210923124004.3164-1-olivier.dion@polymtl.ca> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 X-Poly-FromMTA: (modemcable094.169-200-24.mc.videotron.ca [24.200.169.94]) at Thu, 23 Sep 2021 12:40:08 +0000 Received-SPF: pass client-ip=132.207.4.11; envelope-from=olivier.dion@polymtl.ca; helo=smtp.polymtl.ca X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Thu, 23 Sep 2021 09:11:26 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Thu, 23 Sep 2021 09:44:18 -0400 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" Reply-to: Olivier Dion X-ACL-Warn: , Olivier Dion via Guix-patches X-Patchwork-Original-From: Olivier Dion via Guix-patches via From: Olivier Dion X-getmail-retrieved-from-mailbox: Patches * gnu/packages/linux.scm (lttng-tools): New variable. Note that tests are not yet working. Signed-off-by: Olivier Dion --- gnu/packages/linux.scm | 54 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 9bb90e599e..a8cb4fd05a 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -53,6 +53,7 @@ ;;; Copyright © 2020 pukkamustard ;;; Copyright © 2021 B. Wilson ;;; Copyright © 2021 Ivan Gankevich +;;; Copyright © 2021 Olivier Dion ;;; ;;; This file is part of GNU Guix. ;;; @@ -8051,6 +8052,59 @@ enable and disable specific instrumentation points, and writes event records to ring buffers shared with a consumer daemon.") (license license:lgpl2.1+))) +(define-public lttng-tools + (package + (name "lttng-tools") + (version "2.12.5") + (source (origin + (method url-fetch) + (uri (string-append "https://lttng.org/files/lttng-tools/" + "lttng-tools-" version ".tar.bz2")) + (sha256 + (base32 "0bgk35423v6z17j1w80m7dcza7gigs1pwyq24sdmgqwg6j2d1zmc")))) + + (build-system gnu-build-system) + + (arguments + `(#:tests? #f + #:parallel-tests? #f + #:phases + (modify-phases %standard-phases + (add-before 'configure 'set-environment-variables + (lambda _ + (setenv "HOME" "/tmp") + (setenv "LTTNG_HOME" "/tmp")))))) + + (inputs + `(("liburcu" ,liburcu) + ("popt" ,popt) + ("numactl" ,numactl))) + + (propagated-inputs + `(("libkmod" ,kmod) + ("modprobe" ,module-init-tools))) + + (native-inputs + `(("pkg-config" ,pkg-config) + ("perl" ,perl) + ("libpfm4" ,libpfm4) + ("python" ,python-3) + ("procps" ,procps) + ("which" ,which) + ("flex" ,flex) + ("bison" ,bison) + ("asciidoc" ,asciidoc) + ("libxml2" ,libxml2) + ("lttng-ust" ,lttng-ust))) + + (home-page "https://lttng.org/") + (synopsis "LTTng userspace tracer libraries") + (description "The lttng-tools project provides a session +daemon (lttng-sessiond) that acts as a tracing registry, the \"lttng\" command +line for tracing control, a lttng-ctl library for tracing control and a +lttng-relayd for network streaming.") + (license license:gpl2))) + (define-public kexec-tools (package (name "kexec-tools")