Blame ChangeLogP420.txt

Packit Service a1973e
2011-10-25
Packit Service a1973e
Packit Service a1973e
	* doc/: Makefile, doxygen_procedure.txt: Update doxygen_procedure
Packit Service a1973e
	  to note that we need a recent version of doxygen.
Packit Service a1973e
Packit Service a1973e
	* man/: man1/avail.c.1, man1/clockres.c.1, man1/command_flags_t.1,
Packit Service a1973e
	  man1/command_line.c.1, man1/component.c.1, man1/cost.c.1,
Packit Service a1973e
	  man1/decode.c.1, man1/error_codes.c.1, man1/event_chooser.c.1,
Packit Service a1973e
	  man1/mem_info.c.1, man1/native_avail.c.1, man1/options_t.1,
Packit Service a1973e
	  man1/papi_avail.1, man1/papi_clockres.1,
Packit Service a1973e
	  man1/papi_command_line.1, man1/papi_component_avail.1,
Packit Service a1973e
	  man1/papi_cost.1, man1/papi_decode.1, man1/papi_error_codes.1,
Packit Service a1973e
	  man1/papi_event_chooser.1, man1/papi_mem_info.1,
Packit Service a1973e
	  man1/papi_multiplex_cost.1, man1/papi_native_avail.1, man3/CDI.3,
Packit Service a1973e
	  man3/HighLevelInfo.3, man3/PAPIF.3, man3/PAPIF_accum.3,
Packit Service a1973e
	  man3/PAPIF_accum_counters.3, man3/PAPIF_add_event.3,
Packit Service a1973e
	  man3/PAPIF_add_events.3, man3/PAPIF_assign_eventset_component.3,
Packit Service a1973e
	  man3/PAPIF_cleanup_eventset.3, man3/PAPIF_create_eventset.3,
Packit Service a1973e
	  man3/PAPIF_destroy_eventset.3, man3/PAPIF_enum_event.3,
Packit Service a1973e
	  man3/PAPIF_event_code_to_name.3, man3/PAPIF_event_name_to_code.3,
Packit Service a1973e
	  man3/PAPIF_flips.3, man3/PAPIF_flops.3,
Packit Service a1973e
	  man3/PAPIF_get_clockrate.3, man3/PAPIF_get_dmem_info.3,
Packit Service a1973e
	  man3/PAPIF_get_domain.3, man3/PAPIF_get_event_info.3,
Packit Service a1973e
	  man3/PAPIF_get_exe_info.3, man3/PAPIF_get_granularity.3,
Packit Service a1973e
	  man3/PAPIF_get_hardware_info.3, man3/PAPIF_get_multiplex.3,
Packit Service a1973e
	  man3/PAPIF_get_preload.3, man3/PAPIF_get_real_cyc.3,
Packit Service a1973e
	  man3/PAPIF_get_real_nsec.3, man3/PAPIF_get_real_usec.3,
Packit Service a1973e
	  man3/PAPIF_get_virt_cyc.3, man3/PAPIF_get_virt_usec.3,
Packit Service a1973e
	  man3/PAPIF_ipc.3, man3/PAPIF_is_initialized.3,
Packit Service a1973e
	  man3/PAPIF_library_init.3, man3/PAPIF_lock.3,
Packit Service a1973e
	  man3/PAPIF_multiplex_init.3, man3/PAPIF_num_cmp_hwctrs.3,
Packit Service a1973e
	  man3/PAPIF_num_counters.3, man3/PAPIF_num_events.3,
Packit Service a1973e
	  man3/PAPIF_num_hwctrs.3, man3/PAPIF_perror.3,
Packit Service a1973e
	  man3/PAPIF_query_event.3, man3/PAPIF_read.3,
Packit Service a1973e
	  man3/PAPIF_read_ts.3, man3/PAPIF_register_thread.3,
Packit Service a1973e
	  man3/PAPIF_remove_event.3, man3/PAPIF_remove_events.3,
Packit Service a1973e
	  man3/PAPIF_reset.3, man3/PAPIF_set_cmp_domain.3,
Packit Service a1973e
	  man3/PAPIF_set_cmp_granularity.3, man3/PAPIF_set_debug.3,
Packit Service a1973e
	  man3/PAPIF_set_domain.3, man3/PAPIF_set_event_domain.3,
Packit Service a1973e
	  man3/PAPIF_set_granularity.3, man3/PAPIF_set_inherit.3,
Packit Service a1973e
	  man3/PAPIF_set_multiplex.3, man3/PAPIF_shutdown.3,
Packit Service a1973e
	  man3/PAPIF_start.3, man3/PAPIF_start_counters.3,
Packit Service a1973e
	  man3/PAPIF_state.3, man3/PAPIF_stop.3,
Packit Service a1973e
	  man3/PAPIF_stop_counters.3, man3/PAPIF_thread_id.3,
Packit Service a1973e
	  man3/PAPIF_thread_init.3, man3/PAPIF_unlock.3,
Packit Service a1973e
	  man3/PAPIF_unregister_thread.3, man3/PAPIF_write.3,
Packit Service a1973e
	  man3/PAPI_accum.3, man3/PAPI_accum_counters.3,
Packit Service a1973e
	  man3/PAPI_add_event.3, man3/PAPI_add_events.3,
Packit Service a1973e
	  man3/PAPI_addr_range_option_t.3, man3/PAPI_address_map_t.3,
Packit Service a1973e
	  man3/PAPI_all_thr_spec_t.3,
Packit Service a1973e
	  man3/PAPI_assign_eventset_component.3, man3/PAPI_attach.3,
Packit Service a1973e
	  man3/PAPI_attach_option_t.3, man3/PAPI_cleanup_eventset.3,
Packit Service a1973e
	  man3/PAPI_component_info_t.3, man3/PAPI_cpu_option_t.3,
Packit Service a1973e
	  man3/PAPI_create_eventset.3, man3/PAPI_debug_option_t.3,
Packit Service a1973e
	  man3/PAPI_descr_error.3, man3/PAPI_destroy_eventset.3,
Packit Service a1973e
	  man3/PAPI_detach.3, man3/PAPI_dmem_info_t.3,
Packit Service a1973e
	  man3/PAPI_domain_option_t.3, man3/PAPI_enum_event.3,
Packit Service a1973e
	  man3/PAPI_event_code_to_name.3, man3/PAPI_event_info_t.3,
Packit Service a1973e
	  man3/PAPI_event_name_to_code.3, man3/PAPI_exe_info_t.3,
Packit Service a1973e
	  man3/PAPI_flips.3, man3/PAPI_flops.3, man3/PAPI_get_cmp_opt.3,
Packit Service a1973e
	  man3/PAPI_get_component_info.3, man3/PAPI_get_dmem_info.3,
Packit Service a1973e
	  man3/PAPI_get_event_info.3, man3/PAPI_get_executable_info.3,
Packit Service a1973e
	  man3/PAPI_get_hardware_info.3, man3/PAPI_get_multiplex.3,
Packit Service a1973e
	  man3/PAPI_get_opt.3, man3/PAPI_get_overflow_event_index.3,
Packit Service a1973e
	  man3/PAPI_get_real_cyc.3, man3/PAPI_get_real_nsec.3,
Packit Service a1973e
	  man3/PAPI_get_real_usec.3, man3/PAPI_get_shared_lib_info.3,
Packit Service a1973e
	  man3/PAPI_get_thr_specific.3, man3/PAPI_get_virt_cyc.3,
Packit Service a1973e
	  man3/PAPI_get_virt_nsec.3, man3/PAPI_get_virt_usec.3,
Packit Service a1973e
	  man3/PAPI_granularity_option_t.3, man3/PAPI_hw_info_t.3,
Packit Service a1973e
	  man3/PAPI_inherit_option_t.3, man3/PAPI_ipc.3,
Packit Service a1973e
	  man3/PAPI_is_initialized.3, man3/PAPI_itimer_option_t.3,
Packit Service a1973e
	  man3/PAPI_library_init.3, man3/PAPI_list_events.3,
Packit Service a1973e
	  man3/PAPI_list_threads.3, man3/PAPI_lock.3,
Packit Service a1973e
	  man3/PAPI_mh_cache_info_t.3, man3/PAPI_mh_info_t.3,
Packit Service a1973e
	  man3/PAPI_mh_level_t.3, man3/PAPI_mh_tlb_info_t.3,
Packit Service a1973e
	  man3/PAPI_mpx_info_t.3, man3/PAPI_multiplex_init.3,
Packit Service a1973e
	  man3/PAPI_multiplex_option_t.3, man3/PAPI_num_cmp_hwctrs.3,
Packit Service a1973e
	  man3/PAPI_num_components.3, man3/PAPI_num_counters.3,
Packit Service a1973e
	  man3/PAPI_num_events.3, man3/PAPI_num_hwctrs.3,
Packit Service a1973e
	  man3/PAPI_option_t.3, man3/PAPI_overflow.3, man3/PAPI_perror.3,
Packit Service a1973e
	  man3/PAPI_preload_info_t.3, man3/PAPI_profil.3,
Packit Service a1973e
	  man3/PAPI_query_event.3, man3/PAPI_read.3,
Packit Service a1973e
	  man3/PAPI_read_counters.3, man3/PAPI_read_ts.3,
Packit Service a1973e
	  man3/PAPI_register_thread.3, man3/PAPI_remove_event.3,
Packit Service a1973e
	  man3/PAPI_remove_events.3, man3/PAPI_reset.3,
Packit Service a1973e
	  man3/PAPI_set_cmp_domain.3, man3/PAPI_set_cmp_granularity.3,
Packit Service a1973e
	  man3/PAPI_set_debug.3, man3/PAPI_set_domain.3,
Packit Service a1973e
	  man3/PAPI_set_granularity.3, man3/PAPI_set_multiplex.3,
Packit Service a1973e
	  man3/PAPI_set_opt.3, man3/PAPI_set_thr_specific.3,
