summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYabin Cui <yabinc@google.com>2022-02-01 10:24:48 -0800
committerYabin Cui <yabinc@google.com>2022-02-01 10:28:11 -0800
commitf058ffab0add91c28963dfcb3c79000f43654b83 (patch)
tree2c8a3c8ad93a7557bb491bd3a186498679dc6c22
parent5ad50fd05e09eaf8bd27886bcc3ea1250c1c82e8 (diff)
downloadextras-f058ffab0add91c28963dfcb3c79000f43654b83.tar.gz
simpleperf: move OpenCSD error report to debug level.
This is to avoid too much logging when decoding ETM data. Bug: 217098340 Test: run profcollectd manually Change-Id: I6bf89b47dc3a4531b264673508a94cf99f3077b6
-rw-r--r--simpleperf/ETMDecoder.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/simpleperf/ETMDecoder.cpp b/simpleperf/ETMDecoder.cpp
index 4c72331e..41a7d130 100644
--- a/simpleperf/ETMDecoder.cpp
+++ b/simpleperf/ETMDecoder.cpp
@@ -31,7 +31,7 @@ namespace {
class DecoderLogStr : public ocsdMsgLogStrOutI {
public:
- void printOutStr(const std::string& out_str) override { LOG(INFO) << out_str; }
+ void printOutStr(const std::string& out_str) override { LOG(DEBUG) << out_str; }
};
class DecodeErrorLogger : public ocsdDefaultErrorLogger {
@@ -761,9 +761,8 @@ class ETMDecoderImpl : public ETMDecoder {
map_locator_.reset(new MapLocator(thread_tree_));
for (auto& cfg : configs_) {
int64_t configr = (*(const ocsd_etmv4_cfg*)*cfg.second).reg_configr;
- map_locator_->SetUseVmid(
- cfg.first,
- configr & (1U << ETM4_CFG_BIT_VMID | 1U << ETM4_CFG_BIT_VMID_OPT));
+ map_locator_->SetUseVmid(cfg.first,
+ configr & (1U << ETM4_CFG_BIT_VMID | 1U << ETM4_CFG_BIT_VMID_OPT));
}
InstallPacketCallback(map_locator_.get());