Skip to content

Commit

Permalink
i#6662 public traces: allow v2p.textproto in trace dir (#7136)
Browse files Browse the repository at this point in the history
Allows the v2p.textproto file to be in the trace directory of public
traces to avoid the following error:
```
$ drrun -t drmemtrace -indir ${path_to_public_trace_dir} -tool invariant_checker
Invalid header
Failed to initialize scheduler: Failed to open ${path_public_trace_dir}/v2p.textproto
ERROR: failed to initialize analyzer
```

Issue #6662
  • Loading branch information
edeiana authored Jan 1, 2025
1 parent 8bb7af5 commit 7203e72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clients/drcachesim/scheduler/scheduler_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ scheduler_impl_tmpl_t<memref_t, reader_t>::get_reader(const std::string &path,
// Skip the auxiliary files.
if (fname == DRMEMTRACE_MODULE_LIST_FILENAME ||
fname == DRMEMTRACE_FUNCTION_LIST_FILENAME ||
fname == DRMEMTRACE_ENCODING_FILENAME)
fname == DRMEMTRACE_ENCODING_FILENAME || fname == DRMEMTRACE_V2P_FILENAME)
continue;
# ifdef HAS_SNAPPY
if (ends_with(*iter, ".sz")) {
Expand Down Expand Up @@ -1686,7 +1686,7 @@ scheduler_impl_tmpl_t<RecordType, ReaderType>::open_readers(
// Skip the auxiliary files.
if (fname == DRMEMTRACE_MODULE_LIST_FILENAME ||
fname == DRMEMTRACE_FUNCTION_LIST_FILENAME ||
fname == DRMEMTRACE_ENCODING_FILENAME)
fname == DRMEMTRACE_ENCODING_FILENAME || fname == DRMEMTRACE_V2P_FILENAME)
continue;
const std::string file = path + DIRSEP + fname;
files.push_back(file);
Expand Down

0 comments on commit 7203e72

Please sign in to comment.