* [bug#31226] [PATCH] gnu: Add libpfm4.
@ 2018-04-20 15:30 Rouby Pierre-Antoine
2018-04-26 13:29 ` bug#31226: " Ludovic Courtès
0 siblings, 1 reply; 2+ messages in thread
From: Rouby Pierre-Antoine @ 2018-04-20 15:30 UTC (permalink / raw)
To: 31226; +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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* bug#31226: [PATCH] gnu: Add libpfm4.
2018-04-20 15:30 [bug#31226] [PATCH] gnu: Add libpfm4 Rouby Pierre-Antoine
@ 2018-04-26 13:29 ` Ludovic Courtès
0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2018-04-26 13:29 UTC (permalink / raw)
To: Rouby Pierre-Antoine; +Cc: 31226-done
[-- Attachment #1: Type: text/plain, Size: 206 bytes --]
Rouby Pierre-Antoine <pierre-antoine.rouby@inria.fr> skribis:
> * gnu/packageslinux.scm (libpfm4): New variable.
Applied with the following changes based on their README.
Thank you!
Ludo’.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 1460 bytes --]
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)))
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-04-26 13:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-20 15:30 [bug#31226] [PATCH] gnu: Add libpfm4 Rouby Pierre-Antoine
2018-04-26 13:29 ` bug#31226: " Ludovic Courtès
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.