diff options
author | Mohan Srinivasan <srmohan@google.com> | 2017-02-24 16:34:28 -0800 |
---|---|---|
committer | Mohan Srinivasan <srmohan@google.com> | 2017-02-27 20:01:11 -0800 |
commit | 02f8626d766424406bcfea1e20ef352d3b9a72cf (patch) | |
tree | 768ececfd4d106049585ab238302e9f71f395797 /ioshark/compile_ioshark.h | |
parent | 2aa6e6fbda3ac6781efd022f01f8006cedda878d (diff) | |
download | extras-02f8626d766424406bcfea1e20ef352d3b9a72cf.tar.gz |
IOshark support to not pre-create files in /system, /vendor, ...
1) Add support to IOshark to not pre-create files that the workload
read from /system, /vendor and other read-only partitions. Instead
we just read the underlying files directly.
2) This support is implemented under a new -q (quick) mode.
3) Other misc fixes to do a setrlimit(NO_FD) so we don't run out
of fds during test.
4) Also commiting raw strace files from several monkey runs so we
can compile those if we make on disk IOshark format changes in the
future.
Test: Run IOshark with different workloads to make sure that this
skipping of pre-creation works fine.
Change-Id: Ic025cb0162eca479d9f529846e619dd4b71aa490
Signed-off-by: Mohan Srinivasan <srmohan@google.com>
Diffstat (limited to 'ioshark/compile_ioshark.h')
-rw-r--r-- | ioshark/compile_ioshark.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ioshark/compile_ioshark.h b/ioshark/compile_ioshark.h index 13095bf6..9e11bd20 100644 --- a/ioshark/compile_ioshark.h +++ b/ioshark/compile_ioshark.h @@ -21,6 +21,7 @@ struct files_db_s { int fileno; struct files_db_s *next; size_t size; + int global_filename_ix; }; /* Lifted from Wikipedia Jenkins Hash function page */ @@ -73,6 +74,8 @@ void files_db_write_objects(FILE *fp); void *files_db_add(char *filename); void *files_db_lookup(char *filename); int files_db_get_total_obj(void); +void init_filename_cache(void); +void store_filename_cache(void); |