From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38885) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f9Y18-00048U-Mw for guix-patches@gnu.org; Fri, 20 Apr 2018 11:32:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f9Y14-0002F9-KQ for guix-patches@gnu.org; Fri, 20 Apr 2018 11:32:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:54598) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f9Y14-0002Ef-Hw for guix-patches@gnu.org; Fri, 20 Apr 2018 11:32:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1f9Y14-00046H-9r for guix-patches@gnu.org; Fri, 20 Apr 2018 11:32:02 -0400 Subject: [bug#31226] [PATCH] gnu: Add libpfm4. Resent-Message-ID: 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 From: Rouby Pierre-Antoine Date: Fri, 20 Apr 2018 17:30:57 +0200 Message-Id: <20180420153057.14400-1-pierre-antoine.rouby@inria.fr> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 31226@debbugs.gnu.org Cc: Rouby Pierre-Antoine * 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