Packit Service a1973e
	  man3/PAPI_shlib_info_t.3, man3/PAPI_shutdown.3,
Packit Service a1973e
	  man3/PAPI_sprofil.3, man3/PAPI_sprofil_t.3, man3/PAPI_start.3,
Packit Service a1973e
	  man3/PAPI_start_counters.3, man3/PAPI_state.3, man3/PAPI_stop.3,
Packit Service a1973e
	  man3/PAPI_stop_counters.3, man3/PAPI_strerror.3,
Packit Service a1973e
	  man3/PAPI_thread_id.3, man3/PAPI_thread_init.3,
Packit Service a1973e
	  man3/PAPI_unlock.3, man3/PAPI_unregister_thread.3,
Packit Service a1973e
	  man3/PAPI_write.3, man3/high_api.3, man3/low_api.3,
Packit Service a1973e
	  man3/papi_data_structures.3, man3/papi_vector_t.3,
Packit Service a1973e
	  man3/ret_codes.3: Update doxygen generated man-pages for the
Packit Service a1973e
	  pending release.
Packit Service a1973e
Packit Service a1973e
	  In the future, we need to use a newer version of doxygen to
Packit Service a1973e
	  generate the pages (1.7 +) because locally installed verions
Packit Service a1973e
	  appear to have a  bug.
Packit Service a1973e
Packit Service a1973e
	* src/ctests/nmi_watchdog.c: The nmi_watchdog test should report a
Packit Service a1973e
	  Warning if nmi_watchdog is enabled   not an error.  (Since we do
Packit Service a1973e
	  work around it, even if performance is   likely impacted).
Packit Service a1973e
Packit Service a1973e
	* src/ctests/: Makefile, nmi_watchdog.c: I think the nmi_watchdog
Packit Service a1973e
	  stuff is going to cause us problems down the road.
Packit Service a1973e
Packit Service a1973e
	  Thus add a test that will tell users about the issue.
Packit Service a1973e
Packit Service a1973e
	* src/perf_events.c: The nmi_watchdog workaround is needed for
Packit Service a1973e
	  multiplexing too.
Packit Service a1973e
Packit Service a1973e
	  The kernel devs don't seem eager to fix this.  Until they do,
Packit Service a1973e
	  we'll have to fall back to software multiplexing on recent
Packit Service a1973e
	  kernels that have nmi_watchdog enabled (most vendor kernels).
Packit Service a1973e
Packit Service a1973e
	* src/multiplex.c: Yesterday's coverity fix to make sure the
Packit Service a1973e
	  cleanup and destroy rerturn values were checked ended up
Packit Service a1973e
	  over-writing "retval" in a way that broke the sdsc4-mpx test.
Packit Service a1973e
	  Fix things so that doesn't happen.
Packit Service a1973e
Packit Service a1973e
	* src/: papi.c, perf_events.c, ctests/overflow_allcounters.c: Some
Packit Service a1973e
	  changes for perf_event MIPS support
Packit Service a1973e
Packit Service a1973e
	  + Add __mips__ cases to the format_group, schedulability, and
Packit Service a1973e
	  broken   multiplexing bug workarounds, as even new Linux mips
Packit Service a1973e
	  kernels have	 these bugs + fix overflow_allcounters to work
Packit Service a1973e
	  properly if the MHz value   is zero.	+ Add some debugging to
Packit Service a1973e
	  PAPI_overflow() so that errors are more obvious   than just
Packit Service a1973e
	  returning PAPI_EINVAL, which made the previous item	a pain to
Packit Service a1973e
	  track down.
Packit Service a1973e
Packit Service a1973e
	* man/: footer.htm, header.htm, manServer_papi.pl, papiman.bat,
Packit Service a1973e
	  html/papi.html, html/papi_accum.html,
Packit Service a1973e
	  html/papi_accum_counters.html, html/papi_add_event.html,
Packit Service a1973e
	  html/papi_add_events.html,
Packit Service a1973e
	  html/papi_assign_eventset_component.html, html/papi_attach.html,
Packit Service a1973e
	  html/papi_avail.html, html/papi_cleanup_eventset.html,
Packit Service a1973e
	  html/papi_clockres.html, html/papi_command_line.html,
Packit Service a1973e
	  html/papi_cost.html, html/papi_create_eventset.html,
Packit Service a1973e
	  html/papi_decode.html, html/papi_destroy_eventset.html,
Packit Service a1973e
	  html/papi_detach.html, html/papi_encode_events.html,
Packit Service a1973e
	  html/papi_enum_event.html, html/papi_event_chooser.html,
Packit Service a1973e
	  html/papi_event_code_to_name.html,
Packit Service a1973e
	  html/papi_event_name_to_code.html, html/papi_flips.html,
Packit Service a1973e
	  html/papi_flops.html, html/papi_get_component_info.html,
Packit Service a1973e
	  html/papi_get_dmem_info.html, html/papi_get_event_info.html,
Packit Service a1973e
	  html/papi_get_executable_info.html,
Packit Service a1973e
	  html/papi_get_hardware_info.html, html/papi_get_multiplex.html,
Packit Service a1973e
	  html/papi_get_opt.html, html/papi_get_overflow_event_index.html,
Packit Service a1973e
	  html/papi_get_real_cyc.html, html/papi_get_real_usec.html,
Packit Service a1973e
	  html/papi_get_shared_lib_info.html,
Packit Service a1973e
	  html/papi_get_substrate_info.html,
Packit Service a1973e
	  html/papi_get_thr_specific.html, html/papi_get_virt_cyc.html,
Packit Service a1973e
	  html/papi_get_virt_usec.html, html/papi_help.html,
Packit Service a1973e
	  html/papi_ipc.html, html/papi_is_initialized.html,
Packit Service a1973e
	  html/papi_library_init.html, html/papi_list_events.html,
Packit Service a1973e
	  html/papi_list_threads.html, html/papi_lock.html,
Packit Service a1973e
	  html/papi_mem_info.html, html/papi_multiplex_init.html,
Packit Service a1973e
	  html/papi_native.html, html/papi_native_avail.html,
Packit Service a1973e
	  html/papi_num_cmp_hwctrs.html, html/papi_num_components.html,
Packit Service a1973e
	  html/papi_num_counters.html, html/papi_num_events.html,
Packit Service a1973e
	  html/papi_num_hwctrs.html, html/papi_overflow.html,
Packit Service a1973e
	  html/papi_perror.html, html/papi_presets.html,
Packit Service a1973e
	  html/papi_profil.html, html/papi_query_event.html,
Packit Service a1973e
	  html/papi_read.html, html/papi_read_counters.html,
Packit Service a1973e
	  html/papi_register_thread.html, html/papi_remove_event.html,
Packit Service a1973e
	  html/papi_remove_events.html, html/papi_reset.html,
Packit Service a1973e
	  html/papi_set_cmp_domain.html,
Packit Service a1973e
	  html/papi_set_cmp_granularity.html, html/papi_set_debug.html,
Packit Service a1973e
	  html/papi_set_domain.html, html/papi_set_event_info.html,
Packit Service a1973e
	  html/papi_set_granularity.html, html/papi_set_multiplex.html,
Packit Service a1973e
	  html/papi_set_opt.html, html/papi_set_thr_specific.html,
Packit Service a1973e
	  html/papi_shutdown.html, html/papi_sprofil.html,
Packit Service a1973e
	  html/papi_start.html, html/papi_start_counters.html,
Packit Service a1973e
	  html/papi_state.html, html/papi_stop.html,
Packit Service a1973e
	  html/papi_stop_counters.html, html/papi_strerror.html,
Packit Service a1973e
	  html/papi_thread_id.html, html/papi_thread_init.html,
Packit Service a1973e
	  html/papi_unlock.html, html/papi_unregister_thread.html,
Packit Service a1973e
	  html/papi_write.html, html/papif.html,
Packit Service a1973e
	  html/papif_get_clockrate.html, html/papif_get_domain.html,
Packit Service a1973e
	  html/papif_get_exe_info.html, html/papif_get_granularity.html,
Packit Service a1973e
	  html/papif_get_preload.html, html/papif_set_event_domain.html,
Packit Service a1973e
	  images/cssigoff.gif, images/cssigon.gif, images/headertop.jpg,
Packit Service a1973e
	  images/line.gif, images/logobottom.jpg, images/logoleft.jpg,
Packit Service a1973e
	  images/menubg.jpg, images/menubg95.jpg, images/rd.jpg,
Packit Service a1973e
	  images/spinbg.jpg, images/spinlogo.gif, images/stable.gif,
Packit Service a1973e
	  images/stripes2.jpg, images/trans.gif, images/utsigoff.gif,
Packit Service a1973e
	  images/utsigon.gif, images/white.jpg: Remove the old html
Packit Service a1973e
	  documentation and assorted helper files.
Packit Service a1973e
Packit Service a1973e
	* src/components/coretemp/linux-coretemp.c: Fix a possible
Packit Service a1973e
	  directory stream leak in the coretemp component.
Packit Service a1973e
Packit Service a1973e
	  reported by coverity checker.
Packit Service a1973e
Packit Service a1973e
	* src/ctests/calibrate.c: Properly free the arrays in calibrate,
Packit Service a1973e
	  introduced by yesterdays coverity fix.
Packit Service a1973e
Packit Service a1973e
	  Patch by Will Cohen
Packit Service a1973e
Packit Service a1973e
Packit Service a1973e
2011-10-24
Packit Service a1973e
Packit Service a1973e
	* src/components/coretemp/linux-coretemp.c: Fix coretemp to not
Packit Service a1973e
	  fail if /sys/class/hwmon doesn't exist.
Packit Service a1973e
Packit Service a1973e
	* src/components/coretemp/linux-coretemp.c: Patch coretemp to only
