summaryrefslogtreecommitdiff
path: root/simpleperf/thread_tree.cpp
diff options
context:
space:
mode:
authorYabin Cui <yabinc@google.com>2015-07-24 11:00:44 -0700
committerYabin Cui <yabinc@google.com>2015-07-24 11:00:44 -0700
commit5f2a170a577258a2792bd768a8a776a562f4e6c2 (patch)
tree199b41577f6718fd3d9fd828262b806378ded386 /simpleperf/thread_tree.cpp
parent5c9978ceeaeac2442c0ca4722111551ecbe6d144 (diff)
downloadextras-5f2a170a577258a2792bd768a8a776a562f4e6c2.tar.gz
Simpleperf: work around unexpected (pid, tid) pair.
Bug: 22185053 Change-Id: Ibd224ce9918eac9fa5a71ec00835b3af2b03e578
Diffstat (limited to 'simpleperf/thread_tree.cpp')
-rw-r--r--simpleperf/thread_tree.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/simpleperf/thread_tree.cpp b/simpleperf/thread_tree.cpp
index a4426869..937dfcfc 100644
--- a/simpleperf/thread_tree.cpp
+++ b/simpleperf/thread_tree.cpp
@@ -63,7 +63,11 @@ ThreadEntry* ThreadTree::FindThreadOrNew(int pid, int tid) {
AddThread(pid, tid, "unknown");
it = thread_tree_.find(tid);
} else {
- CHECK_EQ(pid, it->second.get()->pid) << "tid = " << tid;
+ if (pid != it->second.get()->pid) {
+ // TODO: b/22185053.
+ LOG(DEBUG) << "unexpected (pid, tid) pair: expected (" << it->second.get()->pid << ", " << tid
+ << "), actual (" << pid << ", " << tid << ")";
+ }
}
return it->second.get();
}