Skip to content

Commit

Permalink
Fix test logic
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinav92003 committed Oct 9, 2024
1 parent 4afe814 commit fa048d0
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions clients/drcachesim/tests/burst_syscall_pt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,7 @@ class pt_analysis_tool_t : public analysis_tool_t {
if (shard->syscall_count > 1 && !shard->any_syscall_had_trace) {
std::cerr << "No syscall had a trace\n";
}
// iX: Invert the second condition below after #7027 is merged.
if (shard->prev_was_futex_marker && shard->prev_syscall_had_trace) {
if (shard->prev_was_futex_marker && !shard->prev_syscall_had_trace) {
found_final_futex_without_trace_ = true;
}
if (shard->kernel_instr_count > 0) {
Expand Down Expand Up @@ -227,15 +226,15 @@ class pt_analysis_tool_t : public analysis_tool_t {
}
break;
}
if (shard->in_syscall_trace) {
++shard->kernel_instr_count;
return true;
}
if (type_is_instr(memref.data.type)) {
shard->prev_was_futex_marker = false;
shard->prev_syscall_had_trace = false;
}
}
if (!type_is_instr(memref.data.type))
return true;
if (shard->in_syscall_trace) {
++shard->kernel_instr_count;
return true;
}
shard->prev_was_futex_marker = false;
shard->prev_syscall_had_trace = false;
return true;
}
bool
Expand Down

0 comments on commit fa048d0

Please sign in to comment.