From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48115) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fBgyN-00021o-D0 for guix-patches@gnu.org; Thu, 26 Apr 2018 09:30:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fBgyJ-0005hu-Cj for guix-patches@gnu.org; Thu, 26 Apr 2018 09:30:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:60442) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fBgyJ-0005he-8b for guix-patches@gnu.org; Thu, 26 Apr 2018 09:30:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fBgyJ-0003GT-1g for guix-patches@gnu.org; Thu, 26 Apr 2018 09:30:03 -0400 Subject: bug#31226: [PATCH] gnu: Add libpfm4. Resent-To: guix-patches@gnu.org Resent-Message-ID: From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) 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> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" 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: Rouby Pierre-Antoine Cc: 31226-done@debbugs.gnu.org --=-=-= 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))) --=-=-=--