Commit 63161d1e authored by Philip Carns's avatar Philip Carns

added simple utility to print log format parameters


git-svn-id: https://svn.mcs.anl.gov/repos/darshan/trunk@120 3b7491f3-a168-0410-bf4b-c445ed680a29
parent 8496aca0
all: checkpath lib/libdarshan-posix.a lib/libdarshan-mpi-io.a darshan-parser darshan-diff darshan-analyzer test/gztest test/gz-bench
all: checkpath lib/libdarshan-posix.a lib/libdarshan-mpi-io.a darshan-parser darshan-diff darshan-analyzer test/gztest test/gz-bench darshan-log-params
DESTDIR =
srcdir = @srcdir@
......@@ -39,6 +39,9 @@ darshan-parser: darshan-parser.c darshan.h darshan-log-format.h darshan-logutils
darshan-analyzer: darshan-analyzer.c darshan.h darshan-log-format.h
gcc $(CFLAGS) -lz $< -o $@
darshan-log-params: darshan-log-params.c darshan-log-format.h
gcc $(CFLAGS) -lz $< -o $@
darshan-diff: darshan-diff.o darshan.h darshan-log-format.h darshan-logutils.o darshan-logutils.h
gcc $(CFLAGS) -lz $< darshan-logutils.o -o $@
darshan-diff.o: darshan-diff.c
......
#include <stdio.h>
#include "darshan-log-format.h"
int main(int argc, char **argv)
{
printf("version: %s\n", CP_VERSION);
printf("CP_JOB_RECORD_SIZE: %d\n", CP_JOB_RECORD_SIZE);
printf("CP_EXE_LEN: %d\n", CP_EXE_LEN);
printf("CP_FILE_RECORD_SIZE: %d\n", CP_FILE_RECORD_SIZE);
printf("CP_NAME_SUFFIX_LEN: %d\n", CP_NAME_SUFFIX_LEN);
printf("CP_NUM_INDICES: %d\n", CP_NUM_INDICES);
printf("CP_F_NUM_INDICES: %d\n", CP_F_NUM_INDICES);
return(0);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment