/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/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/test/ |
D | Android.bp | 210 "ti-agent/agent_common.cc", 211 "ti-agent/agent_startup.cc", 212 "ti-agent/jni_binder.cc", 213 "ti-agent/jvmti_helper.cc", 214 "ti-agent/test_env.cc", 215 "ti-agent/breakpoint_helper.cc", 216 "ti-agent/common_helper.cc", 217 "ti-agent/frame_pop_helper.cc", 218 "ti-agent/locals_helper.cc", 219 "ti-agent/monitors_helper.cc", [all …]
|
/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/runtime/ti/ |
D | agent.cc | 77 std::unique_ptr<Agent> agent = DoDlOpen(env, class_loader, error, error_msg); in DoLoadHelper() local 78 if (agent == nullptr) { in DoLoadHelper() 82 AgentOnLoadFunction callback = attaching ? agent->onattach_ : agent->onload_; in DoLoadHelper() 105 return agent; in DoLoadHelper() 143 std::unique_ptr<Agent> agent(new Agent(name_, dlopen_handle)); in DoDlOpen() local 144 agent->PopulateFunctions(); in DoDlOpen() 146 return agent; in DoDlOpen()
|
/art/tools/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/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/test/987-agent-bind/ |
D | info.txt | 1 Tests that native methods are bound from agent libs.
|
/art/test/etc/ |
D | run-test-jar | 486 agent=libtiagentd.so 489 agent=libtiagent.so 495 FLAGS="${FLAGS} -agentpath:${ANDROID_HOST_OUT}/nativetest64/${agent}=${TEST_NAME},jvm" 497 FLAGS="${FLAGS} -agentpath:${agent}=${TEST_NAME},art" 502 agent=libtistressd.so 504 agent=libtistress.so 526 FLAGS="${FLAGS} -agentpath:${ANDROID_HOST_OUT}/nativetest64/${agent}=${agent_args}" 528 FLAGS="${FLAGS} -agentpath:${agent}=${agent_args}"
|
/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 | 106 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/ |
D | java_vm_ext.cc | 1058 for (const std::unique_ptr<ti::Agent>& agent : Runtime::Current()->GetAgents()) { in FindCodeForNativeMethodInAgents() local 1059 void* fn = agent->FindSymbol(jni_short_name); in FindCodeForNativeMethodInAgents() 1062 << " (symbol: " << jni_short_name << ") in " << *agent; in FindCodeForNativeMethodInAgents() 1065 fn = agent->FindSymbol(jni_long_name); in FindCodeForNativeMethodInAgents() 1068 << " (symbol: " << jni_long_name << ") in " << *agent; in FindCodeForNativeMethodInAgents()
|
D | runtime.cc | 392 for (auto& agent : agents_) { in ~Runtime() local 393 agent->Unload(); in ~Runtime() 1589 std::unique_ptr<ti::Agent> agent = agent_spec.Load(&res, &error, &err); in Init() local 1591 if (agent != nullptr) { in Init() 1592 agents_.push_back(std::move(agent)); in Init() 1677 std::unique_ptr<ti::Agent> agent = agent_spec.Attach(env, class_loader, &res, &error, &error_msg); in AttachAgent() local 1679 if (agent != nullptr) { in AttachAgent() 1680 agents_.push_back(std::move(agent)); in AttachAgent()
|
D | Android.bp | 203 "ti/agent.cc", 456 "ti/agent.h",
|
/art/runtime/native/ |
D | dalvik_system_VMDebug.cc | 551 static void VMDebug_nativeAttachAgent(JNIEnv* env, jclass, jstring agent, jobject classloader) { in VMDebug_nativeAttachAgent() argument 552 if (agent == nullptr) { in VMDebug_nativeAttachAgent() 566 ScopedUtfChars chars(env, agent); in VMDebug_nativeAttachAgent()
|