From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id mPb8Mlw8bGGgXgEAgWs5BA (envelope-from ) for ; Sun, 17 Oct 2021 17:08:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id +IymLlw8bGEATwAAB5/wlQ (envelope-from ) for ; Sun, 17 Oct 2021 15:08:12 +0000 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 0EF1B1502B for ; Sun, 17 Oct 2021 17:08:12 +0200 (CEST) Received: from localhost ([::1]:37804 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mc7li-0002fX-FF for larch@yhetil.org; Sun, 17 Oct 2021 11:08:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51912) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mc7lb-0002fO-0l for guix-patches@gnu.org; Sun, 17 Oct 2021 11:08:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33589) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mc7la-0006Tx-OT for guix-patches@gnu.org; Sun, 17 Oct 2021 11:08:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mc7la-00082B-Da for guix-patches@gnu.org; Sun, 17 Oct 2021 11:08:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50756] [PATCH v2] gnu: Add lttng-tools. Resent-From: Olivier Dion Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 17 Oct 2021 15:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50756 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch moreinfo To: Olivier Dion , Ludovic =?UTF-8?Q?Court=C3=A8s?= , Xinglu Chen Cc: 50756@debbugs.gnu.org Received: via spool by 50756-submit@debbugs.gnu.org id=B50756.163448322830813 (code B ref 50756); Sun, 17 Oct 2021 15:08:02 +0000 Received: (at 50756) by debbugs.gnu.org; 17 Oct 2021 15:07:08 +0000 Received: from localhost ([127.0.0.1]:45135 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mc7ke-00080s-Gy for submit@debbugs.gnu.org; Sun, 17 Oct 2021 11:07:08 -0400 Received: from smtp.polymtl.ca ([132.207.4.11]:58084) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mc7kZ-00080E-JP for 50756@debbugs.gnu.org; Sun, 17 Oct 2021 11:07:03 -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 19HF6fw1012305 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Sun, 17 Oct 2021 11:06:51 -0400 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.polymtl.ca 19HF6fw1012305 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=polymtl.ca; s=default; t=1634483212; bh=gJWCbrIUAE0OTtCyIarBCKgUbzDO1UYrflOLrp9vJZk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dUsPaRRACYG/GPg2em1jpDCCORmpNsfnePdtyzgHKqt/YK3X5/Qe14/aW1UQEBj3q QIZc7VYkNB6/XXVeIqgZcxr7QNCCkrepKsxdG5Ux8IisY/H3tlfB2yrTecv1uWewEF PSxz44QdkpE/33KEQOuz5Td10iyczMGSNrGXVp7I= Date: Sun, 17 Oct 2021 11:06:39 -0400 Message-Id: <20211017150639.4625-1-olivier.dion@polymtl.ca> X-Mailer: git-send-email 2.33.1 In-Reply-To: <87mtnd0yy3.fsf@laura> References: <87mtnd0yy3.fsf@laura> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Poly-FromMTA: (modemcable094.169-200-24.mc.videotron.ca [24.200.169.94]) at Sun, 17 Oct 2021 15:06:41 +0000 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" Reply-to: Olivier Dion X-ACL-Warn: , Olivier Dion via Guix-patches From: Olivier Dion via Guix-patches via X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1634483292; h=from:from:sender:sender:reply-to: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=gJWCbrIUAE0OTtCyIarBCKgUbzDO1UYrflOLrp9vJZk=; b=GxkZOj28YTlEhlzp6AVI0+BsbqH2Aoj8WNKNY8jz4XlPOCOiXPKsrOb8Ukfe0KzHr0Cxsq mBDrnxcagLb0Q/l+YAYz2RKaSbZdedSrB4sWRlLh9djII1fsYfEtV6cpTjn6MfsxL1wljQ bN8yhqgv2eXwYV4peSOtbqHzZoBWPZetbwJoM4QEQoO+OPlsaQLGEJF9feXaC6HUTKVX7P rNcH4kkXlka4b4nBf0VtKRVNzlWCjTor6uP4AANdewYI9PFIp9uzK0XVBWnp6qbu9YDoN0 OOA9O5/3Zp4qky99EsM/2h9cb7n1317uDYBGexHa3aaBswereJCwkDK8T36z8A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1634483292; a=rsa-sha256; cv=none; b=YkcEuLNDMgyuBm6n24N1FMxh+z/p5ewlqhKGmq7LXpF0SAvnMIF/FTTnr8wsUcjLjTAMhO eYagwkd5E+f7u3rcUUZCbsNgMyZmsVZAxVdHyLpOn2iqOI/TMiAJmvhvxnJA6G3LtSPWxR WtCXHjVRCE/fxqLC8R6s7QmPq6ucsJUI8plzC+7D+lIw6pIPpyhokizamjC2ycAtK57p0E OChKmZHpXCd1Zgu4wv3xuUv/DGH0okOMNCKlcNimCXkdWW3WohHsJBaJcO1099OEoFyMS1 YylpA/sT/Y/cMPHVgL84cRT4I5FOmbG/1PQZNOnFN9ZV8alHoUh2K9uFPk42zw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=polymtl.ca header.s=default header.b=dUsPaRRA; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -1.92 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=polymtl.ca header.s=default header.b=dUsPaRRA; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 0EF1B1502B X-Spam-Score: -1.92 X-Migadu-Scanner: scn0.migadu.com X-TUID: 41jtHpzyh7S4 * gnu/packages/linux.scm (lttng-tools): New variable. --- gnu/packages/linux.scm | 61 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index a64bc9b560..e10595ada6 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -52,6 +52,7 @@ ;;; Copyright © 2020 pukkamustard ;;; Copyright © 2021 B. Wilson ;;; Copyright © 2021 Ivan Gankevich +;;; Copyright © 2021 Olivier Dion ;;; ;;; This file is part of GNU Guix. ;;; @@ -8138,6 +8139,66 @@ (define-public lttng-ust 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 + `(;; FIXME - Currently there's a segmentation fault by swig when enabling + ;; Python's bindings. Thus, bindings are disable here. Replace + ;; `disable` by `enable` in #:configure-flags when this is fixed. + #:configure-flags '("--disable-python-bindings") + ;; FIXME - Tests are disabled for now because one test hangs + ;; indefinetely. Also, parallel testing is not possible because of how + ;; the lttng-daemon handles sessions. Thus, keep parallel testing + ;; disabled even after tests are enabled! + #:tests? #f + #:parallel-tests? #f + #:phases + (modify-phases %standard-phases + (add-before 'configure 'set-environment-variables + (lambda _ + (setenv "HOME" "/tmp") + (setenv "LTTNG_HOME" "/tmp")))))) + ;; NOTE - Users have to install python-3 in their profile to use the + ;; bindings. We don't put it in the inputs, because the rest of the tools + ;; can work without it. + (inputs + `(("liburcu" ,liburcu) + ("popt" ,popt) + ("numactl" ,numactl))) + (propagated-inputs + `(("kmod" ,kmod) + ("module-init-tools" ,module-init-tools))) + (native-inputs + `(("pkg-config" ,pkg-config) + ("perl" ,perl) + ("libpfm4" ,libpfm4) + ("python-3" ,python-3) + ("swig" ,swig) + ("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 @code{lttng-sessiond} that acts as a tracing registry, the @command{lttng} command +line for tracing control, a @code{lttng-ctl} library for tracing control and a +@code{lttng-relayd} for network streaming.") + (license (list license:gpl2 license:lgpl2.1)))) + (define-public kexec-tools (package (name "kexec-tools") -- 2.33.1