darshan-core.h 908 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
/*
 *  (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>

13 14
#include "darshan.h"

15 16 17
/* TODO: enforce this when handing out ids */
#define DARSHAN_CORE_MAX_RECORDS 1024

18
struct darshan_core_module
19
{
20
    darshan_module_id id;
21
    char name[DARSHAN_MOD_NAME_LEN+1];
22 23 24
    struct darshan_module_funcs mod_funcs;
};

25
/* in memory structure to keep up with job level data */
26
/* TODO: trailing data ? */
27
struct darshan_core_runtime
28 29 30 31
{
    struct darshan_job log_job;
    char exe[CP_EXE_LEN+1];
    double wtime_offset;
32 33 34 35 36 37 38 39 40
    struct darshan_core_record_ref *rec_hash;
    struct darshan_core_module* mod_array[DARSHAN_MAX_MODS];
};

struct darshan_core_record_ref
{
    char* name;
    darshan_record_id id;
    UT_hash_handle hlink;
41
};
42

43
#endif /* __DARSHAN_CORE_H */