Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i#4318 xarch memtrace: Remove raw from final name #4365

Merged
merged 1 commit into from
Jul 8, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion clients/drcachesim/tracer/raw2trace.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@

#define OUTFILE_SUFFIX "raw"
#ifdef HAS_ZLIB
# define OUTFILE_SUFFIX_GZ "gz"
# define OUTFILE_SUFFIX_GZ "raw.gz"
#endif
#define OUTFILE_SUBDIR "raw"
#define TRACE_SUBDIR "trace"
Expand Down
4 changes: 2 additions & 2 deletions clients/drcachesim/tracer/raw2trace_directory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,10 @@ raw2trace_directory_t::open_thread_log_file(const char *basename)
const char *basename_pre_suffix = nullptr;
bool is_gzipped = false;
#ifdef HAS_ZLIB
basename_pre_suffix = strstr(basename_dot, OUTFILE_SUFFIX_GZ);
basename_pre_suffix =
strstr(basename_dot - strlen(OUTFILE_SUFFIX_GZ), OUTFILE_SUFFIX_GZ);
if (basename_pre_suffix != nullptr) {
is_gzipped = true;
basename_dot = strrchr(basename_pre_suffix, '.');
}
#endif
if (basename_pre_suffix == nullptr)
Expand Down