Lines Matching refs:options
250 const std::string& options, in CallNextAgent() argument
254 return ((start == StartType::OnLoad) ? vm->load : vm->attach)(vm, options.c_str(), reserved); in CallNextAgent()
287 static bool ParseArgs(const std::string& options, in ParseArgs() argument
291 if (options.find(',') == std::string::npos) { in ParseArgs()
292 LOG(ERROR) << "No agent lib in " << options; in ParseArgs()
295 *prop_file = substrOf(options, 0, options.find(',')); in ParseArgs()
296 *agent_lib = substrOf(options, options.find(',') + 1, options.find('=')); in ParseArgs()
297 if (options.find('=') != std::string::npos) { in ParseArgs()
298 *agent_options = substrOf(options, options.find('=') + 1, std::string::npos); in ParseArgs()
305 static jint AgentStart(StartType start, JavaVM* vm, char* options, void* reserved) { in AgentStart() argument
309 if (!ParseArgs(options, /*out*/ &prop_file, /*out*/ &agent_lib, /*out*/ &agent_options)) { in AgentStart()
326 extern "C" JNIEXPORT jint JNICALL Agent_OnAttach(JavaVM *vm, char* options, void* reserved) { in Agent_OnAttach() argument
327 return AgentStart(StartType::OnAttach, vm, options, reserved); in Agent_OnAttach()
332 extern "C" JNIEXPORT jint JNICALL Agent_OnLoad(JavaVM* jvm, char* options, void* reserved) { in Agent_OnLoad() argument
333 return AgentStart(StartType::OnLoad, jvm, options, reserved); in Agent_OnLoad()