summaryrefslogtreecommitdiffstats
path: root/pablo/PabloHDF_RT.c
diff options
context:
space:
mode:
authorDan Wells <dwells@cs.uiuc.edu>2001-07-05 15:07:00 (GMT)
committerDan Wells <dwells@cs.uiuc.edu>2001-07-05 15:07:00 (GMT)
commit5fa81dec82fee408f233a4d9df4b3367c16745a0 (patch)
tree66da37d2f5d49846cbc30b980c09c1f4dcc4299f /pablo/PabloHDF_RT.c
parentd9d71b06e46f5b52eec44d8a86b0394de49940cf (diff)
downloadhdf5-5fa81dec82fee408f233a4d9df4b3367c16745a0.zip
hdf5-5fa81dec82fee408f233a4d9df4b3367c16745a0.tar.gz
hdf5-5fa81dec82fee408f233a4d9df4b3367c16745a0.tar.bz2
[svn-r4110]
Purpose: feature Description: allows the option of building the library libhdf-inst.a so that it can link with either the Pablo Trace Libraries or with the Pablo Performance Capture Facility (PCF) Solution: Added code for conditional compilation using the PCF_BUILD flag. When the library is made, the user can specify PABLO_BUILD=PCF which will cause the -DPCF_BUILD to be passed to the compiler. Platforms tested: Solaris, IRIX64
Diffstat (limited to 'pablo/PabloHDF_RT.c')
-rw-r--r--pablo/PabloHDF_RT.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/pablo/PabloHDF_RT.c b/pablo/PabloHDF_RT.c
index 6de90d2..c1289a4 100644
--- a/pablo/PabloHDF_RT.c
+++ b/pablo/PabloHDF_RT.c
@@ -109,6 +109,7 @@
// printFileMappingsRT : print map of named identifiers *
// _hdfNameDescriptor() : writes SDDF descriptor packet for names *
//======================================================================*/
+#ifndef PCF_BUILD
#ifdef _HDF5_
#include "H5config.h"
#endif
@@ -217,6 +218,7 @@ char *FileName; /* Name of Trace file */
HDFsetInfo openInfo; /* Info about file opened */
char openName[256]; /* Name of opened file */
extern char *hdfRecordPointer;
+extern char HDFprocNames[][40];
/*======================================================================*
// NAME *
// HDFinitTrace_RT-- initialize HDF real-time tracing *
@@ -1584,7 +1586,8 @@ void _hdfDescriptorRT( char *recordName, char *recordDescription,
//======================================================================*/
void writeHDFRecDescrptrsRT( void )
{
- char HDFProcNames[][40] = {
+/*
+ char HDFprocNames[][40] = {
"noName",
"noName",
"noName",
@@ -1593,13 +1596,14 @@ void writeHDFRecDescrptrsRT( void )
# include "HDFentryNames.h"
"HDF_Last_Entry"
};
+*/
int j, FAMILY;
char BUF1[256], BUF2[256] ;
_hdfNameDescriptor(); /* Descriptor for named identifiers */
for ( j = 0; j < NumHDFProcs; ++j ) {
if ( HDFQueues[j] != NULL ) {
strcpy( BUF2, "HDF ");
- strcat( BUF2, HDFProcNames[j] );
+ strcat( BUF2, HDFprocNames[j] );
strcat( BUF2, " Procedure Summary");
strcpy( BUF1, BUF2 );
strcat( BUF1, " Trace");
@@ -1690,3 +1694,4 @@ void _hdfNameDescriptor( void )
putBytes( recordBuffer, (unsigned) recordLength );
}
+#endif /* PCF_BUILD */