Packit Service a1973e
	  free the initialized data in shutdown_substrate (once per
Packit Service a1973e
	  PAPI_init) rather than shutdown (once per thread).
Packit Service a1973e
Packit Service a1973e
	  This was causing double free errors.
Packit Service a1973e
Packit Service a1973e
	  Patch from Will Cohen
Packit Service a1973e
Packit Service a1973e
	* src/utils/multiplex_cost.c: Fix various calls to PAPI_start() and
Packit Service a1973e
	  PAPI_stop() in multiplex_cost that didn't check the return value.
Packit Service a1973e
	  Took care to try to avoid changing timing measurements.  Noticed
Packit Service a1973e
	  by coverity checker.
Packit Service a1973e
Packit Service a1973e
	* src/utils/cost.c: In one case, cost was not checking the return
Packit Service a1973e
	  of PAPI_start()/PAPI_stop().	This change makes it does so, while
Packit Service a1973e
	  being careful not to interfere with the timing that is going on.
Packit Service a1973e
Packit Service a1973e
	* src/ctests/: pthrtough.c, pthrtough2.c: pthrtough and pthrtough2
Packit Service a1973e
	  were not checking the return value for pthread_attr_setscope().
Packit Service a1973e
	  Reported by coverity checker.
Packit Service a1973e
Packit Service a1973e
	* src/ctests/multiplex1_pthreads.c: multiplex1_pthreads was not
Packit Service a1973e
	  checking the return from PAPI_library_init() as flagged by
Packit Service a1973e
	  coverity checker.
Packit Service a1973e
Packit Service a1973e
	* src/ctests/inherit.c: inherit.c wasn't checking the result of the
Packit Service a1973e
	  waitpid() call, as reported by coverity checker.
Packit Service a1973e
Packit Service a1973e
	* src/ctests/clockres_pthreads.c: Check the return of
Packit Service a1973e
	  pthread_create().
Packit Service a1973e
Packit Service a1973e
	  Reported by coverity checker.
Packit Service a1973e
Packit Service a1973e
	* src/papi_libpfm4_events.c: Fix an actual bug (reported as
Packit Service a1973e
	  deadcode by coverity) where _papi_hwd_ntv_code_to_descr was
Packit Service a1973e
	  appending extraneous ", masks:" strings into an event
Packit Service a1973e
	  description.
Packit Service a1973e
Packit Service a1973e
	  None of our utils/ctests exercise this function, which is
Packit Service a1973e
	  probably why the bug wasn't noticed.
Packit Service a1973e
Packit Service a1973e
	* src/: multiplex.c, papi.c: Fix cases where PAPI_*() functions
Packit Service a1973e
	  were called without checking the return for an error.
Packit Service a1973e
Packit Service a1973e
	  Reported by coverity.
Packit Service a1973e
Packit Service a1973e
	* doc/Doxyfile.utils: Update version to 4.2.0 for pending release.
Packit Service a1973e
Packit Service a1973e
	* src/multiplex.c: Fix some code that could potentially dereference
Packit Service a1973e
	  a null pointer.
Packit Service a1973e
Packit Service a1973e
	  Found by the coverity checker.
Packit Service a1973e
Packit Service a1973e
	* src/papi_vector.c: Remove a dead code case as reported by
Packit Service a1973e
	  coverity.  Shouldn't break anything as I can't find anywhere that
Packit Service a1973e
	  vector_print_table() is actually called.
Packit Service a1973e
Packit Service a1973e
	* release_procedure.txt: Update release_procedure to reflect
Packit Service a1973e
	  another file that needs a version number bump. (Doxyfile.utils)
Packit Service a1973e
Packit Service a1973e
	* src/ctests/calibrate.c: Fix some weird code that was sharing a
Packit Service a1973e
	  memory allocation for both double and floats.  This was really
Packit Service a1973e
	  ugly and made the coverity checker sad.
Packit Service a1973e
Packit Service a1973e
	  Patch provided by Will Cohen.
Packit Service a1973e
Packit Service a1973e
	* src/testlib/test_utils.c: Fix a signed/unsigned comparison bug I
Packit Service a1973e
	  introduced.
Packit Service a1973e
Packit Service a1973e
	* src/components/coretemp/tests/coretemp_basic.c: Fix the test so
Packit Service a1973e
	  it correctly iterates all of the components.
Packit Service a1973e
Packit Service a1973e
	* src/components/coretemp/: linux-coretemp.c, tests/Makefile,
Packit Service a1973e
	  tests/coretemp_basic.c: Fix a potential memory leak in coretemp
Packit Service a1973e
	  (flagged by coverity).
Packit Service a1973e
Packit Service a1973e
	  Also added a test case for coretemp so I can actually test if
Packit Service a1973e
	  these changes are breaking anything.
Packit Service a1973e
Packit Service a1973e
	* src/solaris-ultra.c: Remove const decleration from get_virt_* in
Packit Service a1973e
	  solaris substrate.  Vince removed this from papi_vector.h back in
Packit Service a1973e
	  June.
Packit Service a1973e
Packit Service a1973e
	* src/testlib/test_utils.c: Improce the add_two_events() code in
Packit Service a1973e
	  the test library.  Before it was possible to overrun a buffer if
Packit Service a1973e
	  none of the potential predefined events were available.
Packit Service a1973e
Packit Service a1973e
	  Noticed by the coverity checker.
Packit Service a1973e
Packit Service a1973e
	* papi.spec, doc/Doxyfile, doc/Doxyfile-everything, src/configure,
Packit Service a1973e
	  src/papi.h, src/Makefile.in, src/configure.in: Update version to
Packit Service a1973e
	  4.2.0 for pending release.
Packit Service a1973e
Packit Service a1973e
2011-10-21
Packit Service a1973e
Packit Service a1973e
	* src/: Makefile.inc, configure, configure.in, papi.c, papi.h,
Packit Service a1973e
	  papi_internal.c, papi_user_events.c, papi_user_events.h: Merge in
Packit Service a1973e
	  the user events code , protected by a configure option.  (
Packit Service a1973e
	  --with-user-events )
Packit Service a1973e
Packit Service a1973e
	* src/testlib/test_utils.c: We now ensure that test_fail() always
Packit Service a1973e
	  exits.  There was some code around that tracked the number of
Packit Service a1973e
	  times test_fail() was called.  Remove that, as I think it was
Packit Service a1973e
	  confusing the coverity checker and causing a huge number of false
Packit Service a1973e
	  positives for NULL pointer dereferences.
Packit Service a1973e
Packit Service a1973e
	* src/components/acpi/linux-acpi.c: Some minor cleanups to the acpi
Packit Service a1973e
	  component.  It was choking a bit if ACPI didn't provide thermal
Packit Service a1973e
	  information, and also fix a few coverity bugs involving not
Packit Service a1973e
	  checking the result of a dup() call.
Packit Service a1973e
Packit Service a1973e
	* src/testlib/test_utils.c: Another problem with negative numbers,
Packit Service a1973e
	  this time one could potentially be passed to a malloc call.
Packit Service a1973e
Packit Service a1973e
	  noticed by coverity
Packit Service a1973e
Packit Service a1973e
	* src/ctests/overflow_pthreads.c: We were indexing an array with a
Packit Service a1973e
	  returned value that could be negative on failure.  Add a check to
Packit Service a1973e
	  avoid that.
Packit Service a1973e
Packit Service a1973e
	  We're also indexing a per-thread array with an EventSet number,
Packit Service a1973e
	  which sounds suspect, should probably investigate that further.
Packit Service a1973e
Packit Service a1973e
	* src/perf_events.c: perf_events.c was setting variables to -1 and
Packit Service a1973e
	  then potentially using them to index arrays or call close() on
Packit Service a1973e
	  them.
Packit Service a1973e
Packit Service a1973e
	  This adds checks to avoid that.
Packit Service a1973e
Packit Service a1973e
	  Noticed by the coverity checker.
Packit Service a1973e
Packit Service a1973e
	* src/components/lustre/linux-lustre.h: Include stdint.h and
Packit Service a1973e
	  ctype.h; needed for uint64_t and isspace() respectivly.
Packit Service a1973e
Packit Service a1973e
	* src/components/coretemp/linux-coretemp.c: Fix problem where we
Packit Service a1973e
	  try to manipulate a NULL directory entry.
Packit Service a1973e
Packit Service a1973e
	  This fixes a segfault on a Nehalem machine we have here that has
Packit Service a1973e
	  a /sys/class/hwmon/hwmon0 directory without a "device"
Packit Service a1973e
	  subdirectory.
Packit Service a1973e
Packit Service a1973e
	* src/components/coretemp/linux-coretemp.c: We were opening a file
Packit Service a1973e
	  but not checking for failure before reading from it.
Packit Service a1973e
Packit Service a1973e
	  Flagged by the coverity checker.
Packit Service a1973e
Packit Service a1973e
	* src/components/coretemp/linux-coretemp.c: Both gcc and coverity
Packit Service a1973e
	  were complaining about using an uninitialized pointer.  This
Packit Service a1973e
	  makes sure it's not dereferenced if not initialized.
Packit Service a1973e
Packit Service a1973e
	* src/ctests/prof_utils.c: Stop doing unnecessary pointer math in a
Packit Service a1973e
	  print statement.
Packit Service a1973e
Packit Service a1973e
	  This was flagged as a problem by the coverity tool.
Packit Service a1973e
Packit Service a1973e
	* src/components/coretemp/linux-coretemp.c: Fix some wrong buffer
Packit Service a1973e
	  sizes in the coretemp component.
Packit Service a1973e
Packit Service a1973e
	  Patch from Will Cohen
Packit Service a1973e
Packit Service a1973e
	* src/ctests/sdsc.c: add some extra debug info for sdsc test
Packit Service a1973e
	  failures.
Packit Service a1973e
Packit Service a1973e
	* src/papi_hl.c: Add comment to PAPI_num_counters() documentation
