Skip to content

Commit

Permalink
i#2039 trace trim, part 8: Enable for x86 (#5832)
Browse files Browse the repository at this point in the history
With the stability issues with drbbdup seemingly solved, we enable
-align_endpoints by default for x86 (it was already on for AArchXX).

Fixes #2039
  • Loading branch information
derekbruening authored and dolanzhao committed Jan 30, 2023
1 parent 1617413 commit 87446f4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
10 changes: 5 additions & 5 deletions clients/drcachesim/common/options.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* **********************************************************
* Copyright (c) 2015-2022 Google, Inc. All rights reserved.
* Copyright (c) 2015-2023 Google, Inc. All rights reserved.
* **********************************************************/

/*
Expand Down Expand Up @@ -287,10 +287,10 @@ droption_t<bytesize_t> op_max_global_trace_refs(
"The reference count is approximate.");

droption_t<bool> op_align_endpoints(
// XXX i#2039,i#5686: Make this true by default (and maybe remove it altogether) once
// robustness issues with drbbdup are fixed (restore state for scatter/gather and
// other libs; yet-undiagnosed other state restore issues) on x86.
DROPTION_SCOPE_CLIENT, "align_endpoints", IF_X86_ELSE(false, true),
// XXX i#2039,i#5686: Remove this altogether once more time passes and we
// are no longer worried about any robustness issues with drbbdup where we might
// want to disable this to see where a new problem is coming from.
DROPTION_SCOPE_CLIENT, "align_endpoints", true,
"Nop tracing when partially attached or detached",
"When using attach/detach to trace a burst, the attach and detach processes are "
"staggered, with the set of threads producing trace data incrementally growing or "
Expand Down
3 changes: 2 additions & 1 deletion clients/drcachesim/tracer/instru_online.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* **********************************************************
* Copyright (c) 2016-2022 Google, Inc. All rights reserved.
* Copyright (c) 2016-2023 Google, Inc. All rights reserved.
* **********************************************************/

/*
Expand Down Expand Up @@ -201,6 +201,7 @@ bool
online_instru_t::refresh_unit_header_timestamp(byte *buf_ptr, uint64 min_timestamp)
{
trace_entry_t *stamp = reinterpret_cast<trace_entry_t *>(buf_ptr);
stamp++; // Skip the tid added by append_unit_header() before the timestamp.
DR_ASSERT(stamp->type == TRACE_TYPE_MARKER &&
stamp->size == TRACE_MARKER_TYPE_TIMESTAMP);
if (stamp->addr < min_timestamp) {
Expand Down

0 comments on commit 87446f4

Please sign in to comment.