summaryrefslogtreecommitdiff
path: root/ioshark/ioshark_bench.h
diff options
context:
space:
mode:
authorMohan Srinivasan <srmohan@google.com>2017-07-19 15:26:57 -0700
committerMohan Srinivasan <srmohan@google.com>2017-07-20 11:37:12 -0700
commit9dd787071c529105c59c46ce5ba1852ec36139af (patch)
tree592e72dbe658255e7a12ecdb706544e27a8bd8f7 /ioshark/ioshark_bench.h
parentb9d4b523807ec549c4b93921651122fa4ee9e8d1 (diff)
downloadextras-9dd787071c529105c59c46ce5ba1852ec36139af.tar.gz
IOshark portability across 32- and 64-bit, little/big endian devices.
Make IOshark portable across 32-bit and 64-bit devices, as well as little endian and big endian architectures. This is achieved by locking down the on-disk format of IOshark workload files. We can now generate the workload files on a 64-bit host and use those workload files to run the benchmark on a 32-bit userspace device (such as fugu). The change also has minor fixes to make IOshark work on taimen and walleye. Test: Test across 64- and 32-bit devices. Generate workload files on a 64 bit device and test on 32-bit devices (as well as 64-bit devices). Change-Id: I700ca5ae0da0ab029d977c906a63f1cd20a78a14 Signed-off-by: Mohan Srinivasan <srmohan@google.com>
Diffstat (limited to 'ioshark/ioshark_bench.h')
-rw-r--r--ioshark/ioshark_bench.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ioshark/ioshark_bench.h b/ioshark/ioshark_bench.h
index d0d09626..8ae8597d 100644
--- a/ioshark/ioshark_bench.h
+++ b/ioshark/ioshark_bench.h
@@ -152,3 +152,7 @@ char *get_ro_filename(int ix);
void init_filename_cache(void);
void free_filename_cache(void);
int is_readonly_mount(char *filename, size_t size);
+
+int ioshark_read_header(FILE *fp, struct ioshark_header *header);
+int ioshark_read_file_state(FILE *fp, struct ioshark_file_state *state);
+int ioshark_read_file_op(FILE *fp, struct ioshark_file_operation *file_op);