darshan.h 810 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
16
#define DARSHAN_MPI_CALL(func) func

17
typedef uint64_t darshan_file_id;
18

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

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

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

36
double darshan_core_wtime(void);
37

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

double darshan_wtime(void);

42
#endif /* __DARSHAN_H */