Simpleperf: work around unexpected (pid, tid) pair.
Bug: 22185053
Change-Id: Ibd224ce9918eac9fa5a71ec00835b3af2b03e578
diff --git a/simpleperf/thread_tree.cpp b/simpleperf/thread_tree.cpp
index a442686..937dfcf 100644
--- a/simpleperf/thread_tree.cpp
+++ b/simpleperf/thread_tree.cpp
@@ -63,7 +63,11 @@
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();
}