diff options
author | Peter Collingbourne <pcc@google.com> | 2020-09-14 20:27:36 -0700 |
---|---|---|
committer | Peter Collingbourne <pcc@google.com> | 2020-09-15 21:32:36 -0700 |
commit | 864f15dd6d05abe77670e2e20fe7aa1819600e7c (patch) | |
tree | dd37358a2568729acacd33b6d279eb9466207e74 /debuggerd/debuggerd_test.cpp | |
parent | 278f11b57425d3a14369049e866c597980677988 (diff) |
Dump the per-thread TAGGED_ADDR_CTRL value if available.
This value indicates whether memory tagging is enabled on a thread,
the mode (sync or async) and the set of excluded tags. This information
can sometimes be important for understanding an MTE related crash,
so include it in the per-thread tombstone output.
Bug: 135772972
Change-Id: I25a16e10ac7fbb2b1ab2a961a5279f787039000b
Diffstat (limited to 'debuggerd/debuggerd_test.cpp')
-rw-r--r-- | debuggerd/debuggerd_test.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/debuggerd/debuggerd_test.cpp b/debuggerd/debuggerd_test.cpp index 108787e4a..5ed9e57fa 100644 --- a/debuggerd/debuggerd_test.cpp +++ b/debuggerd/debuggerd_test.cpp @@ -309,6 +309,11 @@ TEST_F(CrasherTest, smoke) { std::string result; ConsumeFd(std::move(output_fd), &result); ASSERT_MATCH(result, R"(signal 11 \(SIGSEGV\), code 1 \(SEGV_MAPERR\), fault addr 0xdead)"); + + if (mte_supported()) { + // Test that the default TAGGED_ADDR_CTRL value is set. + ASSERT_MATCH(result, R"(tagged_addr_ctrl: 000000000007fff3)"); + } } TEST_F(CrasherTest, tagged_fault_addr) { |