darshan-core.h 784 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
/*
 *  (C) 2014 by Argonne National Laboratory.
 *      See COPYRIGHT in top-level directory.
 */

#ifndef __DARSHAN_CORE_H
#define __DARSHAN_CORE_H

#include <unistd.h>
#include <sys/types.h>
#include <stdint.h>

#define DARSHAN_MPI_CALL(func) func

typedef uint64_t darshan_file_id;

struct darshan_module_funcs
{
    void (*prepare_for_shutdown)(void);
    void (*get_output_data)(void **, int);
};

struct darshan_module
{
    char *name;
    struct darshan_module_funcs mod_funcs;
};

void darshan_core_register_module(
    char *name,
    struct darshan_module_funcs *funcs,
    int *runtime_mem_limit);

void darshan_core_lookup_id(
    void *name,
    int len,
    int printable_flag,
    darshan_file_id *id);

40 41
double darshan_core_wtime(void);

42
#endif /* __DARSHAN_CORE_H */