codes-workload-method.h 773 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
/*
 * Copyright (C) 2013 University of Chicago.
 * See COPYRIGHT notice in top-level directory.
 *
 */

/* I/O workload generator API to be used by workload generators.  It mimics
 * the top level codes-workload.h API, except that there is no reverse
 * handler.
 */

#ifndef CODES_WORKLOAD_METHOD_H
#define CODES_WORKLOAD_METHOD_H

#include "ross.h"
#include "codes/codes-workload.h"

18 19 20 21 22 23
struct codes_workload_method
{
    char *method_name; /* name of the generator */
    int (*codes_workload_load)(const char* params, int rank);
    void (*codes_workload_get_next)(int wkld_id, struct codes_workload_op *op);
};
24 25 26 27 28 29 30 31 32 33 34

#endif /* CODES_WORKLOAD_METHOD_H */

/*
 * Local variables:
 *  c-indent-level: 4
 *  c-basic-offset: 4
 * End:
 *
 * vim: ft=c ts=8 sts=4 sw=4 expandtab
 */