/home/aching/Avery/Work.School/Research/pvfs2-lock/s3asim/src/hist_params.c File Reference

#include "hist_params.h"

Defines

#define STR_BUF_SIZE   1024

Functions

int read_hist_params (struct test_params_s *test_params_p, int sequence_type)
void print_hist_params (struct test_params_s *test_params_p, int sequence_type)
int generate_rand_hist (int myid, unsigned int *seed_p, int sequence_type, struct work_info_s *work_info_p, struct mpe_events_s *mpe_events_p, struct test_params_s *test_params_p)

Variables

static const char * decode_sequence [MAX_SEQUENCE]

Define Documentation

#define STR_BUF_SIZE   1024


Function Documentation

int generate_rand_hist ( int  myid,
unsigned int *  seed_p,
int  sequence_type,
struct work_info_s work_info_p,
struct mpe_events_s mpe_events_p,
struct test_params_s test_params_p 
)

Based on the histogram information provided by either the query or database distributions, generate a sequence size.

Parameters:
myid MPI myid.
seed_p Seed to generate pseudo-random output.
sequence_type Either a QUERY or DATABASE type.
work_info_p Pointer to work information structure.
mpe_events_p Pointer to timing structure.
test_params_p Pointer to test_params.
Returns:
The sequence size, or negative values on error.

void print_hist_params ( struct test_params_s test_params_p,
int  sequence_type 
)

Prints out the histogram information from the test_params structure that has already been parsed from a file for either query or database distributions.

Parameters:
test_params_p Pointer to test_params.
sequence_type Either a QUERY or DATABASE type.

int read_hist_params ( struct test_params_s test_params_p,
int  sequence_type 
)

Reads in histogram information from a file for either query or database distributions.

Parameters:
test_params_p Pointer to test_params.
sequence_type Either a QUERY or DATABASE type.
Returns:
0 on success.


Variable Documentation

const char* decode_sequence[MAX_SEQUENCE] [static]

Initial value:

    {
        "QUERY",
        "DATABASE"
    }


Generated on Sun May 20 13:10:04 2007 for s3asim by  doxygen 1.4.7