diff options
author | vanilla <vanilla@FreeBSD.org> | 2007-06-14 05:26:19 +0800 |
---|---|---|
committer | vanilla <vanilla@FreeBSD.org> | 2007-06-14 05:26:19 +0800 |
commit | 3e50a6bb2b183c62a99fb3cebf20219d3b52a902 (patch) | |
tree | cbbf16a0289fcb48b9ad7a50095001c30d2e5788 | |
parent | 81f9aafb5da5560fdcffd37f2968e4db9f981e20 (diff) | |
download | freebsd-ports-gnome-3e50a6bb2b183c62a99fb3cebf20219d3b52a902.tar.gz freebsd-ports-gnome-3e50a6bb2b183c62a99fb3cebf20219d3b52a902.tar.zst freebsd-ports-gnome-3e50a6bb2b183c62a99fb3cebf20219d3b52a902.zip |
Add papi 3.5.0, API to access the performance counter hw in the
microprocessor.
PR: ports/113472
Submitted by: redcrash at gmail.com
-rw-r--r-- | devel/Makefile | 1 | ||||
-rw-r--r-- | devel/papi/Makefile | 272 | ||||
-rw-r--r-- | devel/papi/distinfo | 3 | ||||
-rw-r--r-- | devel/papi/pkg-descr | 6 | ||||
-rw-r--r-- | devel/papi/pkg-plist | 102 |
5 files changed, 384 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile index 0d23787cda4d..9d451d37bc17 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -1636,6 +1636,7 @@ SUBDIR += p5-usb SUBDIR += p5-version SUBDIR += p65 + SUBDIR += papi SUBDIR += pas2dox SUBDIR += patch SUBDIR += pccts diff --git a/devel/papi/Makefile b/devel/papi/Makefile new file mode 100644 index 000000000000..733cdb5d4d88 --- /dev/null +++ b/devel/papi/Makefile @@ -0,0 +1,272 @@ +# New ports collection makefile for: papi +# Date created: 21 May 2007 +# Whom: redcrash@gmail.com +# +# $FreeBSD$ +# + +PORTNAME= papi +PORTVERSION= 3.5.0 +CATEGORIES= devel +MASTER_SITES= http://papi-for-freebsd.googlecode.com/files/:source1 +DISTFILES= papi-3.5.0-freebsd-rev40.tar.bz2:source1 + +MAINTAINER= redcrash@gmail.com +COMMENT= API to access the performance counter hw in the microprocessor + +STRIP= +USE_LDCONFIG= yes +USE_BZIP2= yes +USE_GMAKE= yes +HAS_CONFIGURE= yes +WRKSRC= ${WRKDIR}/PAPI/src +WRKMAN= ${WRKDIR}/PAPI/man + +OPTIONS= CTESTS "Install C tests" On +OPTIONS+= FTESTS "Install Fortran tests" On +OPTIONS+= DEBUG "Add debug information (increased verbosity)" Off + +.include <bsd.port.pre.mk> + +.if defined(WITHOUT_CTESTS) +PLIST_SUB+= CTESTS="@comment " +.else +PLIST_SUB+= CTESTS="" +.endif + +.if defined(WITHOUT_FTESTS) +PLIST_SUB+= FTESTS="@comment " +.else +PLIST_SUB+= FTESTS="" +.endif + +.if defined(WITHOUT_DEBUG) +CONFIGURE_ARGS+= --without-debug +.else +CONFIGURE_ARGS+= --with-debug +.endif + +MAN1= papi_avail.1 \ + papi_clockres.1 \ + papi_command_line.1 \ + papi_cost.1 \ + papi_decode.1 \ + papi_event_chooser.1 \ + papi_mem_info.1 \ + papi_native_avail.1 +MAN3= PAPI.3 \ + PAPIF.3 \ + PAPIF_get_clockrate.3 \ + PAPIF_get_domain.3 \ + PAPIF_get_exe_info.3 \ + PAPIF_get_granularity.3 \ + PAPIF_get_preload.3 \ + PAPIF_set_event_domain.3 \ + PAPI_accum.3 \ + PAPI_accum_counters.3 \ + PAPI_add_event.3 \ + PAPI_add_events.3 \ + PAPI_attach.3 \ + PAPI_cleanup_eventset.3 \ + PAPI_create_eventset.3 \ + PAPI_destroy_eventset.3 \ + PAPI_detach.3 \ + PAPI_encode_events.3 \ + PAPI_enum_event.3 \ + PAPI_event_code_to_name.3 \ + PAPI_event_name_to_code.3 \ + PAPI_flips.3 \ + PAPI_flops.3 \ + PAPI_get_dmem_info.3 \ + PAPI_get_event_info.3 \ + PAPI_get_executable_info.3 \ + PAPI_get_hardware_info.3 \ + PAPI_get_multiplex.3 \ + PAPI_get_opt.3 \ + PAPI_get_overflow_event_index.3 \ + PAPI_get_real_cyc.3 \ + PAPI_get_real_usec.3 \ + PAPI_get_shared_lib_info.3 \ + PAPI_get_substrate_info.3 \ + PAPI_get_thr_specific.3 \ + PAPI_get_virt_cyc.3 \ + PAPI_get_virt_usec.3 \ + PAPI_help.3 \ + PAPI_ipc.3 \ + PAPI_is_initialized.3 \ + PAPI_library_init.3 \ + PAPI_list_events.3 \ + PAPI_list_threads.3 \ + PAPI_lock.3 \ + PAPI_multiplex_init.3 \ + PAPI_native.3 \ + PAPI_num_counters.3 \ + PAPI_num_events.3 \ + PAPI_num_hwctrs.3 \ + PAPI_overflow.3 \ + PAPI_perror.3 \ + PAPI_presets.3 \ + PAPI_profil.3 \ + PAPI_query_event.3 \ + PAPI_read.3 \ + PAPI_read_counters.3 \ + PAPI_register_thread.3 \ + PAPI_remove_event.3 \ + PAPI_remove_events.3 \ + PAPI_reset.3 \ + PAPI_set_debug.3 \ + PAPI_set_domain.3 \ + PAPI_set_event_info.3 \ + PAPI_set_granularity.3 \ + PAPI_set_multiplex.3 \ + PAPI_set_opt.3 \ + PAPI_set_thr_specific.3 \ + PAPI_shutdown.3 \ + PAPI_sprofil.3 \ + PAPI_start.3 \ + PAPI_start_counters.3 \ + PAPI_state.3 \ + PAPI_stop.3 \ + PAPI_stop_counters.3 \ + PAPI_strerror.3 \ + PAPI_thread_id.3 \ + PAPI_thread_init.3 \ + PAPI_unlock.3 \ + PAPI_unregister_thread.3 \ + PAPI_write.3 + +PAPI_LIBS= libpapi.a \ + libpapi.so + +PAPI_BINARIES= papi_avail \ + papi_clockres \ + papi_command_line \ + papi_cost \ + papi_decode \ + papi_event_chooser \ + papi_mem_info \ + papi_native_avail + +PAPI_INCLUDES= f77papi.h \ + f90papi.h \ + fpapi.h \ + papi.h \ + papiStdEventDefs.h + +PAPI_FORTRAN_TESTS= strtest \ + zero \ + first \ + second \ + tenth \ + description \ + fdmemtest \ + accum \ + highlevel \ + cost \ + johnmay2 \ + native \ + avail \ + case1 \ + case2 \ + clockres \ + eventname \ + fmatrixlowpapi \ + fmatrixpapi \ + flops \ + fmatrixpapi2 \ + fmultiplex1 \ + fmultiplex2 + +PAPI_C_TESTS= ipc \ + hwinfo \ + code2name \ + reset \ + subinfo \ + realtime \ + first \ + exeinfo \ + zero \ + zero_fork \ + branches \ + dmem_info \ + all_native_events \ + all_events \ + derived \ + high-level2 \ + describe \ + memory \ + zero_flip \ + low-level \ + high-level \ + eventname \ + case1 \ + case2 \ + calibrate \ + flops \ + second \ + johnmay2 \ + overflow \ + overflow_force_software \ + overflow_single_event \ + overflow_twoevents \ + timer_overflow \ + overflow2 \ + matrix-hl \ + tenth \ + encode \ + encode2 \ + profile \ + sprofile \ + profile_twoevents \ + byte_profile \ + native \ + overflow_index \ + overflow_one_and_read \ + multiplex1_pthreads \ + multiplex3_pthreads \ + kufrin \ + multiplex1 \ + multiplex2 \ + mendes-alt \ + sdsc-mpx \ + sdsc2-mpx \ + sdsc4-mpx \ + thrspecific \ + profile_pthreads \ + overflow_pthreads \ + zero_pthreads \ + unregister_pthreads \ + clockres_pthreads \ + overflow3_pthreads \ + locks_pthreads + +do-install: +.for f in ${PAPI_BINARIES} + ${INSTALL_PROGRAM} ${WRKSRC}/utils/${f} ${PREFIX}/bin +.endfor +.for f in ${PAPI_INCLUDES} + ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/include +.endfor +.if defined(WITH_FTESTS) + ${MKDIR} ${PREFIX}/share/ftests +.for f in ${PAPI_FORTRAN_TESTS} + ${INSTALL_PROGRAM} ${WRKSRC}/ftests/${f} ${PREFIX}/share/ftests +.endfor +.endif +.if defined(WITH_CTESTS) + ${MKDIR} ${PREFIX}/share/ctests +.for f in ${PAPI_C_TESTS} + ${INSTALL_PROGRAM} ${WRKSRC}/ctests/${f} ${PREFIX}/share/ctests +.endfor +.endif +.for f in ${PAPI_LIBS} + ${INSTALL_PROGRAM} ${WRKSRC}/${f} ${PREFIX}/lib +.endfor +.for f in ${MAN1} + ${INSTALL_MAN} ${WRKMAN}/man1/${f} ${PREFIX}/man/man1 +.endfor +.for f in ${MAN3} + ${INSTALL_MAN} ${WRKMAN}/man3/${f} ${PREFIX}/man/man3 +.endfor + +.include <bsd.port.post.mk> diff --git a/devel/papi/distinfo b/devel/papi/distinfo new file mode 100644 index 000000000000..81460ce79ff0 --- /dev/null +++ b/devel/papi/distinfo @@ -0,0 +1,3 @@ +MD5 (papi-3.5.0-freebsd-rev40.tar.bz2) = 65dd356780ec12656394c6408dde8649 +SHA256 (papi-3.5.0-freebsd-rev40.tar.bz2) = 2908b60ca9f9dcd90f9ae38044cecabad4cd89156ac8112a15607657efcb3f77 +SIZE (papi-3.5.0-freebsd-rev40.tar.bz2) = 2789474 diff --git a/devel/papi/pkg-descr b/devel/papi/pkg-descr new file mode 100644 index 000000000000..3c4237704344 --- /dev/null +++ b/devel/papi/pkg-descr @@ -0,0 +1,6 @@ +PAPI aims to provide the tool designer and application engineer with a +consistent interface and methodology for use of the performance counter +hardware found in most major microprocessors. + +PAPI enables software engineers to see, in near real time, the relation +between software performance and processor events. diff --git a/devel/papi/pkg-plist b/devel/papi/pkg-plist new file mode 100644 index 000000000000..52fd5d85c82f --- /dev/null +++ b/devel/papi/pkg-plist @@ -0,0 +1,102 @@ +bin/papi_avail +bin/papi_clockres +bin/papi_command_line +bin/papi_cost +bin/papi_decode +bin/papi_event_chooser +bin/papi_mem_info +bin/papi_native_avail +include/f77papi.h +include/f90papi.h +include/fpapi.h +include/papi.h +include/papiStdEventDefs.h +lib/libpapi.a +lib/libpapi.so +%%CTESTS%%share/ctests/all_events +%%CTESTS%%share/ctests/all_native_events +%%CTESTS%%share/ctests/branches +%%CTESTS%%share/ctests/byte_profile +%%CTESTS%%share/ctests/calibrate +%%CTESTS%%share/ctests/case1 +%%CTESTS%%share/ctests/case2 +%%CTESTS%%share/ctests/clockres_pthreads +%%CTESTS%%share/ctests/code2name +%%CTESTS%%share/ctests/derived +%%CTESTS%%share/ctests/describe +%%CTESTS%%share/ctests/dmem_info +%%CTESTS%%share/ctests/encode +%%CTESTS%%share/ctests/encode2 +%%CTESTS%%share/ctests/eventname +%%CTESTS%%share/ctests/exeinfo +%%CTESTS%%share/ctests/first +%%CTESTS%%share/ctests/flops +%%CTESTS%%share/ctests/high-level +%%CTESTS%%share/ctests/high-level2 +%%CTESTS%%share/ctests/hwinfo +%%CTESTS%%share/ctests/ipc +%%CTESTS%%share/ctests/johnmay2 +%%CTESTS%%share/ctests/kufrin +%%CTESTS%%share/ctests/locks_pthreads +%%CTESTS%%share/ctests/low-level +%%CTESTS%%share/ctests/matrix-hl +%%CTESTS%%share/ctests/memory +%%CTESTS%%share/ctests/mendes-alt +%%CTESTS%%share/ctests/multiplex1 +%%CTESTS%%share/ctests/multiplex1_pthreads +%%CTESTS%%share/ctests/multiplex2 +%%CTESTS%%share/ctests/multiplex3_pthreads +%%CTESTS%%share/ctests/native +%%CTESTS%%share/ctests/overflow +%%CTESTS%%share/ctests/overflow2 +%%CTESTS%%share/ctests/overflow3_pthreads +%%CTESTS%%share/ctests/overflow_force_software +%%CTESTS%%share/ctests/overflow_index +%%CTESTS%%share/ctests/overflow_one_and_read +%%CTESTS%%share/ctests/overflow_pthreads +%%CTESTS%%share/ctests/overflow_single_event +%%CTESTS%%share/ctests/overflow_twoevents +%%CTESTS%%share/ctests/profile +%%CTESTS%%share/ctests/profile_pthreads +%%CTESTS%%share/ctests/profile_twoevents +%%CTESTS%%share/ctests/realtime +%%CTESTS%%share/ctests/reset +%%CTESTS%%share/ctests/sdsc-mpx +%%CTESTS%%share/ctests/sdsc2-mpx +%%CTESTS%%share/ctests/sdsc4-mpx +%%CTESTS%%share/ctests/second +%%CTESTS%%share/ctests/sprofile +%%CTESTS%%share/ctests/subinfo +%%CTESTS%%share/ctests/tenth +%%CTESTS%%share/ctests/thrspecific +%%CTESTS%%share/ctests/timer_overflow +%%CTESTS%%share/ctests/unregister_pthreads +%%CTESTS%%share/ctests/zero +%%CTESTS%%share/ctests/zero_flip +%%CTESTS%%share/ctests/zero_fork +%%CTESTS%%share/ctests/zero_pthreads +%%FTESTS%%share/ftests/accum +%%FTESTS%%share/ftests/avail +%%FTESTS%%share/ftests/case1 +%%FTESTS%%share/ftests/case2 +%%FTESTS%%share/ftests/clockres +%%FTESTS%%share/ftests/cost +%%FTESTS%%share/ftests/description +%%FTESTS%%share/ftests/eventname +%%FTESTS%%share/ftests/fdmemtest +%%FTESTS%%share/ftests/first +%%FTESTS%%share/ftests/flops +%%FTESTS%%share/ftests/fmatrixlowpapi +%%FTESTS%%share/ftests/fmatrixpapi +%%FTESTS%%share/ftests/fmatrixpapi2 +%%FTESTS%%share/ftests/fmultiplex1 +%%FTESTS%%share/ftests/fmultiplex2 +%%FTESTS%%share/ftests/highlevel +%%FTESTS%%share/ftests/johnmay2 +%%FTESTS%%share/ftests/native +%%FTESTS%%share/ftests/second +%%FTESTS%%share/ftests/strtest +%%FTESTS%%share/ftests/tenth +%%FTESTS%%share/ftests/zero +%%CTESTS%%@dirrm share/ctests +%%FTESTS%%@dirrm share/ftests |