SHA256
8
0
forked from pool/papi
Files
papi/papi-codecleanup.patch
Philipp Thomas a111f8d1fd - Update to 4.4.0:
New Platforms:
  --------------
  Added PAPI support for Blue Gene/Q.
  Bug Fixes:
  ----------
  * Fix buffer overrun in lmsensors component  
  * libpfm4: Update to current git libpfm4 snapshot
  * Fix broken Pentium 4 Prescott support we were missing the netburst_p 
	declaration in papi_events.csv
  * Fix various locking issues in the threaded code. 
  * Fix multiplexing of large eventsets on perf_events systems.
	This presented when using more than 31 multiplexed events on perf_event  
- Add a devel-static package that contains the static libraries.
- For other changes since 4.2.1 see RELEASENOTES.txt in the packages
  documentation.

- Update to 4.2.1:
   Bug Fixes:
   ----------
	* multiplexing math errors were fixed in perf_events.c
	* more multiplexing read path errors were identified and fixed
	* Fix SMP ARM issues reported by Harald Servat.
	* src/papi_events.csv: Update the coreduo (not core2) events.  Most
	  notably the FP events were wrong.
	* Modify Intel Sandybridge PAPI_FP_OPS and PAPI_FP_INS events to
	  not count x87 fp instructions.  The problem is that the current
	  predefines were made by adding 5 events.  With the NMI watchdog
	  stealing an event and/or hyperthreading reducing the number of
	  available counters by half, we just couldn't fit.

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/papi?expand=0&rev=10
2012-04-23 15:14:43 +00:00

61 lines
1.5 KiB
Diff

Index: src/libpfm-3.y/lib/pfmlib_gen_ia32.c
===================================================================
--- src/libpfm-3.y/lib/pfmlib_gen_ia32.c.orig 2010-09-09 22:34:11.000000000 +0200
+++ src/libpfm-3.y/lib/pfmlib_gen_ia32.c 2012-02-20 12:31:08.877758682 +0100
@@ -257,7 +257,7 @@ pfm_gen_ia32_init(void)
unsigned int val;
pmu_eax_t eax;
pmu_edx_t edx;
- } eax, ecx, edx, ebx;
+ } eax = { 0 }, ecx = { 0 }, edx = { 0 }, ebx = { 0 };
unsigned int num_cnt, i;
int ret;
Index: src/ctests/mendes-alt.c
===================================================================
--- src/ctests/mendes-alt.c.orig 2011-05-21 00:12:50.000000000 +0200
+++ src/ctests/mendes-alt.c 2012-02-20 12:31:08.877758682 +0100
@@ -18,14 +18,13 @@ static int EventSet = PAPI_NULL;
extern int TESTS_QUIET; /* Declared in test_utils.c */
-int
-main( argc, argv )
-int argc;
-char *argv[];
+void funcX(double a[MAX], double b[MAX], int n);
+void funcA(double a[MAX], double b[MAX], int n);
+
+int main(int argc, char *argv[])
{
int i, retval;
double a[MAX], b[MAX];
- void funcX( ), funcA( );
tests_quiet( argc, argv ); /* Set TESTS_QUIET variable */
@@ -158,10 +157,7 @@ char *argv[];
exit( 1 );
}
-void
-funcX( a, b, n )
-double a[MAX], b[MAX];
-int n;
+void funcX(double a[MAX], double b[MAX], int n)
{
int i, k;
for ( k = 0; k < TIMES; k++ )
@@ -169,10 +165,7 @@ int n;
a[i] = a[i] * b[i] + 1.;
}
-void
-funcA( a, b, n )
-double a[MAX], b[MAX];
-int n;
+void funcA(double a[MAX], double b[MAX], int n)
{
int i, k;
double t[MAX];