summaryrefslogblamecommitdiffstats
path: root/src/bench/helper.h
blob: 53f32bfc7aad9927f7df4a00cd612162bfcc08b9 (plain) (tree)
1
2
3
4


                     
                        


























                                   
               






                          
#ifndef IMAGEHELPER_H
#define IMAGEHELPER_H

#include <dnbd3/types.h>

#include <netdb.h>
#include <stdbool.h>
#include <stdint.h>
#include <string.h>
#include <sys/socket.h>

typedef struct log_info {
	uint64_t imageSize;
	uint64_t receivedBytes;
	uint64_t imageBlockCount;
	uint8_t *blockRequestCount;
} log_info;


typedef struct BenchCounters {
	int attempts;
	int success;
	int fails;
} BenchCounters;


typedef struct BenchThreadData {
	BenchCounters* counter;
	char* server_address;
	char * image_name;
	int runs;
	int bs;
	int threadNumber;
	bool closeSockets;
} BenchThreadData;



#endif