darshan.h 838 Bytes
Newer Older
1 2 3 4 5
/*
 *  (C) 2009 by Argonne National Laboratory.
 *      See COPYRIGHT in top-level directory.
 */

6 7 8 9 10 11 12 13 14
#ifndef __DARSHAN_H
#define __DARSHAN_H

#include <unistd.h>
#include <sys/types.h>
#include <stdint.h>
#include <mpi.h>
#include "darshan-log-format.h"

15
/* TODO these go where ? */
16 17
#define DARSHAN_MPI_CALL(func) func

18
typedef uint64_t darshan_file_id;
19

20
struct darshan_module_funcs
21
{
22 23
    void (*prepare_for_shutdown)(void);
    void (*get_output_data)(void **, int);
24 25
};

26 27 28 29
void darshan_core_register_module(
    char *name,
    struct darshan_module_funcs *funcs,
    int *runtime_mem_limit);
30

31 32 33 34 35
void darshan_core_lookup_id(
    void *name,
    int len,
    int printable_flag,
    darshan_file_id *id);
36

37
double darshan_core_wtime(void);
38

39 40 41 42
char* darshan_clean_file_path(const char* path);

double darshan_wtime(void);

43
#endif /* __DARSHAN_H */