Packit Service a1973e
	  about use of PAPI_num_cmp_hwctrs() for component counters.
Packit Service a1973e
Packit Service a1973e
2011-10-19
Packit Service a1973e
Packit Service a1973e
	* src/papi.c: Correct documentation errors for PAPI_strerror.
Packit Service a1973e
Packit Service a1973e
	* src/: configure, configure.in: Under a no-cpu-counters build,
Packit Service a1973e
	  still build all of the utils.  We probably want to rethink some
Packit Service a1973e
	  of the cost util details.
Packit Service a1973e
Packit Service a1973e
2011-10-11
Packit Service a1973e
Packit Service a1973e
	* src/run_tests.sh: Remove an unneeded call to "cat".  For some
Packit Service a1973e
	  reason it was printing pointless warnings that needlessly
Packit Service a1973e
	  cluttered the buildbot logs.
Packit Service a1973e
Packit Service a1973e
	* src/ctests/: Makefile, multiplex1.c: -lpapi should never be a
Packit Service a1973e
	  dependency.  -I.. is missing in makefile
Packit Service a1973e
Packit Service a1973e
	  You should be able to cd ctests and do: make <test> or make
Packit Service a1973e
	  multiplex.
Packit Service a1973e
Packit Service a1973e
	  Also, added the read after start multiplex case for multiplex1.
Packit Service a1973e
	  This triggers bugs in perf_events systems.
Packit Service a1973e
Packit Service a1973e
2011-10-10
Packit Service a1973e
Packit Service a1973e
	* src/: papi.c, papi_internal.c, threads.c: The multiplex1_pthreads
Packit Service a1973e
	  test was reporting a memory leak.
Packit Service a1973e
Packit Service a1973e
	  This is because the test was calling PAPI_unregister_thread()
Packit Service a1973e
	  without destroying its EventSets.
Packit Service a1973e
Packit Service a1973e
	  This added change adds code that at unregister_thread time will
Packit Service a1973e
	  destroy any events belonging to that thread.
Packit Service a1973e
Packit Service a1973e
	  This works on all the current ctests but I should check some of
Packit Service a1973e
	  the various corner cases not currently tested.
Packit Service a1973e
Packit Service a1973e
2011-10-07
Packit Service a1973e
Packit Service a1973e
	* src/libpfm4/: config.mk, lib/pfmlib_amd64.c, lib/pfmlib_common.c,
Packit Service a1973e
	  lib/pfmlib_intel_x86.c, lib/events/intel_nhm_events.h,
Packit Service a1973e
	  lib/events/intel_wsm_events.h: Merge the "conflicts" from the
Packit Service a1973e
	  libpfm4 merge
Packit Service a1973e
Packit Service a1973e
	* src/: threads.c, threads.h: Fix the MEMORY LEAK errors involving
Packit Service a1973e
	  the attach ctests (as seen on buildbot)
Packit Service a1973e
Packit Service a1973e
	  These came about when proper multiattach support was added.  A
Packit Service a1973e
	  "fake" thread structure is created for each attached process.
Packit Service a1973e
	  These fake thread structures were not being cleaned up at
Packit Service a1973e
	  shutdown,   hence the leak.
Packit Service a1973e
Packit Service a1973e
	  This fix adds support so at thread shutdown, if we have any
Packit Service a1973e
	  "fake" threads that we created, also shut them down too.
Packit Service a1973e
Packit Service a1973e
	  This was tricky, especially dealing with the circular-linked list
Packit Service a1973e
	    the thread info structs are in.  This fix seems to work without
Packit Service a1973e
	    negatively affecting the pthread cases.
Packit Service a1973e
Packit Service a1973e
	  ctests/multiplex1_pthreads still reports MEMORY LEAK but that
Packit Service a1973e
	  seems   to be an eventset issue, not a thread issue, so will be
Packit Service a1973e
	  investigated	 separately.
Packit Service a1973e
Packit Service a1973e
2011-10-06
Packit Service a1973e
Packit Service a1973e
	* src/: papi.h, papi_fwrappers.c: Add Fortran reference to  doxygen
Packit Service a1973e
	  main page.
Packit Service a1973e
Packit Service a1973e
2011-10-05
Packit Service a1973e
Packit Service a1973e
	* src/: papi.c, papi_internal.c, perf_events.c: There has been some
Packit Service a1973e
	  ongoing speculation about what would happen if you enabled
Packit Service a1973e
	  Multiplexing and Overflow at the same time.
Packit Service a1973e
Packit Service a1973e
	  It turns out (at least on perf_events) that if you have kernel
Packit Service a1973e
	  multiplexing, the results are what you expect.  You get
Packit Service a1973e
	  overflows, but less than in the non-multiplexing case because the
Packit Service a1973e
	  overflow counter isn't being run all the time.
Packit Service a1973e
Packit Service a1973e
	  The results for software multiplexing involved a segfault.  This
Packit Service a1973e
	  is because in the software multiplexing case the primary EventSet
Packit Service a1973e
	  is a fiction; a set of shadow EventSets are created behind the
Packit Service a1973e
	  scene, and these are the ones used.  Therefore when you enable
Packit Service a1973e
	  overflow, the overflow event is attempted to be enabled on the
Packit Service a1973e
	  fictious main EventSet.  There are no native events mapped for
Packit Service a1973e
	  it, so overflow tries to access native event array index "-1"
Packit Service a1973e
	  which causes bad things to happen.
Packit Service a1973e
Packit Service a1973e
	  This change avoids the issue by catching the "-1" case and
Packit Service a1973e
	  failing accordingly.	We should probably decide if we want to
Packit Service a1973e
	  catch the oflo/mpx combination earlier and outright ban it.
Packit Service a1973e
Packit Service a1973e
	  I also went through a lot of the code involved adding comments,
Packit Service a1973e
	  as it was really hard following what was going on.  This involved
Packit Service a1973e
	  the infamously dense "_papi_hwi_remap_event_position()" function
Packit Service a1973e
	  too.
Packit Service a1973e
Packit Service a1973e
	* src/papi.h: Moved cpu and inherit bits to end of structure for
Packit Service a1973e
	  compat across all 4.x lines.	Found by Will Cohen.
Packit Service a1973e
Packit Service a1973e
	  As it turns out, I ended up reviewing the CPU_ATTACH changes; I
Packit Service a1973e
	  had not done so before. This functionality actually belongs in
Packit Service a1973e
	  PAPI_set_granularity. A CPU is a natural unit of granularity of
Packit Service a1973e
	  counting, and that value was speced in papi.h a long time ago.
Packit Service a1973e
	  Right thing to do here is leave the current attach stuff but make
Packit Service a1973e
	  it work as part of set_granularity.
Packit Service a1973e
Packit Service a1973e
	  Consider that a TODO for 4.3.
Packit Service a1973e
Packit Service a1973e
2011-10-04
Packit Service a1973e
Packit Service a1973e
	* doc/: Doxyfile, Doxyfile-everything: Enable macro expansion in
Packit Service a1973e
	  the doxygen preprocessor step.
Packit Service a1973e
Packit Service a1973e
	  Doxygen was not creating docs for the fortran functions and I
Packit Service a1973e
	  believe it is because it was silently choking on our clever
Packit Service a1973e
	  preprocessor abuse; this fixes? that.  However, its worth taking
Packit Service a1973e
	  a critical eye to the generated pages again.
Packit Service a1973e
Packit Service a1973e
	* src/: papi.c, papi_fwrappers.c, papi_hl.c: make "* #include" into
Packit Service a1973e
	  "* \#include" so doxygen doesn't treat it as a command.
Packit Service a1973e
Packit Service a1973e
	* src/papi_fwrappers.c: Added all doxygen stubs to the PAPIF group.
Packit Service a1973e
Packit Service a1973e
2011-10-03
Packit Service a1973e
Packit Service a1973e
	* src/ctests/ipc.c: My previous "fix" for the array bounds issue in
Packit Service a1973e
	  ipc.c had multiple embarassing bugs.
Packit Service a1973e
Packit Service a1973e
	  Thanks to Will Cohen for noticing.  Things should be better now.
Packit Service a1973e
Packit Service a1973e
	* src/: Rules.perfctr-pfm, Rules.pfm_pe: Additionally remove the
Packit Service a1973e
	  now extraneous papi_libpfm_preset definition from the other Rules
Packit Service a1973e
	  files too.
Packit Service a1973e
Packit Service a1973e
	* src/: Makefile.inc, Rules.pfm4_pe: The change to make the preset
Packit Service a1973e
	  code generic accidentally ended up defining the build rules for
Packit Service a1973e
	  the file in duplicate places.  This fixes that.
Packit Service a1973e
Packit Service a1973e
2011-09-30
Packit Service a1973e
Packit Service a1973e
	* src/: linux-common.c, utils/decode.c: Fix two unused variable
Packit Service a1973e
	  warnings.
Packit Service a1973e
Packit Service a1973e
	* src/ctests/second.c: We were allocating the "values" array but
Packit Service a1973e
	  never freeing it.
Packit Service a1973e
Packit Service a1973e
	* src/ctests/: sdsc2.c, sdsc4.c: The SDSC tests could walk off the
Packit Service a1973e
	  end of an array.
Packit Service a1973e
Packit Service a1973e
	* src/ctests/overflow_twoevents.c: We could potentially access
Packit Service a1973e
	  outside an array boundary in overflow_twoevents.
Packit Service a1973e
Packit Service a1973e
	* src/ctests/ipc.c: ipc was also abusing array boundaries.
Packit Service a1973e
Packit Service a1973e
	* src/ctests/flops.c: The flops.c ctest was abusing the notion of C
Packit Service a1973e
	  arrays, by writing INDEX*INDEX values to mresult[0][i], I suppose
Packit Service a1973e
	  "knowing" that this would fill in the whole array.  Fix things to
Packit Service a1973e
	  use an additional iterator.
