rocksdb/trace_replay
Akanksha Mahajan d93bd3ce25 Add FileSystem wrapper classes for IO tracing. (#7002)
Summary:
1. Add the wrapper classes FileSystemTracingWrapper, FSSequentialFileTracingWrapper, FSRandomAccessFileTracingWrapper, FSWritableFileTracingWrapper, FSRandomRWFileTracingWrapper that forward the calls to underlying storage system and then pass the file operation information to IOTracer. IOTracer dumps the record in binary format for tracing.
2. Add the wrapper classes FileSystemPtr, FSSequentialFilePtr, FSRandomAccessFilePtr, FSWritableFilePtr and FSRandomRWFilePtr that overload operator-> and return ptr to underlying storage system or Tracing wrapper class based on enabling/disabling of IO tracing. These classes are added to bypass Tracing Wrapper classes when we disable tracing.
3. Add enums in trace.h that distinguish which options need to be added for different file operations(Read, close, write etc) as part of tracing record.

Pull Request resolved: https://github.com/facebook/rocksdb/pull/7002

Test Plan: make check -j64

Reviewed By: anand1976

Differential Revision: D22127897

Pulled By: akankshamahajan15

fbshipit-source-id: 74cff58ce5661c9a3832dfaa52483f3b2d8565e0
2020-07-13 16:36:55 -07:00
..
block_cache_tracer_test.cc Replace namespace name "rocksdb" with ROCKSDB_NAMESPACE (#6433) 2020-02-20 12:09:57 -08:00
block_cache_tracer.cc Fix unity build broken by #7007 (#7024) 2020-06-24 13:40:48 -07:00
block_cache_tracer.h Fix more defects reported by Coverity Scan (#6935) 2020-06-04 15:35:08 -07:00
io_tracer_test.cc Add FileSystem wrapper classes for IO tracing. (#7002) 2020-07-13 16:36:55 -07:00
io_tracer.cc Add FileSystem wrapper classes for IO tracing. (#7002) 2020-07-13 16:36:55 -07:00
io_tracer.h Add FileSystem wrapper classes for IO tracing. (#7002) 2020-07-13 16:36:55 -07:00
trace_replay.cc Fix multiple CF replay failure in db_bench replay (#6787) 2020-05-01 00:03:38 -07:00
trace_replay.h Add FileSystem wrapper classes for IO tracing. (#7002) 2020-07-13 16:36:55 -07:00