From 2d8b8119228bbe4202490b1d5fed6191989d5d83 Mon Sep 17 00:00:00 2001 From: Alex Light Date: Mon, 11 Mar 2019 15:50:24 +0000 Subject: Revert^2 "Add extension and agent for dumping internal jvmti plugin data." This reverts commit 9da91d2ee78a32e4bfa5f402f23835652b87023e. Reason for revert: Fixed issue with previous CL Test: ./test.py --host Change-Id: I02a2966439ac45b1843ea28e64b7b30f7282c794 --- openjdkjvmti/ti_extension.cc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'openjdkjvmti/ti_extension.cc') diff --git a/openjdkjvmti/ti_extension.cc b/openjdkjvmti/ti_extension.cc index 5d398844b2..f12cb0a380 100644 --- a/openjdkjvmti/ti_extension.cc +++ b/openjdkjvmti/ti_extension.cc @@ -38,6 +38,7 @@ #include "ti_allocator.h" #include "ti_class.h" #include "ti_ddms.h" +#include "ti_dump.h" #include "ti_heap.h" #include "ti_logging.h" #include "ti_monitor.h" @@ -312,6 +313,20 @@ jvmtiError ExtensionUtil::GetExtensionFunctions(jvmtiEnv* env, return error; } + // DumpInternalState + error = add_extension( + reinterpret_cast(DumpUtil::DumpInternalState), + "com.android.art.misc.get_plugin_internal_state", + "Gets internal state about the plugin and serializes it to the given msg. " + "There is no particular format to this message beyond being human readable.", + { + { "msg", JVMTI_KIND_ALLOC_BUF, JVMTI_TYPE_CCHAR, false }, + }, + { ERR(NULL_POINTER) }); + if (error != ERR(NONE)) { + return error; + } + // Copy into output buffer. *extension_count_ptr = ext_vector.size(); -- cgit v1.2.3-59-g8ed1b