Packit Service a1973e
Packit Service a1973e
	* src/ctests/byte_profile.c: The coverity checker rightly points
Packit Service a1973e
	  out that the last argument to strncat should be buffersize-1.
Packit Service a1973e
Packit Service a1973e
	* src/ctests/: exeinfo.c, shlib.c: Coverity flagged that there were
Packit Service a1973e
	  some tests that had no effect. In particular the are tests that
Packit Service a1973e
	  the pointers are non-null. However, they are arrays rather than
Packit Service a1973e
	  pointers. This patch make it clear that arrays are being used in
Packit Service a1973e
	  the code.
Packit Service a1973e
Packit Service a1973e
	  Patch from Will Cohen at redhat
Packit Service a1973e
Packit Service a1973e
	* src/ctests/clockcore.c: This is a relatively minor patch that
Packit Service a1973e
	  ensures that all the allocated memory is initialized to zero
Packit Service a1973e
	  before it is used.  Coverity might not be smart enough to
Packit Service a1973e
	  determine whether the test actually wrote into all the locations
Packit Service a1973e
	  because of the case statement. This is make it easier for
Packit Service a1973e
	  coverity to determine that the memory has been initialized.
Packit Service a1973e
Packit Service a1973e
	  Path from Will Cohen at redhat.
Packit Service a1973e
Packit Service a1973e
	* src/multiplex.c: Coverity scan showed that MPX_cleanup() function
Packit Service a1973e
	  was blindly accessing a value through a pointer and then checking
Packit Service a1973e
	  to see that the pointer was null.  This patch makes sure that the
Packit Service a1973e
	  pointer is checked before it is used.
Packit Service a1973e
Packit Service a1973e
	  Patch from Will Cohen at redhat.
Packit Service a1973e
Packit Service a1973e
	* src/ctests/: pthrtough.c, pthrtough2.c: Coverity found that the
Packit Service a1973e
	  sizeof argument for pthrtough2.c and pthrtough.c was using
Packit Service a1973e
	  sizeof(pthread *) rather than sizeof(pthread). This patch fixes
Packit Service a1973e
	  that problem.
Packit Service a1973e
Packit Service a1973e
	  Patch from Will Cohen at redhat
Packit Service a1973e
Packit Service a1973e
	* src/papi_internal.c: This change moves the setting for default
Packit Service a1973e
	  domain to be enforced at eventset add time, rather than eventset
Packit Service a1973e
	  creation time.
Packit Service a1973e
Packit Service a1973e
	  This fixes some problems seen when multiplexing.
Packit Service a1973e
Packit Service a1973e
	  The patch was provided by Phil Mucci.
Packit Service a1973e
Packit Service a1973e
	* src/pmapi-ppc64.h: One more file that is no longer needed.
Packit Service a1973e
Packit Service a1973e
	* src/: configure, configure.in, perfctr.c, pmapi-ppc64_events.c,
Packit Service a1973e
	  ppc64_events.c: Clean up the now not-needed pmapi-ppc64_events.c
Packit Service a1973e
	  file.
Packit Service a1973e
Packit Service a1973e
	* src/: Makefile.inc, aix.c, aix.h, configure, configure.in,
Packit Service a1973e
	  papi_libpfm_presets.c: Finalize the merge of the preset code.
Packit Service a1973e
Packit Service a1973e
	* src/aix.c: Fix a missing include.
Packit Service a1973e
Packit Service a1973e
	* src/: aix.c, configure, configure.in: Move more code to its
Packit Service a1973e
	  proper place.
Packit Service a1973e
Packit Service a1973e
	* src/: aix.c, configure, configure.in, pmapi-ppc64.c,
Packit Service a1973e
	  pmapi-ppc64_events.c, ppc64_events.c: Move the
Packit Service a1973e
	  ppc64_setup_native_table() routines out of the preset code.
Packit Service a1973e
Packit Service a1973e
	  This is complicated, as there are two very similar routines
Packit Service a1973e
	  setup_ppc64_native_table() used by AIX/pmapi and
Packit Service a1973e
	  ppc64_setup_native_table() used by perfctr
Packit Service a1973e
Packit Service a1973e
	  These could probably be merged too, but this is definitely not
Packit Service a1973e
	  the time.
Packit Service a1973e
Packit Service a1973e
	* src/: aix.c, papi_libpfm_presets.c, pmapi-ppc64_events.c: move
Packit Service a1973e
	  pmapi_find_full_event to be _aix_ntv_name_to_code() as it
Packit Service a1973e
	  probably always should have been.
Packit Service a1973e
Packit Service a1973e
	* src/: papi_libpfm_presets.c, papi_setup_presets.h,
Packit Service a1973e
	  pmapi-ppc64_events.c: Make papi_libpfm_presets more generic by
Packit Service a1973e
	  calling    _papi_hwi_native_name_to_code() rather than a
Packit Service a1973e
	  substrate-specific call.
Packit Service a1973e
Packit Service a1973e
	* src/: aix.c, papi_libpfm_presets.c, pmapi-ppc64_events.c: I was
Packit Service a1973e
	  mainly doing this to aid debugging, but now the
Packit Service a1973e
	  papi_libpfm_presets.c file and pmapi-ppc64_events.c file are
Packit Service a1973e
	  close enough to being identical I might try to merge them.
Packit Service a1973e
Packit Service a1973e
2011-09-29
Packit Service a1973e
Packit Service a1973e
	* src/: papi_libpfm_presets.c, pmapi-ppc64_events.c,
Packit Service a1973e
	  ppc64_events.h: The files are almost the same now.
Packit Service a1973e
Packit Service a1973e
	* src/: papi_libpfm_presets.c, pmapi-ppc64_events.c: More making
Packit Service a1973e
	  these files the same, including some memory leak fixes that made
Packit Service a1973e
	  it to the former but not the latter.
Packit Service a1973e
Packit Service a1973e
	* src/: papi_libpfm_presets.c, pmapi-ppc64_events.c: Tracking down
Packit Service a1973e
	  problems on AIX can be a bit of a pain because
Packit Service a1973e
	  papi_libpfm_presets.c and pmapi-ppc64_events.c are almost (but
Packit Service a1973e
	  not quite)   the same.  This change makes the files more similar,
Packit Service a1973e
	  mostly by   cleaning up whitespace and normalizing comments and
Packit Service a1973e
	  debugging statements	 between the two.
Packit Service a1973e
Packit Service a1973e
	* src/pmapi-ppc64_events.c: Ugh, obvious typo in that last commit.
Packit Service a1973e
Packit Service a1973e
	* src/pmapi-ppc64_events.c: In ppc64_setup_gps() the current code
Packit Service a1973e
	  sometimes walks off the end of the group array and trashes
Packit Service a1973e
	  unrelated memory.
Packit Service a1973e
Packit Service a1973e
	  Until we work out the proper fix, this prints an error message
Packit Service a1973e
	  and stops the loop before memory is corrupted.
Packit Service a1973e
Packit Service a1973e
	* src/papi_data.h: No one seems to remember the last time this file
Packit Service a1973e
	  was used, so let's remove it.
Packit Service a1973e
Packit Service a1973e
2011-09-28
Packit Service a1973e
Packit Service a1973e
	* src/Makefile.inc: Remove the "u" option to the "ar" command that
Packit Service a1973e
	  links libpapi.a, as it was breaking the build on MIPS.
Packit Service a1973e
Packit Service a1973e
	  This *shouldn't* break anything, but messing around with "ar"
Packit Service a1973e
	  options can be potentially dangerous.  I'll double-check the
Packit Service a1973e
	  non-Linux builds.
Packit Service a1973e
Packit Service a1973e
	* src/libpfm4/lib/: Makefile, pfmlib_mips_priv.h,
Packit Service a1973e
	  events/intel_nhm_events.h, events/intel_wsm_events.h: Fix up the
Packit Service a1973e
	  "collisions" from the libpfm4 import
Packit Service a1973e
Packit Service a1973e
2011-09-26
Packit Service a1973e
Packit Service a1973e
	* src/Makefile.inc: We would like to use parallel make on packages
Packit Service a1973e
	  to speed things up. However, when this was tried with papi the
Packit Service a1973e
	  "make -j4" failed
