Home
last modified time | relevance | path

Searched refs:options (Results 1 – 25 of 94) sorted by relevance

1234

/art/dexlayout/
Ddexlayout_main.cc82 Options options; in DexlayoutDriver() local
83 options.dump_ = true; in DexlayoutDriver()
84 options.verbose_ = true; in DexlayoutDriver()
95 options.show_annotations_ = true; in DexlayoutDriver()
98 options.build_dex_ir_ = true; in DexlayoutDriver()
101 options.checksum_only_ = true; in DexlayoutDriver()
104 options.disassemble_ = true; in DexlayoutDriver()
107 options.exports_only_ = true; in DexlayoutDriver()
110 options.show_file_headers_ = true; in DexlayoutDriver()
113 options.show_section_headers_ = true; in DexlayoutDriver()
[all …]
/art/compiler/driver/
Dcompiler_options_map-inl.h35 inline bool ReadCompilerOptions(Base& map, CompilerOptions* options, std::string* error_msg) { in ReadCompilerOptions() argument
44 options->SetCompilerFilter(compiler_filter); in ReadCompilerOptions()
46 map.AssignIfExists(Base::HugeMethodMaxThreshold, &options->huge_method_threshold_); in ReadCompilerOptions()
47 map.AssignIfExists(Base::LargeMethodMaxThreshold, &options->large_method_threshold_); in ReadCompilerOptions()
48 map.AssignIfExists(Base::SmallMethodMaxThreshold, &options->small_method_threshold_); in ReadCompilerOptions()
49 map.AssignIfExists(Base::TinyMethodMaxThreshold, &options->tiny_method_threshold_); in ReadCompilerOptions()
50 map.AssignIfExists(Base::NumDexMethodsThreshold, &options->num_dex_methods_threshold_); in ReadCompilerOptions()
51 map.AssignIfExists(Base::InlineMaxCodeUnitsThreshold, &options->inline_max_code_units_); in ReadCompilerOptions()
52 map.AssignIfExists(Base::GenerateDebugInfo, &options->generate_debug_info_); in ReadCompilerOptions()
53 map.AssignIfExists(Base::GenerateMiniDebugInfo, &options->generate_mini_debug_info_); in ReadCompilerOptions()
[all …]
/art/runtime/
Dparsed_options_test.cc55 RuntimeOptions options; in TEST_F() local
56 options.push_back(std::make_pair(boot_class_path.c_str(), nullptr)); in TEST_F()
57 options.push_back(std::make_pair("-classpath", nullptr)); in TEST_F()
58 options.push_back(std::make_pair(class_path.c_str(), nullptr)); in TEST_F()
59 options.push_back(std::make_pair("-cp", nullptr)); in TEST_F()
60 options.push_back(std::make_pair(class_path.c_str(), nullptr)); in TEST_F()
61 options.push_back(std::make_pair("-Ximage:boot_image", nullptr)); in TEST_F()
62 options.push_back(std::make_pair("-Xcheck:jni", nullptr)); in TEST_F()
63 options.push_back(std::make_pair("-Xms2048", nullptr)); in TEST_F()
64 options.push_back(std::make_pair("-Xmx4k", nullptr)); in TEST_F()
[all …]
Dparsed_options.h54 static bool Parse(const RuntimeOptions& options,
66 bool ProcessSpecialOptions(const RuntimeOptions& options,
77 bool DoParse(const RuntimeOptions& options,
Dcommon_runtime_test.cc114 RuntimeOptions options; in SetUp() local
120 options.push_back(std::make_pair(boot_class_path_string, nullptr)); in SetUp()
121 options.push_back(std::make_pair(boot_class_path_locations_string, nullptr)); in SetUp()
122 options.push_back(std::make_pair("-Xcheck:jni", nullptr)); in SetUp()
123 options.push_back(std::make_pair(min_heap_string, nullptr)); in SetUp()
124 options.push_back(std::make_pair(max_heap_string, nullptr)); in SetUp()
125 options.push_back(std::make_pair("-XX:SlowDebug=true", nullptr)); in SetUp()
131 SetUpRuntimeOptions(&options); in SetUp()
135 options.push_back(std::make_pair("compilercallbacks", callbacks_.get())); in SetUp()
139 if (!Runtime::Create(options, false)) { in SetUp()
[all …]
/art/test/ti-agent/
Dcommon_load.cc36 jint OnLoad(JavaVM* vm, char* options, void* reserved);
40 jint OnLoad(JavaVM* vm, char* options, void* reserved);
44 jint OnLoad(JavaVM* vm, char* options, void* reserved);
49 using OnLoad = jint (*)(JavaVM* vm, char* options, void* reserved);
50 using OnAttach = jint (*)(JavaVM* vm, char* options, void* reserved);
60 char* options ATTRIBUTE_UNUSED, in MinimalOnLoad()
97 static bool FindAgentNameAndOptions(char* options, in FindAgentNameAndOptions() argument
101 *name = options; in FindAgentNameAndOptions()
102 char* rest = options; in FindAgentNameAndOptions()
115 static void SetIsJVM(const char* options) { in SetIsJVM() argument
[all …]
/art/
Dtest.py37 options, unknown = parser.parse_known_args() variable
39 if options.run_test or options.help_runner or not options.gtest:
55 if subprocess.call(test_runner_cmd) or options.help_runner:
58 if options.gtest or not options.run_test:
60 if options.host or not options.target:
62 if options.target or not options.host:
66 build_command += ' -j' + str(options.n_threads)
/art/tools/dexanalyze/
Ddexanalyze.cc134 explicit Analysis(const Options* options) : options_(options) { in Analysis() argument
135 if (options->run_all_experiments_ || options->exp_count_indices_) { in Analysis()
138 if (options->run_all_experiments_ || options->exp_analyze_strings_) { in Analysis()
141 if (options->run_all_experiments_ || options->exp_code_metrics_) { in Analysis()
144 if (options->run_all_experiments_ || options->exp_debug_info_) { in Analysis()
147 if (options->run_all_experiments_ || options->exp_bytecode_) { in Analysis()
148 for (size_t i = 0; i < options->experiment_max_; ++i) { in Analysis()
161 experiment->verbose_level_ = options->verbose_level_; in Analysis()
193 Options options; in Run() local
194 int result = options.Parse(argc, argv); in Run()
[all …]
/art/disassembler/
Ddisassembler.cc49 Disassembler* Disassembler::Create(InstructionSet instruction_set, DisassemblerOptions* options) { in Create() argument
54 return new arm::DisassemblerArm(options); in Create()
58 return new arm64::DisassemblerArm64(options); in Create()
62 return new mips::DisassemblerMips(options, /* is_o32_abi= */ true); in Create()
66 return new mips::DisassemblerMips(options, /* is_o32_abi= */ false); in Create()
70 return new x86::DisassemblerX86(options, /* supports_rex= */ false); in Create()
74 return new x86::DisassemblerX86(options, /* supports_rex= */ true); in Create()
91 Disassembler* create_disassembler(InstructionSet instruction_set, DisassemblerOptions* options) { in create_disassembler() argument
92 return Disassembler::Create(instruction_set, options); in create_disassembler()
Ddisassembler_arm64.h34 explicit CustomDisassembler(DisassemblerOptions* options) in CustomDisassembler() argument
36 read_literals_(options->can_read_literals_), in CustomDisassembler()
37 base_address_(options->base_address_), in CustomDisassembler()
38 end_address_(options->end_address_), in CustomDisassembler()
39 options_(options) { in CustomDisassembler()
40 if (!options->absolute_addresses_) { in CustomDisassembler()
42 reinterpret_cast<const vixl::aarch64::Instruction*>(options->base_address_)); in CustomDisassembler()
74 explicit DisassemblerArm64(DisassemblerOptions* options) : in DisassemblerArm64() argument
75 Disassembler(options), disasm(options) { in DisassemblerArm64()
/art/tools/veridex/
Dveridex.cc92 static void ParseArgs(VeridexOptions* options, int argc, char** argv) { in ParseArgs() argument
99 options->dex_file = Substr(argv[i], strlen(kDexFileOption)); in ParseArgs()
101 options->core_stubs = Substr(argv[i], strlen(kStubsOption)); in ParseArgs()
103 options->flags_file = Substr(argv[i], strlen(kFlagsOption)); in ParseArgs()
105 options->precise = false; in ParseArgs()
107 options->target_sdk_version = atoi(Substr(argv[i], strlen(kTargetSdkVersion))); in ParseArgs()
109 options->only_report_sdk_uses = true; in ParseArgs()
127 VeridexOptions options; in Run() local
128 ParseArgs(&options, argc, argv); in Run()
131 if (!options.dex_file) { in Run()
[all …]
/art/runtime/jdwp/
Djdwp_socket.cc72 bool InitSocketTransport(JdwpState* state, const JdwpOptions* options) { in InitSocketTransport() argument
73 uint16_t port = options->port; in InitSocketTransport()
75 if (options->server) { in InitSocketTransport()
76 if (options->port != 0) { in InitSocketTransport()
89 LOG(ERROR) << "JDWP net startup failed (req port=" << options->port << ")"; in InitSocketTransport()
96 if (options->suspend) { in InitSocketTransport()
99 LOG(INFO) << "JDWP will " << (options->server ? "listen" : "connect") << " on port " << port; in InitSocketTransport()
266 bool JdwpSocketState::Establish(const JdwpOptions* options) { in Establish() argument
273 CHECK(!options->server); in Establish()
274 CHECK(!options->host.empty()); in Establish()
[all …]
Djdwp_main.cc104 bool ParseJdwpOptions(const std::string& options, JdwpOptions* jdwp_options) { in ParseJdwpOptions() argument
105 VLOG(jdwp) << "ParseJdwpOptions: " << options; in ParseJdwpOptions()
107 if (options == "help") { in ParseJdwpOptions()
117 Split(options, ',', &pairs); in ParseJdwpOptions()
122 LOG(ERROR) << s << "Can't parse JDWP option '" << jdwp_option << "' in '" << options << "'"; in ParseJdwpOptions()
136 LOG(ERROR) << s << "Must specify JDWP transport: " << options; in ParseJdwpOptions()
146 LOG(ERROR) << s << "Must specify JDWP host and port when server=n: " << options; in ParseJdwpOptions()
328 JdwpState::JdwpState(const JdwpOptions* options) in JdwpState() argument
329 : options_(options), in JdwpState()
364 JdwpState* JdwpState::Create(const JdwpOptions* options) { in Create() argument
[all …]
/art/tools/jvmti-agents/wrapagentproperties/
Dwrapagentproperties.cc250 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
[all …]
/art/tools/class2greylist/src/com/android/class2greylist/
DClass2Greylist.java82 Options options = new Options(); in main() local
83 options.addOption(OptionBuilder in main()
89 options.addOption(OptionBuilder in main()
94 options.addOption(OptionBuilder in main()
99 options.addOption(OptionBuilder in main()
105 options.addOption(OptionBuilder in main()
112 options.addOption(OptionBuilder in main()
122 cmd = parser.parse(options, args); in main()
125 help(options); in main()
129 help(options); in main()
[all …]
/art/test/testrunner/
Dtestrunner.py887 def setup_env_for_build_target(build_target, parser, options): argument
900 target_options['n_thread'] = options['n_thread']
901 target_options['dry_run'] = options['dry_run']
989 options = vars(parser.parse_args())
990 if options['build_target']:
991 options = setup_env_for_build_target(target_config[options['build_target']],
992 parser, options)
995 env.EXTRA_DISABLED_TESTS.update(set(options['skips']))
996 if options['tests']:
998 for test_name in options['tests']:
[all …]
Drun_build_test_target.py44 options = parser.parse_args() variable
48 if options.list:
55 if not target_config.get(options.build_target):
59 target = target_config[options.build_target]
60 n_threads = options.n_threads
/art/test/900-hello-plugin/
Dload_unload.cc55 char* options, in Agent_OnLoad() argument
57 printf("Agent_OnLoad called with options \"%s\"\n", options); in Agent_OnLoad()
58 if (strcmp("test_900_round_2", options) == 0) { in Agent_OnLoad()
Dexpected.txt2 Agent_OnLoad called with options "test_900"
6 Agent_OnLoad called with options "test_900_round_2"
/art/tools/jvmti-agents/jit-load/
Djitload.cc92 static jvmtiEnv* SetupJvmti(JavaVM* vm, const char* options) { in SetupJvmti() argument
109 ops->fatal = (strcmp(options, "fatal") == 0); in SetupJvmti()
120 extern "C" JNIEXPORT jint JNICALL Agent_OnLoad(JavaVM* vm, char* options, void* /* reserved */) { in Agent_OnLoad() argument
121 SetupJvmti(vm, options); in Agent_OnLoad()
126 extern "C" JNIEXPORT jint JNICALL Agent_OnAttach(JavaVM *vm, char* options, void* /* reserved */) { in Agent_OnAttach() argument
127 jvmtiEnv* jvmti = SetupJvmti(vm, options); in Agent_OnAttach()
/art/tools/jvmti-agents/dump-jvmti-state/
Ddump-jvmti.cc91 static jint AgentStart(JavaVM* vm, char* options ATTRIBUTE_UNUSED, void* reserved ATTRIBUTE_UNUSED)… in AgentStart()
106 extern "C" JNIEXPORT jint JNICALL Agent_OnAttach(JavaVM* vm, char* options, void* reserved) { in Agent_OnAttach() argument
107 return AgentStart(vm, options, reserved); in Agent_OnAttach()
111 extern "C" JNIEXPORT jint JNICALL Agent_OnLoad(JavaVM* jvm, char* options, void* reserved) { in Agent_OnLoad() argument
112 return AgentStart(jvm, options, reserved); in Agent_OnLoad()
/art/tools/jvmti-agents/breakpoint-logger/
Dbreakpoint_logger.cc332 for (std::string options = start_options; in ParseArgs() local
333 !options.empty(); in ParseArgs()
334 options = RemoveLastOption(options)) { in ParseArgs()
336 std::string next = SubstrOf(options, 0, options.find(',')); in ParseArgs()
352 char* options, in AgentStart() argument
381 if (!ParseArgs(options, /*out*/data)) { in AgentStart()
437 extern "C" JNIEXPORT jint JNICALL Agent_OnAttach(JavaVM *vm, char* options, void* reserved) { in Agent_OnAttach() argument
438 return AgentStart(StartType::OnAttach, vm, options, reserved); in Agent_OnAttach()
442 extern "C" JNIEXPORT jint JNICALL Agent_OnLoad(JavaVM* jvm, char* options, void* reserved) { in Agent_OnLoad() argument
443 return AgentStart(StartType::OnLoad, jvm, options, reserved); in Agent_OnLoad()
/art/runtime/jit/
Djit.cc84 JitOptions* JitOptions::CreateFromRuntimeArguments(const RuntimeArgumentMap& options) { in CreateFromRuntimeArguments() argument
86 jit_options->use_jit_compilation_ = options.GetOrDefault(RuntimeArgumentMap::UseJitCompilation); in CreateFromRuntimeArguments()
89 options.GetOrDefault(RuntimeArgumentMap::JITCodeCacheInitialCapacity); in CreateFromRuntimeArguments()
91 options.GetOrDefault(RuntimeArgumentMap::JITCodeCacheMaxCapacity); in CreateFromRuntimeArguments()
93 options.Exists(RuntimeArgumentMap::DumpJITInfoOnShutdown); in CreateFromRuntimeArguments()
95 options.GetOrDefault(RuntimeArgumentMap::ProfileSaverOpts); in CreateFromRuntimeArguments()
97 options.GetOrDefault(RuntimeArgumentMap::JITPoolThreadPthreadPriority); in CreateFromRuntimeArguments()
99 if (options.Exists(RuntimeArgumentMap::JITCompileThreshold)) { in CreateFromRuntimeArguments()
100 jit_options->compile_threshold_ = *options.Get(RuntimeArgumentMap::JITCompileThreshold); in CreateFromRuntimeArguments()
111 if (options.Exists(RuntimeArgumentMap::JITWarmupThreshold)) { in CreateFromRuntimeArguments()
[all …]
/art/tools/jvmti-agents/field-null-percent/
Dfieldnull.cc169 static jint AgentStart(JavaVM* vm, char* options, bool is_onload) { in AgentStart() argument
187 CHECK_JVMTI(jvmti->Allocate(strlen(options) + 1, &ptr)); in AgentStart()
188 strcpy(reinterpret_cast<char*>(ptr), options); in AgentStart()
194 CreateFieldList(jvmti, env, options); in AgentStart()
205 char* options, in Agent_OnAttach() argument
207 return AgentStart(vm, options, /*is_onload=*/false); in Agent_OnAttach()
212 char* options, in Agent_OnLoad() argument
214 return AgentStart(jvm, options, /*is_onload=*/true); in Agent_OnLoad()
/art/profman/
Dboot_image_profile.cc34 const BootImageOptions& options, in GenerateBootImageProfile() argument
71 if (counter >= options.compiled_method_threshold) { in GenerateBootImageProfile()
116 if (counter >= options.image_class_theshold) { in GenerateBootImageProfile()
119 } else if (is_clean && counter >= options.image_class_clean_theshold) { in GenerateBootImageProfile()

1234