Skip to content

Commit

Permalink
Fix regex to reduce overhead.
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinav92003 committed Nov 28, 2023
1 parent d89c89a commit d612b73
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clients/drcachesim/tests/offline-kernel-syscall-mix.templatex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Hello, world!
Syscall mix tool results:
syscall count : syscall_num
( *[1-9][0-9]* : *[0-9]*.*)+
.*
syscall trace count : syscall_num
( *[1-9][0-9]* : *[0-9]*.*)+
.*
5 changes: 5 additions & 0 deletions clients/drcachesim/tracer/raw2trace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1071,6 +1071,11 @@ raw2trace_t::process_syscall_pt(raw2trace_thread_data_t *tdata, uint64_t syscall
*buf = entry;
++buf;
}
if (buf != entries_with_encodings) {
if (!write(tdata, entries_with_encodings, buf, &saved_decode_pc, 1)) {
return false;
}
}
return true;
}

Expand Down

0 comments on commit d612b73

Please sign in to comment.