Packit Service a1973e
	  (https://bugzilla.redhat.com/show_bug.cgi?id=740909). I took a
Packit Service a1973e
	  look through the code and found that some of dependencies were
Packit Service a1973e
	  not quite right. Turns out that $(papiLIBS) is substituted during
Packit Service a1973e
	  the configure, but it isn't available for the actual make.
Packit Service a1973e
	  Attached is the patch that ensures that the $(LIBS) are built
Packit Service a1973e
	  before utils and tests.
Packit Service a1973e
Packit Service a1973e
	  Patch from Will Cohen <wcohen at redhat.com>
Packit Service a1973e
Packit Service a1973e
	* src/run_tests.sh: Modify run_tests.sh so that you can set the
Packit Service a1973e
	  VALGRIND command externally via environment variable without
Packit Service a1973e
	  having to edit run_tests.sh itself.
Packit Service a1973e
Packit Service a1973e
	  Also adds Date and cpuinfo information to the beginning of
Packit Service a1973e
	  run_tests.sh results.  This can help when run run_tests.sh output
Packit Service a1973e
	  is passed around when debugging a problem.
Packit Service a1973e
Packit Service a1973e
	  Patch from Phil Mucci
Packit Service a1973e
Packit Service a1973e
	* src/: configure, configure.in: If we have no Fortran compiler
Packit Service a1973e
	  available, then our current build system tries to build the
Packit Service a1973e
	  Fortran examples with an empty compiler string which just
Packit Service a1973e
	  generates strange errors.
Packit Service a1973e
Packit Service a1973e
	  This patch changes F77 to be "echo" which at least avoids the
Packit Service a1973e
	  errors.  The proper fix is probably just not to build the Fortran
Packit Service a1973e
	  samples if no compiler is available.
Packit Service a1973e
Packit Service a1973e
	  Patch from Phil Mucci
Packit Service a1973e
Packit Service a1973e
	* src/papi_libpfm4_events.c: The build on power6 was warning in a
Packit Service a1973e
	  DEBUG statement because sizeof() returns an int rather than a
Packit Service a1973e
	  long.  So use a cast to avoid this.
Packit Service a1973e
Packit Service a1973e
	* src/perf_events.c: The move to use pid_t for pid values caused
Packit Service a1973e
	  warnings on a --with-debug build due to the lack of a way to
Packit Service a1973e
	  print a pid_t value without a cast.
Packit Service a1973e
Packit Service a1973e
	  This fix adds the proper casts.
Packit Service a1973e
Packit Service a1973e
2011-09-23
Packit Service a1973e
Packit Service a1973e
	* src/papi_libpfm4_events.c: Rename the "perfmon_idx" structure
Packit Service a1973e
	  field the more evocative "libpfm4_idx" value.
Packit Service a1973e
Packit Service a1973e
	  Patch from Phil Mucci
Packit Service a1973e
Packit Service a1973e
	* src/ctests/all_native_events.c: Fix problem where we were passing
Packit Service a1973e
	  a pointer to an EventSet rather than the actual EventSet number
Packit Service a1973e
	  to PAPI_cleanup_eventset().
Packit Service a1973e
Packit Service a1973e
	  Also include some of the cleanups from Phil Mucci's MIPS tree.
Packit Service a1973e
Packit Service a1973e
	* src/: perf_events.c, perf_events.h: Make the perf_event ctl
Packit Service a1973e
	  structure have more explicit data types.
Packit Service a1973e
Packit Service a1973e
	  Patch from Philip Mucci
Packit Service a1973e
Packit Service a1973e
	* src/: cycle.h, linux-common.c, linux-context.h, linux-lock.h,
Packit Service a1973e
	  linux-timer.c, mb.h, papi.h: Add bare minimal MIPS74k support,
Packit Service a1973e
	  enough to compile.
Packit Service a1973e
Packit Service a1973e
	  Patch from Philip Mucci
Packit Service a1973e
Packit Service a1973e
	* src/papi_events.csv: Add MIPS 74k pre-defined events
Packit Service a1973e
Packit Service a1973e
	  Patch by Philip Mucci
Packit Service a1973e
Packit Service a1973e
2011-09-22
Packit Service a1973e
Packit Service a1973e
	* src/ctests/all_native_events.c: Heike's cleanup_eventset work
Packit Service a1973e
	  allows the calling of PAPI_cleanup_eventset with cuda, so
Packit Service a1973e
	  uncomment the eventset cleanup code in all_native_events.
Packit Service a1973e
Packit Service a1973e
	* src/papi.h: Update papi.h to properly detect if being built with
Packit Service a1973e
	  a C99 compiler.
Packit Service a1973e
Packit Service a1973e
	* src/papi_events.csv: Update PAPI_FP_INS event name on amd_fam14h
Packit Service a1973e
	  as it was changed in the most recent libpfm4 merge
Packit Service a1973e
Packit Service a1973e
	* src/libpfm4/: README, config.mk, docs/Makefile,
Packit Service a1973e
	  docs/man3/pfm_get_event_info.3, examples/Makefile,
Packit Service a1973e
	  examples/showevtinfo.c, include/Makefile,
Packit Service a1973e
	  include/perfmon/perf_event.h, lib/Makefile, lib/pfmlib_common.c,
Packit Service a1973e
	  lib/pfmlib_gen_mips64_priv.h, lib/pfmlib_mips.c,
Packit Service a1973e
	  lib/pfmlib_mips_74k.c, lib/pfmlib_mips_perf_event.c,
Packit Service a1973e
	  lib/pfmlib_mips_priv.h, lib/pfmlib_perf_event_pmu.c,
Packit Service a1973e
	  lib/pfmlib_priv.h, lib/events/intel_atom_events.h,
Packit Service a1973e
	  lib/events/intel_core_events.h, lib/events/intel_nhm_events.h,
Packit Service a1973e
	  lib/events/intel_snb_events.h, lib/events/intel_wsm_events.h: Fix
Packit Service a1973e
	  the "conflicts" from the libpfm4 git import
Packit Service a1973e
Packit Service a1973e
	* src/libpfm4/: docs/man3/libpfm_mips_74k.3, tests/validate_arm.c,
Packit Service a1973e
	  tests/validate_mips.c: Initial revision
Packit Service a1973e
Packit Service a1973e
2011-09-21
Packit Service a1973e
Packit Service a1973e
	* src/multiplex.c: Fix problem where we were freeing a
Packit Service a1973e
	  singly-linked list in a for loop, possibly free()ing the
Packit Service a1973e
	  allocation before dereferencing ->next
Packit Service a1973e
Packit Service a1973e
	  Problem reported by coverity tool, via Will Cohen
Packit Service a1973e
Packit Service a1973e
	* src/utils/cost.c: Fixed uninitialized data problem in papi_cost
Packit Service a1973e
Packit Service a1973e
	  Problem reported by coverity tool, via Will Cohen
Packit Service a1973e
Packit Service a1973e
	* src/papi_internal.c: Fix problem where we were copying around
Packit Service a1973e
	  chunks of memory that were not initialized yet.
Packit Service a1973e
Packit Service a1973e
	  Problem reported by coverity tool, via Will Cohen
Packit Service a1973e
Packit Service a1973e
	* src/multiplex.c: Fix two cases where we were dereferencing a
Packit Service a1973e
	  pointer without checking for NULL.
Packit Service a1973e
Packit Service a1973e
	  Problem reported by coverity tool, via Will Cohen
Packit Service a1973e
Packit Service a1973e
	* src/linux-memory.c: We were opening files but not properly
Packit Service a1973e
	  closing them if we returned early with an error condition.
Packit Service a1973e
Packit Service a1973e
	  Problem reported by coverity tool, via Will Cohen
Packit Service a1973e
Packit Service a1973e
	* src/linux-common.c: The coverity tool noticed that we allocate
Packit Service a1973e
	  and populate a cpu node info structure, but we never pass any
Packit Service a1973e
	  info on this structure outside of the cpu detection routine, in
Packit Service a1973e
	  effect leaking the allocation.
Packit Service a1973e
Packit Service a1973e
	  For now just comment out this code as it is not used by anyone.
Packit Service a1973e
Packit Service a1973e
	  Problem reported by coverity tool, via Will Cohen
Packit Service a1973e
Packit Service a1973e
	* src/: papi.c, papi_libpfm3_events.c, perfctr-x86.c: The coverity
Packit Service a1973e
	  checker was reporting we forgot to fclose() /proc/cpuinfo in
Packit Service a1973e
	  papi.c
Packit Service a1973e
Packit Service a1973e
	  The bigger question, is why were we unconditionally trying to
Packit Service a1973e
	  open /proc/cpuinfo in generic code in papi.c anyway?
Packit Service a1973e
Packit Service a1973e
	  Turns out it was to set the event masks properly for itanium and
Packit Service a1973e
	  p4.
Packit Service a1973e
Packit Service a1973e
	  The platform code sets CPU vendor and family for us though, so if
Packit Service a1973e
	  we just make the event mask code use those values then we don't
Packit Service a1973e
	  have to open cpuinfo.  This also means that non-Linux users with
Packit Service a1973e
	  the misfortune of running on a P4 might actually work too.
Packit Service a1973e
Packit Service a1973e
	* src/: papi_internal.c, papi_libpfm_presets.c: In various places
Packit Service a1973e
	  we were using MAX_COUNTER_TERMS (defined by substrate) rather
Packit Service a1973e
	  than PAPI_MAX_COUNTER_TERMS (a papi predefined event define).
Packit Service a1973e
	  This could cause buffer overruns.
Packit Service a1973e
Packit Service a1973e
	  This fixes things, though really we shouldn't have such similar
Packit Service a1973e
	  names for different defines.
Packit Service a1973e
Packit Service a1973e
	  Problem reported by coverity tool, via Will Cohen
Packit Service a1973e
Packit Service a1973e
	* src/multiplex.c: Avoid case where we could have been
Packit Service a1973e
	  dereferencing a NULL pointer in MPX_stop()
Packit Service a1973e
Packit Service a1973e
	  Reported by coverity tool, via Will Cohen
Packit Service a1973e
Packit Service a1973e
	* src/papi.c: Fix problem where thread and cpu could be
Packit Service a1973e
	  dereferenced as NULL in PAPI_start()
Packit Service a1973e
Packit Service a1973e
	  Reported by coverity tool, via Will Cohen
Packit Service a1973e
Packit Service a1973e
	* src/papi_events.csv: Update the AMD Family 14h (Bobcat)
Packit Service a1973e
	  pre-defined events.
Packit Service a1973e
Packit Service a1973e
	  It turns out they are different enough from 10h that they need
Packit Service a1973e
	  their own category.
Packit Service a1973e
Packit Service a1973e
	  In going through the Fam14h BKDG it turns out that Bobcat has a
Packit Service a1973e
	  really nice set of events available, especially for
Packit Service a1973e
	  Floating-Point/SSE but also memory bandwidth.
Packit Service a1973e
Packit Service a1973e
	  With this change, all of the ctests pass on a Bobcat machine.
Packit Service a1973e
Packit Service a1973e
	* src/: configure, configure.in: Recent Ubuntu versions use the ld
Packit Service a1973e
	  flag --as-needed by default.
Packit Service a1973e
Packit Service a1973e
	  This breaks the PAPI configure step for the libdl check, as the
Packit Service a1973e
	  --as-needed flag enforces the rule that libraries (in this case
Packit Service a1973e
	  -ldl)   must come after the object files on the command line, not
Packit Service a1973e
	  before.
Packit Service a1973e
Packit Service a1973e
	  The fix for this is easy, the libdl check was wrongly sticking
Packit Service a1973e
	  -ldl in LDFLAGS rather than in LIBS.	Putting it in LIBS   makes
Packit Service a1973e
	  things work as expected.
Packit Service a1973e
Packit Service a1973e
	  You can see here:
Packit Service a1973e
	  http://www.gentoo.org/proj/en/qa/asneeded.xml
Packit Service a1973e
Packit Service a1973e
	  For more info on this issue than you probably ever want to know.
Packit Service a1973e
Packit Service a1973e
2011-09-19
Packit Service a1973e
Packit Service a1973e
	* src/: ctests/Makefile, ftests/Makefile, utils/Makefile: When
Packit Service a1973e
	  building testlib dependencies from ctests/ ftests/ and utils/
Packit Service a1973e
	  call $(MAKE) and not make, this should fix aix.
Packit Service a1973e
Packit Service a1973e
2011-09-14
Packit Service a1973e
Packit Service a1973e
	* src/: aix.c, freebsd.c, linux-bgp.c, papi_vector.c,
Packit Service a1973e
	  perf_events.c, perfctr-ppc64.c, perfctr-x86.c, perfmon-ia64.c,
Packit Service a1973e
	  perfmon.c, solaris-niagara2.c, solaris-ultra.c,
Packit Service a1973e
	  components/acpi/linux-acpi.c,
Packit Service a1973e
	  components/coretemp/linux-coretemp.c,
Packit Service a1973e
	  components/coretemp_freebsd/coretemp_freebsd.c,
Packit Service a1973e
	  components/example/example.c,
Packit Service a1973e
	  components/infiniband/linux-infiniband.c,
Packit Service a1973e
	  components/lmsensors/linux-lmsensors.c,
Packit Service a1973e
	  components/lustre/linux-lustre.c, components/mx/linux-mx.c,
Packit Service a1973e
	  components/net/linux-net.c, win2k/substrate/win32.c,
Packit Service a1973e
	  win2k/substrate/winpmc-p3.c: Change initialization of function
Packit Service a1973e
	  pointer cleanup_eventset() from vec_int_dummy to vec_int_ok_dummy
Packit Service a1973e
	  so that it returns PAPI_OK by default. Roll back initialization
Packit Service a1973e
	  for every substrate. AGAIN, keep an eye on builtbot.
Packit Service a1973e
Packit Service a1973e
	* src/libpfm4/lib/: pfmlib_mips.c, pfmlib_mips_74k.c,
Packit Service a1973e
	  pfmlib_mips_perf_event.c, pfmlib_mips_priv.h,
Packit Service a1973e
	  events/mips_74k_events.h: Merged with HEAD, still passing all
Packit Service a1973e
	  tests
Packit Service a1973e
Packit Service a1973e
2011-09-13
Packit Service a1973e
Packit Service a1973e
	* src/papi_libpfm4_events.c: The libpfm4 code was doing a full call
Packit Service a1973e
	  to	pfm_get_os_event_encoding() during every call to
Packit Service a1973e
	  update_control_state().
Packit Service a1973e
Packit Service a1973e
	  This is unnecessary, as we can call pfm_get_os_event_encoding()
Packit Service a1973e
	  once	 at event creation time and cache the results.	There's no
Packit Service a1973e
	  need	 to call it each update_control_state(), as that is called
Packit Service a1973e
	   during PAPI_start() and thus relatively time critical.
Packit Service a1973e
Packit Service a1973e
	* src/run_tests.sh: Missed a $
Packit Service a1973e
Packit Service a1973e
	* src/: run_tests.sh, components/example/tests/HelloWorld.c: Update
Packit Service a1973e
	  run_tests.sh to run component tests, and update the example test
Packit Service a1973e
	  to act more like a ctest.
Packit Service a1973e
Packit Service a1973e
	* src/components/example/example.c: Fix warnings generated by the
Packit Service a1973e
	  example component.
Packit Service a1973e
Packit Service a1973e
	* src/: Makefile.inc, components/Makefile_comp_tests,
Packit Service a1973e
	  ctests/Makefile, ctests/do_loops.c, ctests/dummy.c,
Packit Service a1973e
	  ctests/papi_test.h, ctests/test_utils.c, ctests/test_utils.h,
Packit Service a1973e
	  ftests/Makefile, testlib/Makefile, testlib/do_loops.c,
Packit Service a1973e
	  testlib/dummy.c, testlib/papi_test.h, testlib/test_utils.c,
Packit Service a1973e
	  testlib/test_utils.h, utils/Makefile: ctests, ftests, utils, and
Packit Service a1973e
	  the component tests were all using some files in ctests.
Packit Service a1973e
Packit Service a1973e
	  These weren't being built when --with-no-cpu-counters was
Packit Service a1973e
	  enabled, so the PAPI build was breaking when that was enabled as
Packit Service a1973e
	  well as a component.
Packit Service a1973e
Packit Service a1973e
	  Move the shared files to their own directory, testlib Then update
Packit Service a1973e
	  all the users to look in the right place.
Packit Service a1973e
Packit Service a1973e
	  After this commit you might need to do a "cvs -d update" to make
Packit Service a1973e
	  sure you get the new subdirectory.
Packit Service a1973e
Packit Service a1973e
	* src/: configure, configure.in: When compiling with
Packit Service a1973e
	  --with-no-cpu-counters configure would report the platform as
Packit Service a1973e
	  linux-perfctr-x86.  This changes it to report as
Packit Service a1973e
	  linux-no-counters
Packit Service a1973e
Packit Service a1973e
2011-09-12
Packit Service a1973e
Packit Service a1973e
	* src/: aix.c, freebsd.c, linux-bgp.c, perf_events.c,
Packit Service a1973e
	  perfctr-ppc64.c, perfctr-x86.c, perfmon-ia64.c, perfmon.c,
Packit Service a1973e
	  solaris-niagara2.c, solaris-ultra.c,
Packit Service a1973e
	  components/acpi/linux-acpi.c,
Packit Service a1973e
	  components/coretemp/linux-coretemp.c,
Packit Service a1973e
	  components/coretemp_freebsd/coretemp_freebsd.c,
Packit Service a1973e
	  components/example/example.c,
Packit Service a1973e
	  components/infiniband/linux-infiniband.c,
Packit Service a1973e
	  components/lmsensors/linux-lmsensors.c,
Packit Service a1973e
	  components/lustre/linux-lustre.c, components/mx/linux-mx.c,
Packit Service a1973e
	  components/net/linux-net.c, win2k/substrate/win32.c,
Packit Service a1973e
	  win2k/substrate/winpmc-p3.c: Initialize new function pointer
Packit Service a1973e
	  cleanup_eventset() for every substrate. Keep an eye on builtbot.
Packit Service a1973e
Packit Service a1973e
	* src/components/cuda/: linux-cuda.c, linux-cuda.h: Cannot override
Packit Service a1973e
	  void* definitions from PAPI framework layer (e.g.
Packit Service a1973e
	  hwd_control_state_t) with typedefs to conform to PAPI Component
Packit Service a1973e
	  layer code if this technique has already been used in another
Packit Service a1973e
	  substrate (e.g. perfctr-x86). Or short: #undef and typedef can't
Packit Service a1973e
	  be done twice.
Packit Service a1973e
Packit Service a1973e
	* src/perf_events.c: Fix bug caused by forgetting to drop the
Packit Service a1973e
	  stream name when converting a fprintf() into a SUBDBG()
Packit Service a1973e
Packit Service a1973e
	* src/papi_libpfm_presets.c: Patch from William Cohen fixing a
Packit Service a1973e
	  potential problem found by a static analysis tool where we could
Packit Service a1973e
	  possibly pass a NULL pointer to free_notes().
Packit Service a1973e
Packit Service a1973e
	* src/papi_libpfm_presets.c: Some memory leak fixes made to libpfm3
Packit Service a1973e
	  papi_pfm_events.c by Robert Richter were lost when the
Packit Service a1973e
	  libpfm4/libpfm4 presets merge was done.
Packit Service a1973e
Packit Service a1973e
	  This re-applies these fixes.
Packit Service a1973e
Packit Service a1973e
2011-09-10
Packit Service a1973e
Packit Service a1973e
	* src/run_tests.sh: Cleaned up old comment regarding CUDA pre-4.0
Packit Service a1973e
	  when it was not possible to access a GPU from multiple CPU
Packit Service a1973e
	  threads.
Packit Service a1973e
Packit Service a1973e
	* src/: papi.c, papi_protos.h, papi_vector.c, papi_vector.h,
Packit Service a1973e
	  components/README, components/cuda/linux-cuda.c,
Packit Service a1973e
	  components/cuda/linux-cuda.h: Deleted function pointer
Packit Service a1973e
	  destroy_eventset from the PAPI vector table, and added
Packit Service a1973e
	  cleanup_eventset instead. PAPI_destroy_eventset() requires an
Packit Service a1973e
	  empty EventSet. Hence, usually PAPI_cleanup_eventset() is called
Packit Service a1973e
	  before PAPI_destroy_eventset(); which also sets the CompIdx to
Packit Service a1973e
	  -1. This means, PAPI_destroy_eventset() won't have any knowledge
Packit Service a1973e
	  about components. However, in order to disable CUDA eventGroups
Packit Service a1973e
	  and to free perfmon hardware on the GPU, knowledge about the CUDA
Packit Service a1973e
	  component index is required. Hence, I replaced
Packit Service a1973e
	  CUDA_destroy_eventset() with CUDA_cleanup_eventset() in the CUDA
Packit Service a1973e
	  component. NOTE: Please make sure you call
Packit Service a1973e
	  PAPI_cleanup_eventset() before calling PAPI_shutdown().
Packit Service a1973e
Packit Service a1973e
2011-09-09
Packit Service a1973e
Packit Service a1973e
	* src/: papi_protos.h, papi_vector.c, papi_vector.h,
Packit Service a1973e
	  components/cuda/linux-cuda.c, components/cuda/linux-cuda.h: CUDA
Packit Service a1973e
	  component is now thread-safe. Starting in CUDA 4.0, multiple CPU
Packit Service a1973e
	  threads can access the same CUDA context. This is a much easier
Packit Service a1973e
	  programming model then pre-4.0 as threads - using the same CUDA
Packit Service a1973e
	  context - can share memory, data, etc. Note, it's possible to
Packit Service a1973e
	  create a different CUDA context for each thread, but then we are
Packit Service a1973e
	  likely running into a limitation that only one context can be
Packit Service a1973e
	  profiled at a time.
Packit Service a1973e
Packit Service a1973e
2011-09-07
Packit Service a1973e
Packit Service a1973e
	* src/ctests/: do_loops.c, test_utils.c: Apply fixes to problems
Packit Service a1973e
	  noticed by a static analysis tool.
Packit Service a1973e
Packit Service a1973e
	  Provided by William Cohen at RedHat
Packit Service a1973e
Packit Service a1973e
	* src/papi_events.csv: Update SandyBridge preset events.
Packit Service a1973e
Packit Service a1973e
	  These were provided by Michel Brown at Bull
Packit Service a1973e
Packit Service a1973e
	* src/libpfm4/lib/: pfmlib_gen_mips64.c, pfmlib_mips.c,
Packit Service a1973e
	  pfmlib_mips_74k.c, pfmlib_mips_perf_event.c, pfmlib_mips_priv.h,
Packit Service a1973e
	  events/gen_mips64_events.h, events/mips_74k_events.h: MIPS 74K
Packit Service a1973e
	  little endian perf event support, requires 3.0.3+ kernel
Packit Service a1973e
Packit Service a1973e
2011-09-06
Packit Service a1973e
Packit Service a1973e
	* src/perf_events.c: The warning I had print on nmi_watchdog being
Packit Service a1973e
	  found was a bit much, make it a SUBDBG() call instead.
Packit Service a1973e
Packit Service a1973e
	  I do wish there were a way to notify the user more visibly,
Packit Service a1973e
	  because losing a counter (when you might only have 4 total to
Packit Service a1973e
	  begin with) is a big deal, and most Linux vendors are starting to
Packit Service a1973e
	  ship kernels with the nmi_watchdog enabled.
Packit Service a1973e
Packit Service a1973e
	* src/: linux-common.c, linux-common.h, perf_events.c: On newer
Packit Service a1973e
	  Linux kernels (2.6.34+) the nmi_watchdog counter can	 steal one
Packit Service a1973e
	  of the counters, reducing by one the total available.
Packit Service a1973e
Packit Service a1973e
	  There's a bug in Linux where if you try to use the full number of
Packit Service a1973e
	    counters on such a system with a group leader, the
Packit Service a1973e
	  sys_perf_open()   call will succeed only to fail at read time.
Packit Service a1973e
	  (instead of the proper   error code at open time).
Packit Service a1973e
Packit Service a1973e
	  This patch attempts to work around this issue by detecting if   a
Packit Service a1973e
	  watchdog timer is being used, and in that case re-use the
Packit Service a1973e
	  existing KERNEL_CHECKS_SCHEDUABILITY_UPON_OPEN bugfix code.
Packit Service a1973e
Packit Service a1973e
	* src/papi_events.csv: We were missing a proper libpfm4 interlagos
Packit Service a1973e
	  CPU name in the papi_events.csv file
Packit Service a1973e
Packit Service a1973e
2011-09-02
Packit Service a1973e
Packit Service a1973e
	* src/libpfm4/: include/perfmon/perf_event.h, lib/Makefile,
Packit Service a1973e
	  lib/pfmlib_intel_nhm_unc.c, lib/pfmlib_intel_x86.c,
Packit Service a1973e
	  lib/pfmlib_intel_x86_priv.h, lib/pfmlib_priv.h,
Packit Service a1973e
	  lib/events/amd64_events_fam10h.h, lib/events/amd64_events_k7.h,
Packit Service a1973e
	  lib/events/amd64_events_k8.h, lib/events/intel_atom_events.h,
Packit Service a1973e
	  lib/events/intel_core_events.h,
Packit Service a1973e
	  lib/events/intel_coreduo_events.h, lib/events/intel_nhm_events.h,
Packit Service a1973e
	  lib/events/intel_nhm_unc_events.h, lib/events/intel_p6_events.h,
Packit Service a1973e
	  lib/events/intel_snb_events.h, lib/events/intel_wsm_events.h,
Packit Service a1973e
	  lib/events/intel_wsm_unc_events.h,
Packit Service a1973e
	  lib/events/intel_x86_arch_events.h: Fix "conflicts" from the
Packit Service a1973e
	  libpfm4 import
Packit Service a1973e
Packit Service a1973e
	* src/papi_libpfm4_events.c: Explicitly set num_native_events to
Packit Service a1973e
	  zero at init time.
Packit Service a1973e
Packit Service a1973e
	  Somehow the value was surviving fork/exec and making the
Packit Service a1973e
	  fork/exec test cases fail on a recent Debian system.
Packit Service a1973e
Packit Service a1973e
	* src/perf_events.c: Set FD_CLOEXEC on the overflow signal handler
Packit Service a1973e
	  fd.
Packit Service a1973e
Packit Service a1973e
	  Otherwise if we exec() with overflow enabled, the exec'd process
Packit Service a1973e
	  will quickly die due to lack of signal handler.
Packit Service a1973e
Packit Service a1973e
	  This patch is needed due to a change in behavior in Linux 3.0.
Packit Service a1973e
Packit Service a1973e
	  Mark Krentel first noticed this problem.
Packit Service a1973e
Packit Service a1973e
	* src/: Rules.perfctr-pfm, Rules.pfm, Rules.pfm4_pe, Rules.pfm_pe:
Packit Service a1973e
	  Remove the "unexport CFLAGS" lines from the Rules files.
Packit Service a1973e
Packit Service a1973e
	* src/: multiplex.c, papi_internal.c, utils/component.c: Fix a few
Packit Service a1973e
	  warnings reported by gcc-4.6
Packit Service a1973e
Packit Service a1973e
	* src/: configure, configure.in: Override auto-detection of
Packit Service a1973e
	  substrate if the user specifies what they want to build with.
Packit Service a1973e
	  This allows building perfctr and perfmon2 PAPI on systems
Packit Service a1973e
	  auto-detected as having perf_event support.
Packit Service a1973e
Packit Service a1973e
	* src/: configure, configure.in: Add a "--with-libpfm3" argument to
Packit Service a1973e
	  configure that lets us specify libpfm3 for testing purposes.
Packit Service a1973e
Packit Service a1973e
	* src/solaris-niagara2.c: Fix solaris niagara2 build problems
Packit Service a1973e
	  reported by tigrage on the PAPI forum.
Packit Service a1973e
Packit Service a1973e
2011-08-30
Packit Service a1973e
Packit Service a1973e
	* src/configure: Regen
Packit Service a1973e
Packit Service a1973e
2011-08-29
Packit Service a1973e
Packit Service a1973e
	* src/configure.in: Check for a requested interface to tweak build
Packit Service a1973e
	  flags
Packit Service a1973e
Packit Service a1973e
	* src/: configure, configure.in: Last bit for cross compiling...
Packit Service a1973e
Packit Service a1973e
	* src/: configure, configure.in: Better double quotes
Packit Service a1973e
Packit Service a1973e
	* src/: configure, configure.in: There can be only 1. (choice of
Packit Service a1973e
	  perfctr, perfmon or perf events)
Packit Service a1973e
Packit Service a1973e
	* src/: configure, configure.in: Further refinement of the
Packit Service a1973e
	  combinations of --with-perfctr --with-perfmon and
Packit Service a1973e
	  --with-perf-events
Packit Service a1973e
Packit Service a1973e
	  True autotools cross not yet supported until we move to automake.
Packit Service a1973e
Packit Service a1973e
	  I did trick it into doing a cross compile with...  # ARCH=mips
Packit Service a1973e
	  CC=scgcc ./configure --with-arch=mips
Packit Service a1973e
	  --host=mips64el-gentoo-linux-gnu- --with-ffsll --with-libpfm4 --w
Packit Service a1973e
	  ith-perf-events --with-virtualtimer=times
Packit Service a1973e
	  --with-walltimer=gettimeofday --with-tls=__thread --with-CPU=mips
Packit Service a1973e
	  # cross compiling should work differently...
Packit Service a1973e
Packit Service a1973e
	  Wow, do I hate specifying mips in 3 places...
Packit Service a1973e
Packit Service a1973e
	* src/: config.h.in, configure, configure.in: Some fixes for cross
Packit Service a1973e
	  compiling and not including x86_cache_info.c when not ensured an
Packit Service a1973e
	  x86.
Packit Service a1973e
Packit Service a1973e
	* src/Makefile.inc: Surround component tests and cleanup recipies
Packit Service a1973e
	  with a conditional, the version of sh that our aix machine has
Packit Service a1973e
	  does not handle	   for i in {Empty set};
Packit Service a1973e
Packit Service a1973e
	  treating it as a syntax error.
Packit Service a1973e
Packit Service a1973e
	  NOTE: This requires gnu make, my shell-foo couldn't make sh
Packit Service a1973e
	  happy, so for now gnu conditionals!
Packit Service a1973e
Packit Service a1973e
	* ChangeLogP414.txt, RELEASENOTES.txt: Update Release Notes and add
Packit Service a1973e
	  ChangeLog for PAPI 4.1.4.
Packit Service a1973e
Packit Service a1973e
	* src/configure: Rebuild from configure.in with version number bump
Packit Service a1973e
	  to 4.1.4 in advance of pending internal vendor release for Cray.
Packit Service a1973e