From unknown Mon Jun 23 13:15:10 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#31226] [PATCH] gnu: Add libpfm4. Resent-From: Rouby Pierre-Antoine Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 20 Apr 2018 15:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 31226 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 31226@debbugs.gnu.org Cc: Rouby Pierre-Antoine X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.152423830115733 (code B ref -1); Fri, 20 Apr 2018 15:32:02 +0000 Received: (at submit) by debbugs.gnu.org; 20 Apr 2018 15:31:41 +0000 Received: from localhost ([127.0.0.1]:34262 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f9Y0j-00045g-FW for submit@debbugs.gnu.org; Fri, 20 Apr 2018 11:31:41 -0400 Received: from eggs.gnu.org ([208.118.235.92]:47608) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f9Y0h-00045U-Id for submit@debbugs.gnu.org; Fri, 20 Apr 2018 11:31:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f9Y0b-0001Ei-IJ for submit@debbugs.gnu.org; Fri, 20 Apr 2018 11:31:34 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:51472) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1f9Y0b-0001EN-FG for submit@debbugs.gnu.org; Fri, 20 Apr 2018 11:31:33 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38565) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f9Y0a-0003yZ-5d for guix-patches@gnu.org; Fri, 20 Apr 2018 11:31:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f9Y0W-00012S-3a for guix-patches@gnu.org; Fri, 20 Apr 2018 11:31:32 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:30766) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1f9Y0V-0000vb-Ou for guix-patches@gnu.org; Fri, 20 Apr 2018 11:31:28 -0400 X-IronPort-AV: E=Sophos;i="5.49,302,1520895600"; d="scan'208";a="323840901" Received: from unknown (HELO antelope.bordeaux.inria.fr) ([193.50.110.173]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES128-GCM-SHA256; 20 Apr 2018 17:31:24 +0200 From: Rouby Pierre-Antoine Date: Fri, 20 Apr 2018 17:30:57 +0200 Message-Id: <20180420153057.14400-1-pierre-antoine.rouby@inria.fr> X-Mailer: git-send-email 2.17.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) * gnu/packageslinux.scm (libpfm4): New variable. --- gnu/packages/linux.scm | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index c09e0474a..725f90780 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -4596,3 +4596,44 @@ emulates the behaviour of Gunnar Monell's older fbgrab utility.") restriction, permission handling and more. This package provides userspace interface to this kernel feature.") (license license:lgpl2.1))) + +(define-public libpfm4 + (package + (name "libpfm4") + (version "4.9.0") + (source (origin + (method url-fetch) + (uri (string-append "mirror://sourceforge/perfmon2/" + name "/libpfm-" version ".tar.gz")) + (sha256 + (base32 + "1qp4g4n6dw42p2w5rkwzdb7ynk8h7g5vg01ybpmvxncgwa7bw3yv")))) + (build-system gnu-build-system) + (arguments + '(#:modules ((guix build utils) + (guix build gnu-build-system)) + #:phases (modify-phases %standard-phases + (delete 'configure) + (delete 'check) + (replace 'build + (lambda* (#:key inputs outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out"))) + (setenv "CC" "gcc") + (invoke "make") + #t))) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out"))) + (invoke "make" + (string-append "PREFIX=" out) + "install") + #t)))))) + (synopsis "Performance events monitoring library for Linux perf_events") + (description + "This package is a user library called libpfm4 to help setup performance +events for use with the perf_events Linux kernel interface. + +This is a complete rewrite of libpfm3 and it is NOT backward compatible +with it.") + (home-page "http://perfmon2.sourceforge.net/") + (license license:expat))) -- 2.17.0 From unknown Mon Jun 23 13:15:10 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Rouby Pierre-Antoine Subject: bug#31226: closed (Re: [bug#31226] [PATCH] gnu: Add libpfm4.) Message-ID: References: <87o9i62j0p.fsf@gnu.org> <20180420153057.14400-1-pierre-antoine.rouby@inria.fr> X-Gnu-PR-Message: they-closed 31226 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 31226@debbugs.gnu.org Date: Thu, 26 Apr 2018 13:30:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1524749403-12535-1" This is a multi-part message in MIME format... ------------=_1524749403-12535-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #31226: [PATCH] gnu: Add libpfm4. which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 31226@debbugs.gnu.org. --=20 31226: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D31226 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1524749403-12535-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 31226-done) by debbugs.gnu.org; 26 Apr 2018 13:29:31 +0000 Received: from localhost ([127.0.0.1]:40105 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fBgxm-0003F6-Mh for submit@debbugs.gnu.org; Thu, 26 Apr 2018 09:29:30 -0400 Received: from hera.aquilenet.fr ([185.233.100.1]:58244) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fBgxl-0003Eu-5o for 31226-done@debbugs.gnu.org; Thu, 26 Apr 2018 09:29:29 -0400 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 8C48B125CB; Thu, 26 Apr 2018 15:29:28 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rWwhz9B0Z-_Q; Thu, 26 Apr 2018 15:29:27 +0200 (CEST) Received: from ribbon (unknown [193.50.110.156]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 3A6F512572; Thu, 26 Apr 2018 15:29:27 +0200 (CEST) From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Rouby Pierre-Antoine Subject: Re: [bug#31226] [PATCH] gnu: Add libpfm4. References: <20180420153057.14400-1-pierre-antoine.rouby@inria.fr> Date: Thu, 26 Apr 2018 15:29:26 +0200 In-Reply-To: <20180420153057.14400-1-pierre-antoine.rouby@inria.fr> (Rouby Pierre-Antoine's message of "Fri, 20 Apr 2018 17:30:57 +0200") Message-ID: <87o9i62j0p.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 31226-done Cc: 31226-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Rouby Pierre-Antoine skribis: > * gnu/packageslinux.scm (libpfm4): New variable. Applied with the following changes based on their README. Thank you! Ludo=E2=80=99. --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index b6d00c853..4d2446317 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -4712,12 +4712,18 @@ high-speed networking devices.") (string-append "PREFIX=" out) "install") #t)))))) - (synopsis "Performance events monitoring library for Linux perf_events") + (synopsis "Performance event monitoring library") (description - "This package is a user library called libpfm4 to help setup performance -events for use with the perf_events Linux kernel interface. + "This package provides a library called libpfm4, which is used to develop +monitoring tools exploiting the performance monitoring events such as those +provided by the Performance Monitoring Unit (PMU) of modern processors. -This is a complete rewrite of libpfm3 and it is NOT backward compatible -with it.") +Libpfm4 helps convert from an event name, expressed as a string, to the event +encoding that is either the raw event as documented by the hardware vendor or +the OS-specific encoding. In the latter case, the library is able to prepare +the OS-specific data structures needed by the kernel to setup the event. + +libpfm4 provides support for the @code{perf_events} interface, which was +introduced in Linux 2.6.31.") (home-page "http://perfmon2.sourceforge.net/") (license license:expat))) --=-=-=-- ------------=_1524749403-12535-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 20 Apr 2018 15:31:41 +0000 Received: from localhost ([127.0.0.1]:34262 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f9Y0j-00045g-FW for submit@debbugs.gnu.org; Fri, 20 Apr 2018 11:31:41 -0400 Received: from eggs.gnu.org ([208.118.235.92]:47608) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f9Y0h-00045U-Id for submit@debbugs.gnu.org; Fri, 20 Apr 2018 11:31:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f9Y0b-0001Ei-IJ for submit@debbugs.gnu.org; Fri, 20 Apr 2018 11:31:34 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:51472) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1f9Y0b-0001EN-FG for submit@debbugs.gnu.org; Fri, 20 Apr 2018 11:31:33 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38565) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f9Y0a-0003yZ-5d for guix-patches@gnu.org; Fri, 20 Apr 2018 11:31:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f9Y0W-00012S-3a for guix-patches@gnu.org; Fri, 20 Apr 2018 11:31:32 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:30766) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1f9Y0V-0000vb-Ou for guix-patches@gnu.org; Fri, 20 Apr 2018 11:31:28 -0400 X-IronPort-AV: E=Sophos;i="5.49,302,1520895600"; d="scan'208";a="323840901" Received: from unknown (HELO antelope.bordeaux.inria.fr) ([193.50.110.173]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES128-GCM-SHA256; 20 Apr 2018 17:31:24 +0200 From: Rouby Pierre-Antoine To: guix-patches@gnu.org Subject: [PATCH] gnu: Add libpfm4. Date: Fri, 20 Apr 2018 17:30:57 +0200 Message-Id: <20180420153057.14400-1-pierre-antoine.rouby@inria.fr> X-Mailer: git-send-email 2.17.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit Cc: Rouby Pierre-Antoine X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) * gnu/packageslinux.scm (libpfm4): New variable. --- gnu/packages/linux.scm | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index c09e0474a..725f90780 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -4596,3 +4596,44 @@ emulates the behaviour of Gunnar Monell's older fbgrab utility.") restriction, permission handling and more. This package provides userspace interface to this kernel feature.") (license license:lgpl2.1))) + +(define-public libpfm4 + (package + (name "libpfm4") + (version "4.9.0") + (source (origin + (method url-fetch) + (uri (string-append "mirror://sourceforge/perfmon2/" + name "/libpfm-" version ".tar.gz")) + (sha256 + (base32 + "1qp4g4n6dw42p2w5rkwzdb7ynk8h7g5vg01ybpmvxncgwa7bw3yv")))) + (build-system gnu-build-system) + (arguments + '(#:modules ((guix build utils) + (guix build gnu-build-system)) + #:phases (modify-phases %standard-phases + (delete 'configure) + (delete 'check) + (replace 'build + (lambda* (#:key inputs outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out"))) + (setenv "CC" "gcc") + (invoke "make") + #t))) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out"))) + (invoke "make" + (string-append "PREFIX=" out) + "install") + #t)))))) + (synopsis "Performance events monitoring library for Linux perf_events") + (description + "This package is a user library called libpfm4 to help setup performance +events for use with the perf_events Linux kernel interface. + +This is a complete rewrite of libpfm3 and it is NOT backward compatible +with it.") + (home-page "http://perfmon2.sourceforge.net/") + (license license:expat))) -- 2.17.0 ------------=_1524749403-12535-1--