- Update to libpfm-3.5.
This commit is contained in:
parent
136b4c389a
commit
a185a25c9b
@ -1 +1 @@
|
|||||||
libpfm-3.4.tar.gz
|
libpfm-3.5.tar.gz
|
||||||
|
@ -1,22 +1,38 @@
|
|||||||
diff -up libpfm-3.4/examples/self_pipe.c.unused libpfm-3.4/examples/self_pipe.c
|
diff -up libpfm-3.5/examples/multiplex.c.unused libpfm-3.5/examples/multiplex.c
|
||||||
--- libpfm-3.4/examples/self_pipe.c.unused 2008-05-02 09:49:25.000000000 -0400
|
--- libpfm-3.5/examples/multiplex.c.unused 2008-07-31 16:58:21.000000000 -0400
|
||||||
+++ libpfm-3.4/examples/self_pipe.c 2008-05-02 09:49:40.000000000 -0400
|
+++ libpfm-3.5/examples/multiplex.c 2008-07-31 16:59:18.000000000 -0400
|
||||||
@@ -125,6 +125,7 @@ main(int argc, char **argv)
|
@@ -613,6 +613,7 @@ measure_one_cpu(char **argv)
|
||||||
size_t len;
|
struct pollfd pollfd;
|
||||||
char *name;
|
pid_t pid = 0;
|
||||||
char c = '0';
|
int ret, timeout;
|
||||||
+ int nbytes;
|
+ int nbytes;
|
||||||
|
|
||||||
/*
|
memset(ctx, 0, sizeof(ctx));
|
||||||
* pass options to library (optional)
|
memset(&load_arg, 0, sizeof(load_arg));
|
||||||
@@ -312,8 +313,8 @@ main(int argc, char **argv)
|
@@ -721,7 +722,7 @@ measure_one_cpu(char **argv)
|
||||||
* ping pong loop
|
*/
|
||||||
*/
|
if (options.opt_ovfl_switch) {
|
||||||
while(!quit) {
|
pfarg_msg_t msg;
|
||||||
- write(pr[1], "c", 1);
|
- read(ctxid, &msg, sizeof(msg));
|
||||||
- read(pw[0], &c, 1);
|
+ nbytes = read(ctxid, &msg, sizeof(msg));
|
||||||
+ nbytes = write(pr[1], "c", 1);
|
}
|
||||||
+ nbytes = read(pw[0], &c, 1);
|
switch_sets(ctxid);
|
||||||
}
|
break;
|
||||||
|
diff -up libpfm-3.5/lib/pfmlib_os_linux.c.unused libpfm-3.5/lib/pfmlib_os_linux.c
|
||||||
|
--- libpfm-3.5/lib/pfmlib_os_linux.c.unused 2008-07-30 17:16:40.000000000 -0400
|
||||||
|
+++ libpfm-3.5/lib/pfmlib_os_linux.c 2008-07-31 16:57:05.000000000 -0400
|
||||||
|
@@ -390,12 +390,13 @@ static int
|
||||||
|
pfm_init_syscalls_sysfs(void)
|
||||||
|
{
|
||||||
|
FILE *fp;
|
||||||
|
+ int nbytes;
|
||||||
|
|
||||||
|
fp = fopen("/sys/kernel/perfmon/syscall", "r");
|
||||||
|
if (!fp)
|
||||||
|
return -1;
|
||||||
|
|
||||||
|
- fscanf(fp, "%d", &sys_base);
|
||||||
|
+ nbytes = fscanf(fp, "%d", &sys_base);
|
||||||
|
|
||||||
|
fclose(fp);
|
||||||
|
|
||||||
if (pfm_stop(ctx_fd))
|
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
%define DATE 080502
|
%define DATE 080731
|
||||||
%define libpfm_release 1
|
%define libpfm_release 1
|
||||||
Summary: A performance monitoring library for Linux/ia64
|
Summary: A performance monitoring library for Linux/ia64
|
||||||
Name: libpfm
|
Name: libpfm
|
||||||
Version: 3.4
|
Version: 3.5
|
||||||
Release: %{libpfm_release}%{?dist}
|
Release: %{libpfm_release}%{?dist}
|
||||||
License: MIT-style
|
License: MIT-style
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
ExclusiveArch: ia64 %{ix86} x86_64
|
ExclusiveArch: ia64 %{ix86} x86_64 ppc ppc64
|
||||||
ExclusiveOS: linux
|
ExclusiveOS: linux
|
||||||
AutoReqProv: no
|
AutoReqProv: no
|
||||||
Source: http://prdownloads.sourceforge.net/perfmon2/%{name}-%{version}.tar.gz
|
Source: http://prdownloads.sourceforge.net/perfmon2/%{name}-%{version}.tar.gz
|
||||||
@ -72,6 +72,9 @@ rm -rf %{buildroot}
|
|||||||
%{_prefix}/include/*
|
%{_prefix}/include/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Jul 31 2008 Will Cohen <wcohen@redhat.com> - 3.5-1
|
||||||
|
- Update to libpfm-3.5.
|
||||||
|
|
||||||
* Fri May 2 2008 Will Cohen <wcohen@redhat.com> - 3.4-1
|
* Fri May 2 2008 Will Cohen <wcohen@redhat.com> - 3.4-1
|
||||||
- Update to libpfm-3.4.
|
- Update to libpfm-3.4.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user