Commit acaf35f7 authored by Philip Carns's avatar Philip Carns

expose timing hooks so that darshan-shutdown-bench can be executed without

using a speciall darshan build


git-svn-id: https://svn.mcs.anl.gov/repos/darshan/trunk@671 3b7491f3-a168-0410-bf4b-c445ed680a29
parent a27c1188
......@@ -225,9 +225,7 @@ extern struct darshan_job_runtime* darshan_global_job;
void darshan_initialize(int argc, char** argv, int nprocs, int rank);
void darshan_finalize(struct darshan_job_runtime* job);
void darshan_condense(void);
void darshan_search_bench(int argc, char** argv, int iters);
void darshan_shutdown(int timing_flag);
void darshan_shutdown_bench(int argc, char** argv, int rank, int nprocs);
void darshan_walk_file_accesses(struct darshan_job_runtime* final_job);
double darshan_wtime(void);
void darshan_mnt_id_from_path(const char* path, int64_t* device_id, int64_t* block_size);
......
......@@ -1391,7 +1391,6 @@ static void cp_access_counter(struct darshan_file_runtime* file, ssize_t size, e
return;
}
#if 0
void darshan_shutdown_bench(int argc, char** argv, int rank, int nprocs)
{
int* fd_array;
......@@ -1623,7 +1622,6 @@ void darshan_search_bench(int argc, char** argv, int iters)
free(fd_array);
free(size_array);
}
#endif
static double posix_wtime(void)
{
......
......@@ -14,15 +14,19 @@
#include <fcntl.h>
#include <mpi.h>
#include "darshan.h"
/* NOTE: we deliberately provide our own function declaration here; there is
* no header installed with the instrumentation package that defines the
* benchmarking hooks for us. This should only be used by special-purpose
* benchmarking tools.
*/
void darshan_shutdown_bench(int argc, char** argv, int rank, int nprocs);
int main(int argc, char **argv)
{
int nprocs;
int mynod;
int i;
int ret;
int fd;
int iters;
MPI_Init(&argc, &argv);
......
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