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#4083 func view: Allow for 7-digit thread id in func_view tests #4454

Merged
merged 1 commit into from
Sep 28, 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
172 changes: 86 additions & 86 deletions clients/drcachesim/tests/offline-func_view_noret.templatex
Original file line number Diff line number Diff line change
@@ -1,89 +1,89 @@
T125255 0x7f3ac9a2a9ca => tool\.fib_plus!fib\(0x5\)
T125255 0x7f3ac9a2a985 => tool\.fib_plus!noret_func\(0x5, 0x6\)
T125255 0x7f3ac9a2a957 => tool\.fib_plus!noret_func\(0x6, 0x6\)
T125256 0x7f3ac9a2a9ca => tool\.fib_plus!fib\(0x5\)
T125256 0x7f3ac9a2a985 => tool\.fib_plus!noret_func\(0x5, 0x6\)
T125256 0x7f3ac9a2a957 => tool\.fib_plus!noret_func\(0x6, 0x6\)
T125255 0x7f3ac9a2a98f => tool\.fib_plus!noargs\(\) => 0x42
T125255 0x7f3ac9a2a99c => tool\.fib_plus!fib\(0x4\)
T125255 0x7f3ac9a2a985 => tool\.fib_plus!noret_func\(0x4, 0x5\)
T125255 0x7f3ac9a2a957 => tool\.fib_plus!noret_func\(0x5, 0x5\)
T125255 0x7f3ac9a2a98f => tool\.fib_plus!noargs\(\) => 0x42
T125255 0x7f3ac9a2a99c => tool\.fib_plus!fib\(0x3\)
T125255 0x7f3ac9a2a985 => tool\.fib_plus!noret_func\(0x3, 0x4\)
T125255 0x7f3ac9a2a957 => tool\.fib_plus!noret_func\(0x4, 0x4\)
T125255 0x7f3ac9a2a98f => tool\.fib_plus!noargs\(\) => 0x42
T125255 0x7f3ac9a2a99c => tool\.fib_plus!fib\(0x2\)
T125255 0x7f3ac9a2a985 => tool\.fib_plus!noret_func\(0x2, 0x3\)
T125255 0x7f3ac9a2a957 => tool\.fib_plus!noret_func\(0x3, 0x3\)
T125256 0x7f3ac9a2a98f => tool\.fib_plus!noargs\(\) => 0x42
T125256 0x7f3ac9a2a99c => tool\.fib_plus!fib\(0x4\)
T125256 0x7f3ac9a2a985 => tool\.fib_plus!noret_func\(0x4, 0x5\)
T125256 0x7f3ac9a2a957 => tool\.fib_plus!noret_func\(0x5, 0x5\)
T125256 0x7f3ac9a2a98f => tool\.fib_plus!noargs\(\) => 0x42
T125256 0x7f3ac9a2a99c => tool\.fib_plus!fib\(0x3\)
T125256 0x7f3ac9a2a985 => tool\.fib_plus!noret_func\(0x3, 0x4\)
T125256 0x7f3ac9a2a957 => tool\.fib_plus!noret_func\(0x4, 0x4\)
T125256 0x7f3ac9a2a98f => tool\.fib_plus!noargs\(\) => 0x42
T125256 0x7f3ac9a2a99c => tool\.fib_plus!fib\(0x2\)
T125256 0x7f3ac9a2a985 => tool\.fib_plus!noret_func\(0x2, 0x3\)
T125256 0x7f3ac9a2a957 => tool\.fib_plus!noret_func\(0x3, 0x3\)
T125255 0x7f3ac9a2a98f => tool\.fib_plus!noargs\(\) => 0x42
T125255 0x7f3ac9a2a99c => tool\.fib_plus!fib\(0x1\) => 0x1
T125255 0x7f3ac9a2a9ab => tool\.fib_plus!fib\(0x0\) => 0x1
T125255 => 0x2
T125255 0x7f3ac9a2a9ab => tool\.fib_plus!fib\(0x1\) => 0x1
T125255 => 0x3
T125255 0x7f3ac9a2a9ab => tool\.fib_plus!fib\(0x2\)
T125255 0x7f3ac9a2a985 => tool\.fib_plus!noret_func\(0x2, 0x3\)
T125255 0x7f3ac9a2a957 => tool\.fib_plus!noret_func\(0x3, 0x3\)
T125256 0x7f3ac9a2a98f => tool\.fib_plus!noargs\(\) => 0x42
T125256 0x7f3ac9a2a99c => tool\.fib_plus!fib\(0x1\) => 0x1
T125256 0x7f3ac9a2a9ab => tool\.fib_plus!fib\(0x0\) => 0x1
T125256 => 0x2
T125256 0x7f3ac9a2a9ab => tool\.fib_plus!fib\(0x1\) => 0x1
T125256 => 0x3
T125256 0x7f3ac9a2a9ab => tool\.fib_plus!fib\(0x2\)
T125256 0x7f3ac9a2a985 => tool\.fib_plus!noret_func\(0x2, 0x3\)
T125256 0x7f3ac9a2a957 => tool\.fib_plus!noret_func\(0x3, 0x3\)
T125255 0x7f3ac9a2a98f => tool\.fib_plus!noargs\(\) => 0x42
T125255 0x7f3ac9a2a99c => tool\.fib_plus!fib\(0x1\) => 0x1
T125255 0x7f3ac9a2a9ab => tool\.fib_plus!fib\(0x0\) => 0x1
T125255 => 0x2
T125255 => 0x5
T125255 0x7f3ac9a2a9ab => tool\.fib_plus!fib\(0x3\)
T125255 0x7f3ac9a2a985 => tool\.fib_plus!noret_func\(0x3, 0x4\)
T125255 0x7f3ac9a2a957 => tool\.fib_plus!noret_func\(0x4, 0x4\)
T125256 0x7f3ac9a2a98f => tool\.fib_plus!noargs\(\) => 0x42
T125256 0x7f3ac9a2a99c => tool\.fib_plus!fib\(0x1\) => 0x1
T125256 0x7f3ac9a2a9ab => tool\.fib_plus!fib\(0x0\) => 0x1
T125256 => 0x2
T125256 => 0x5
T125256 0x7f3ac9a2a9ab => tool\.fib_plus!fib\(0x3\)
T125256 0x7f3ac9a2a985 => tool\.fib_plus!noret_func\(0x3, 0x4\)
T125256 0x7f3ac9a2a957 => tool\.fib_plus!noret_func\(0x4, 0x4\)
T125255 0x7f3ac9a2a98f => tool\.fib_plus!noargs\(\) => 0x42
T125255 0x7f3ac9a2a99c => tool\.fib_plus!fib\(0x2\)
T125255 0x7f3ac9a2a985 => tool\.fib_plus!noret_func\(0x2, 0x3\)
T125255 0x7f3ac9a2a957 => tool\.fib_plus!noret_func\(0x3, 0x3\)
T125256 0x7f3ac9a2a98f => tool\.fib_plus!noargs\(\) => 0x42
T125256 0x7f3ac9a2a99c => tool\.fib_plus!fib\(0x2\)
T125256 0x7f3ac9a2a985 => tool\.fib_plus!noret_func\(0x2, 0x3\)
T125256 0x7f3ac9a2a957 => tool\.fib_plus!noret_func\(0x3, 0x3\)
T125256 0x7f3ac9a2a98f => tool\.fib_plus!noargs\(\) => 0x42
T125256 0x7f3ac9a2a99c => tool\.fib_plus!fib\(0x1\) => 0x1
T125256 0x7f3ac9a2a9ab => tool\.fib_plus!fib\(0x0\) => 0x1
T125256 => 0x2
T125256 0x7f3ac9a2a9ab => tool\.fib_plus!fib\(0x1\) => 0x1
T125256 => 0x3
T125256 => 0x8
T125255 0x7f3ac9a2a98f => tool\.fib_plus!noargs\(\) => 0x42
T125255 0x7f3ac9a2a99c => tool\.fib_plus!fib\(0x1\) => 0x1
T125255 0x7f3ac9a2a9ab => tool\.fib_plus!fib\(0x0\) => 0x1
T125255 => 0x2
T125255 0x7f3ac9a2a9ab => tool\.fib_plus!fib\(0x1\) => 0x1
T125255 => 0x3
T125255 => 0x8
T125255 0x7f3ac9a2a9ca => tool\.fib_plus!fib\(0x5\)
T125255 0x7f3ac9a2a985 => tool\.fib_plus!noret_func\(0x5, 0x6\)
T125255 0x7f3ac9a2a957 => tool\.fib_plus!noret_func\(0x6, 0x6\)
T125256 0x7f3ac9a2a9ca => tool\.fib_plus!fib\(0x5\)
T125256 0x7f3ac9a2a985 => tool\.fib_plus!noret_func\(0x5, 0x6\)
T125256 0x7f3ac9a2a957 => tool\.fib_plus!noret_func\(0x6, 0x6\)
T125255 0x7f3ac9a2a98f => tool\.fib_plus!noargs\(\) => 0x42
T125255 0x7f3ac9a2a99c => tool\.fib_plus!fib\(0x4\)
T125255 0x7f3ac9a2a985 => tool\.fib_plus!noret_func\(0x4, 0x5\)
T125255 0x7f3ac9a2a957 => tool\.fib_plus!noret_func\(0x5, 0x5\)
T125255 0x7f3ac9a2a98f => tool\.fib_plus!noargs\(\) => 0x42
T125255 0x7f3ac9a2a99c => tool\.fib_plus!fib\(0x3\)
T125255 0x7f3ac9a2a985 => tool\.fib_plus!noret_func\(0x3, 0x4\)
T125255 0x7f3ac9a2a957 => tool\.fib_plus!noret_func\(0x4, 0x4\)
T125255 0x7f3ac9a2a98f => tool\.fib_plus!noargs\(\) => 0x42
T125255 0x7f3ac9a2a99c => tool\.fib_plus!fib\(0x2\)
T125255 0x7f3ac9a2a985 => tool\.fib_plus!noret_func\(0x2, 0x3\)
T125255 0x7f3ac9a2a957 => tool\.fib_plus!noret_func\(0x3, 0x3\)
T125256 0x7f3ac9a2a98f => tool\.fib_plus!noargs\(\) => 0x42
T125256 0x7f3ac9a2a99c => tool\.fib_plus!fib\(0x4\)
T125256 0x7f3ac9a2a985 => tool\.fib_plus!noret_func\(0x4, 0x5\)
T125256 0x7f3ac9a2a957 => tool\.fib_plus!noret_func\(0x5, 0x5\)
T125256 0x7f3ac9a2a98f => tool\.fib_plus!noargs\(\) => 0x42
T125256 0x7f3ac9a2a99c => tool\.fib_plus!fib\(0x3\)
T125256 0x7f3ac9a2a985 => tool\.fib_plus!noret_func\(0x3, 0x4\)
T125256 0x7f3ac9a2a957 => tool\.fib_plus!noret_func\(0x4, 0x4\)
T125256 0x7f3ac9a2a98f => tool\.fib_plus!noargs\(\) => 0x42
T125256 0x7f3ac9a2a99c => tool\.fib_plus!fib\(0x2\)
T125256 0x7f3ac9a2a985 => tool\.fib_plus!noret_func\(0x2, 0x3\)
T125256 0x7f3ac9a2a957 => tool\.fib_plus!noret_func\(0x3, 0x3\)
T125255 0x7f3ac9a2a98f => tool\.fib_plus!noargs\(\) => 0x42
T125255 0x7f3ac9a2a99c => tool\.fib_plus!fib\(0x1\) => 0x1
T125255 0x7f3ac9a2a9ab => tool\.fib_plus!fib\(0x0\) => 0x1
T125255 => 0x2
T125255 0x7f3ac9a2a9ab => tool\.fib_plus!fib\(0x1\) => 0x1
T125255 => 0x3
T125255 0x7f3ac9a2a9ab => tool\.fib_plus!fib\(0x2\)
T125255 0x7f3ac9a2a985 => tool\.fib_plus!noret_func\(0x2, 0x3\)
T125255 0x7f3ac9a2a957 => tool\.fib_plus!noret_func\(0x3, 0x3\)
T125256 0x7f3ac9a2a98f => tool\.fib_plus!noargs\(\) => 0x42
T125256 0x7f3ac9a2a99c => tool\.fib_plus!fib\(0x1\) => 0x1
T125256 0x7f3ac9a2a9ab => tool\.fib_plus!fib\(0x0\) => 0x1
T125256 => 0x2
T125256 0x7f3ac9a2a9ab => tool\.fib_plus!fib\(0x1\) => 0x1
T125256 => 0x3
T125256 0x7f3ac9a2a9ab => tool\.fib_plus!fib\(0x2\)
T125256 0x7f3ac9a2a985 => tool\.fib_plus!noret_func\(0x2, 0x3\)
T125256 0x7f3ac9a2a957 => tool\.fib_plus!noret_func\(0x3, 0x3\)
T125255 0x7f3ac9a2a98f => tool\.fib_plus!noargs\(\) => 0x42
T125255 0x7f3ac9a2a99c => tool\.fib_plus!fib\(0x1\) => 0x1
T125255 0x7f3ac9a2a9ab => tool\.fib_plus!fib\(0x0\) => 0x1
T125255 => 0x2
T125255 => 0x5
T125255 0x7f3ac9a2a9ab => tool\.fib_plus!fib\(0x3\)
T125255 0x7f3ac9a2a985 => tool\.fib_plus!noret_func\(0x3, 0x4\)
T125255 0x7f3ac9a2a957 => tool\.fib_plus!noret_func\(0x4, 0x4\)
T125256 0x7f3ac9a2a98f => tool\.fib_plus!noargs\(\) => 0x42
T125256 0x7f3ac9a2a99c => tool\.fib_plus!fib\(0x1\) => 0x1
T125256 0x7f3ac9a2a9ab => tool\.fib_plus!fib\(0x0\) => 0x1
T125256 => 0x2
T125256 => 0x5
T125256 0x7f3ac9a2a9ab => tool\.fib_plus!fib\(0x3\)
T125256 0x7f3ac9a2a985 => tool\.fib_plus!noret_func\(0x3, 0x4\)
T125256 0x7f3ac9a2a957 => tool\.fib_plus!noret_func\(0x4, 0x4\)
T125255 0x7f3ac9a2a98f => tool\.fib_plus!noargs\(\) => 0x42
T125255 0x7f3ac9a2a99c => tool\.fib_plus!fib\(0x2\)
T125255 0x7f3ac9a2a985 => tool\.fib_plus!noret_func\(0x2, 0x3\)
T125255 0x7f3ac9a2a957 => tool\.fib_plus!noret_func\(0x3, 0x3\)
T125256 0x7f3ac9a2a98f => tool\.fib_plus!noargs\(\) => 0x42
T125256 0x7f3ac9a2a99c => tool\.fib_plus!fib\(0x2\)
T125256 0x7f3ac9a2a985 => tool\.fib_plus!noret_func\(0x2, 0x3\)
T125256 0x7f3ac9a2a957 => tool\.fib_plus!noret_func\(0x3, 0x3\)
T125256 0x7f3ac9a2a98f => tool\.fib_plus!noargs\(\) => 0x42
T125256 0x7f3ac9a2a99c => tool\.fib_plus!fib\(0x1\) => 0x1
T125256 0x7f3ac9a2a9ab => tool\.fib_plus!fib\(0x0\) => 0x1
T125256 => 0x2
T125256 0x7f3ac9a2a9ab => tool\.fib_plus!fib\(0x1\) => 0x1
T125256 => 0x3
T125256 => 0x8
T125255 0x7f3ac9a2a98f => tool\.fib_plus!noargs\(\) => 0x42
T125255 0x7f3ac9a2a99c => tool\.fib_plus!fib\(0x1\) => 0x1
T125255 0x7f3ac9a2a9ab => tool\.fib_plus!fib\(0x0\) => 0x1
T125255 => 0x2
T125255 0x7f3ac9a2a9ab => tool\.fib_plus!fib\(0x1\) => 0x1
T125255 => 0x3
T125255 => 0x8
Function view tool results:
Function id=0: tool\.fib_plus!fib
30 calls
Expand Down
4 changes: 2 additions & 2 deletions clients/drcachesim/tools/func_view.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ func_view_t::process_memref(const memref_t &memref)
std::string indent(shard->nesting_level * 4, ' ');
// Print a "Tnnn" prefix so threads can be distinguished.
std::cerr << ((was_nested && shard->prev_was_arg) ? "\n" : "") << "T" << std::dec
<< std::left << std::setw(7) << memref.marker.tid
<< std::left << std::setw(8) << memref.marker.tid
<< std::right /*restore*/;
std::cerr << indent << "0x" << std::hex << memref.marker.marker_value << " => "
<< *id2info_[shard->last_func_id].names.begin() << "(";
Expand Down Expand Up @@ -226,7 +226,7 @@ func_view_t::process_memref(const memref_t &memref)
std::string indent;
if (!shard->prev_was_arg) {
std::cerr
<< "T" << std::dec << std::left << std::setw(7) << memref.marker.tid
<< "T" << std::dec << std::left << std::setw(8) << memref.marker.tid
<< std::right /*restore*/ << std::string(shard->nesting_level * 4, ' ');
}
std::cerr << (shard->prev_was_arg ? " =>" : "=>") << std::hex << " 0x"
Expand Down