/art/test/909-attach-agent/ |
D | run | 18 agent=libtiagentd.so 20 agent=libtiagent.so 35 --args agent:${agent}=909-attach-agent 40 --args agent:${agent}=909-attach-agent 43 ./default-run "$@" --args agent:${agent}=909-attach-agent --external-log-tags 46 ./default-run "$@" --args agent:${agent}=909-attach-agent \
|
D | expected.txt | 3 Attached Agent for test 909-attach-agent 5 Attached Agent for test 909-attach-agent 10 Attached Agent for test 909-attach-agent 12 Attached Agent for test 909-attach-agent 17 Attached Agent for test 909-attach-agent 20 Attached Agent for test 909-attach-agent 26 Can't attach agent, process is not debuggable. 27 Can't attach agent, process is not debuggable.
|
/art/tools/jvmti-agents/titrace/ |
D | README.md | 14 * `-Xplugin` and `-agentpath` need to be used, otherwise libtitrace agent will fail during init. 22 #### Enable permissions for attaching an agent 32 If this step is skipped, attaching the agent will not succeed. 33 #### Deploy agent to device 34 The agent must be located in an app-accessible directory. 42 Copy the agent into an app-accessible directory, and make the file owned by the app. 44 #### Attach agent to application 46 ##### Option 1: Attach the agent before any app code runs. 47 > `adb shell am start --attach-agent /data/data/com.littleinc.orm_benchmark/files/libtitrace.so com… 53 ##### Option 2: Attach the agent to an already-running app. [all …]
|
/art/tools/jvmti-agents/simple-force-redefine/ |
D | README.md | 3 ForceRedefine is a JVMTI agent designed for testing how redefiniton affects running processes. It 24 > `adb shell am attach-agent $(adb shell pidof some.deubggable.app) /data/local/tmp/libforcerede… 26 Since the agent has no static state it can be attached multiple times to the same process. 28 > `adb shell am attach-agent $(adb shell pidof some.deubggable.app) /data/local/tmp/libforcerede… 29 > `adb shell am attach-agent $(adb shell pidof some.deubggable.app) /data/local/tmp/libforcerede… 30 > `adb shell am attach-agent $(adb shell pidof some.deubggable.app) /data/local/tmp/libforcerede… 32 One can also use fifos to send classes interactively to the process. (TODO: Have the agent
|
/art/test/909-attach-agent/src-art/ |
D | Main.java | 30 String agent = null; in main() local 35 agent = a.substring(6); in main() 40 if (agent == null) { in main() 46 VMDebug.attachAgent(agent); in main() 66 String agent = a.substring(6).replace(agentName, newAgentName); in attachWithClassLoader() local 71 VMDebug.attachAgent(agent, cl); in attachWithClassLoader()
|
/art/tools/jvmti-agents/jit-load/ |
D | README.md | 3 Jitload is an art-specific agent allowing one to count the number of classes 15 * `-Xplugin` and `-agentpath` need to be used, otherwise libtitrace agent will fail during init. 16 * If using `libartd.so`, make sure to use the debug version of jvmti and agent. 17 * Pass the '=fatal' option to the agent to cause it to abort if any classes are 22 * To use with run-test or testrunner.py use the --with-agent argument. 24 > `./test/run-test --host --with-agent libtitraced.so=fatal 001-HelloWorld`
|
/art/runtime/ti/ |
D | agent.cc | 78 std::unique_ptr<Agent> agent = DoDlOpen(env, class_loader, error, error_msg); in DoLoadHelper() local 79 if (agent == nullptr) { in DoLoadHelper() 83 AgentOnLoadFunction callback = attaching ? agent->onattach_ : agent->onload_; in DoLoadHelper() 106 return agent; in DoLoadHelper() 149 std::unique_ptr<Agent> agent(new Agent(name_, dlopen_handle)); in DoDlOpen() local 150 agent->PopulateFunctions(); in DoDlOpen() 152 return agent; in DoDlOpen()
|
/art/tools/jvmti-agents/wrapagentproperties/ |
D | README.md | 3 wrapagentproperties is a JVMTI agent that lets one change the returned values of 15 …D_HOST_OUT/lib64/libwrapagentproperties.so=/path/to/prop.file,/path/to/agent=agent-args -cp tmp/ja… 17 * `-Xplugin` and `-agentpath` need to be used, otherwise libtitrace agent will fail during init.
|
/art/tools/jvmti-agents/breakpoint-logger/ |
D | README.md | 3 breakpointlogger is a JVMTI agent that lets one set breakpoints that are logged 15 The agent is loaded using -agentpath like normal. It takes arguments in the 26 * Unlike with most normal debuggers the agent will load the class immediately to 37 * `-Xplugin` and `-agentpath` need to be used, otherwise the agent will fail during init. 46 …% ./test/run-test --host --dev --with-agent 'libbreakpointlogger.so=LMain;->main([Ljava/lang/Strin… 51 …% ./test/run-test --jvm --dev --with-agent 'libbreakpointlogger.so=LMain;->main([Ljava/lang/String…
|
/art/tools/jvmti-agents/ti-fast/ |
D | README.md | 3 tifast is a JVMTI agent designed for profiling the performance impact listening 16 The agent is loaded using -agentpath like normal. It takes arguments in the 39 The following events may be listened for with this agent 93 All other events cannot be listened for by this agent. Most of these missing 100 * `-Xplugin` and `-agentpath` need to be used, otherwise the agent will fail during init. 107 > `adb shell am start-activity --attach-agent /data/local/tmp/libtifast.so=MonitorWait,ClassPrep…
|
/art/test/ |
D | Android.bp | 220 "ti-agent/agent_common.cc", 221 "ti-agent/agent_startup.cc", 222 "ti-agent/jni_binder.cc", 223 "ti-agent/jvmti_helper.cc", 224 "ti-agent/test_env.cc", 225 "ti-agent/breakpoint_helper.cc", 226 "ti-agent/common_helper.cc", 227 "ti-agent/frame_pop_helper.cc", 228 "ti-agent/locals_helper.cc", 229 "ti-agent/monitors_helper.cc", [all …]
|
/art/tools/jvmti-agents/dump-jvmti-state/ |
D | README.md | 3 dumpjvmti is a JVMTI agent designed for helping debug the working of the openjdkjvmti plugin. It 18 * `-Xplugin` and `-agentpath` need to be used, otherwise the agent will fail during init. 25 > `adb shell am start-activity --attach-agent /data/local/tmp/libdumpjvmti.so some.debuggable.ap…
|
/art/tools/jvmti-agents/field-null-percent/ |
D | README.md | 3 fieldnull is a JVMTI agent designed for testing for a given field the number of 17 The agent is loaded using -agentpath like normal. It takes arguments in the 24 * `-Xplugin` and `-agentpath` need to be used, otherwise the agent will fail during init. 31 > `adb shell am start-activity --attach-agent '/data/local/tmp/libfieldnull.so=Ljava/lang/Class;…
|
/art/test/etc/ |
D | run-test-jar | 522 for agent in "${WITH_AGENT[@]}"; do 523 FLAGS="${FLAGS} -agentpath:${agent}" 539 agent=libtiagentd.so 542 agent=libtiagent.so 548 FLAGS="${FLAGS} -agentpath:${ANDROID_HOST_OUT}/nativetest64/${agent}=${TEST_NAME},jvm" 550 FLAGS="${FLAGS} -agentpath:${agent}=${TEST_NAME},art" 555 agent=libtistressd.so 557 agent=libtistress.so 579 FLAGS="${FLAGS} -agentpath:${ANDROID_HOST_OUT}/nativetest64/${agent}=${agent_args}" 581 FLAGS="${FLAGS} -agentpath:${agent}=${agent_args}"
|
/art/test/987-agent-bind/ |
D | info.txt | 1 Tests that native methods are bound from agent libs.
|
/art/test/1944-sudden-exit/ |
D | info.txt | 1 Test to make sure the runtime will not crash if an agent calls exit(3) while
|
/art/tools/ |
D | run-prebuilt-libjdwp-tests.sh | 110 --agent-wrapper "${wrapper}"="${props_path}" \
|
D | run-jdwp-tests.sh | 159 elif [[ $1 == --agent-wrapper ]]; then
|
/art/test/901-hello-ti-agent/ |
D | expected.txt | 1 Loaded Agent for test 901-hello-ti-agent
|
/art/runtime/jni/ |
D | java_vm_ext.cc | 1107 for (const std::unique_ptr<ti::Agent>& agent : Runtime::Current()->GetAgents()) { in FindCodeForNativeMethodInAgents() local 1108 void* fn = agent->FindSymbol(jni_short_name); in FindCodeForNativeMethodInAgents() 1111 << " (symbol: " << jni_short_name << ") in " << *agent; in FindCodeForNativeMethodInAgents() 1114 fn = agent->FindSymbol(jni_long_name); in FindCodeForNativeMethodInAgents() 1117 << " (symbol: " << jni_long_name << ") in " << *agent; in FindCodeForNativeMethodInAgents()
|
/art/runtime/native/ |
D | dalvik_system_VMDebug.cc | 569 static void VMDebug_nativeAttachAgent(JNIEnv* env, jclass, jstring agent, jobject classloader) { in VMDebug_nativeAttachAgent() argument 570 if (agent == nullptr) { in VMDebug_nativeAttachAgent() 584 ScopedUtfChars chars(env, agent); in VMDebug_nativeAttachAgent()
|
/art/runtime/ |
D | runtime.cc | 444 for (auto& agent : agents_) { in ~Runtime() local 445 agent->Unload(); in ~Runtime() 1701 std::unique_ptr<ti::Agent> agent = agent_spec.Load(&res, &error, &err); in Init() local 1703 if (agent != nullptr) { in Init() 1704 agents_.push_back(std::move(agent)); in Init() 1790 std::unique_ptr<ti::Agent> agent = agent_spec.Attach(env, class_loader, &res, &error, &error_msg); in AttachAgent() local 1792 if (agent != nullptr) { in AttachAgent() 1793 agents_.push_back(std::move(agent)); in AttachAgent()
|
D | Android.bp | 201 "ti/agent.cc", 495 "ti/agent.h",
|