Home
last modified time | relevance | path

Searched refs:agent (Results 1 – 23 of 23) sorted by relevance

/art/test/909-attach-agent/
Drun18 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 \
Dexpected.txt3 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/
DREADME.md14 * `-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/
DREADME.md3 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/
DMain.java30 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/
DREADME.md3 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/
Dagent.cc78 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/
DREADME.md3 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/
DREADME.md3 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/
DREADME.md3 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/
DAndroid.bp220 "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/
DREADME.md3 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/
DREADME.md3 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/
Drun-test-jar522 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/
Dinfo.txt1 Tests that native methods are bound from agent libs.
/art/test/1944-sudden-exit/
Dinfo.txt1 Test to make sure the runtime will not crash if an agent calls exit(3) while
/art/tools/
Drun-prebuilt-libjdwp-tests.sh110 --agent-wrapper "${wrapper}"="${props_path}" \
Drun-jdwp-tests.sh159 elif [[ $1 == --agent-wrapper ]]; then
/art/test/901-hello-ti-agent/
Dexpected.txt1 Loaded Agent for test 901-hello-ti-agent
/art/runtime/jni/
Djava_vm_ext.cc1107 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/
Ddalvik_system_VMDebug.cc569 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/
Druntime.cc444 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()
DAndroid.bp201 "ti/agent.cc",
495 "ti/agent.h",