Loading PREUPLOAD.cfg +1 −0 Original line number Diff line number Diff line Loading @@ -14,6 +14,7 @@ clang_format = --commit ${PREUPLOAD_COMMIT} --style file --extensions c,h,cc,cpp include/powermanager/ libs/binder/fuzzer/ libs/binder/ libs/binderdebug/ libs/binderthreadstate/ libs/graphicsenv/ libs/gui/ Loading cmds/atrace/atrace.rc +27 −0 Original line number Diff line number Diff line Loading @@ -501,6 +501,33 @@ on late-init && property:ro.boot.hypervisor.vm.supported=1 chmod 0440 /sys/kernel/debug/tracing/hyp/events/hyp/hyp_exit/id chmod 0440 /sys/kernel/tracing/hyp/events/hyp/hyp_exit/id # host_hcall event chmod 0660 /sys/kernel/debug/tracing/hyp/events/hyp/host_hcall/enable chmod 0660 /sys/kernel/tracing/hyp/events/hyp/host_hcall/enable # TODO(b/249050813): should this be handled in kernel? chmod 0440 /sys/kernel/debug/tracing/hyp/events/hyp/host_hcall/format chmod 0440 /sys/kernel/tracing/hyp/events/hyp/host_hcall/format chmod 0440 /sys/kernel/debug/tracing/hyp/events/hyp/host_hcall/id chmod 0440 /sys/kernel/tracing/hyp/events/hyp/host_hcall/id # host_smc event chmod 0660 /sys/kernel/debug/tracing/hyp/events/hyp/host_smc/enable chmod 0660 /sys/kernel/tracing/hyp/events/hyp/host_smc/enable # TODO(b/249050813): should this be handled in kernel? chmod 0440 /sys/kernel/debug/tracing/hyp/events/hyp/host_smc/format chmod 0440 /sys/kernel/tracing/hyp/events/hyp/host_smc/format chmod 0440 /sys/kernel/debug/tracing/hyp/events/hyp/host_smc/id chmod 0440 /sys/kernel/tracing/hyp/events/hyp/host_smc/id # host_mem_abort event chmod 0660 /sys/kernel/debug/tracing/hyp/events/hyp/host_mem_abort/enable chmod 0660 /sys/kernel/tracing/hyp/events/hyp/host_mem_abort/enable # TODO(b/249050813): should this be handled in kernel? chmod 0440 /sys/kernel/debug/tracing/hyp/events/hyp/host_mem_abort/format chmod 0440 /sys/kernel/tracing/hyp/events/hyp/host_mem_abort/format chmod 0440 /sys/kernel/debug/tracing/hyp/events/hyp/host_mem_abort/id chmod 0440 /sys/kernel/tracing/hyp/events/hyp/host_mem_abort/id on property:persist.debug.atrace.boottrace=1 start boottrace Loading cmds/dumpstate/dumpstate.cpp +3 −2 Original line number Diff line number Diff line Loading @@ -1254,7 +1254,8 @@ static Dumpstate::RunStatus RunDumpsysTextByPriority(const std::string& title, i dumpsys.writeDumpHeader(STDOUT_FILENO, service, priority); dumpsys.writeDumpFooter(STDOUT_FILENO, service, std::chrono::milliseconds(1)); } else { status_t status = dumpsys.startDumpThread(Dumpsys::TYPE_DUMP, service, args); status_t status = dumpsys.startDumpThread(Dumpsys::TYPE_DUMP | Dumpsys::TYPE_PID, service, args); if (status == OK) { dumpsys.writeDumpHeader(STDOUT_FILENO, service, priority); std::chrono::duration<double> elapsed_seconds; Loading cmds/installd/dexopt.cpp +3 −2 Original line number Diff line number Diff line Loading @@ -1942,7 +1942,8 @@ int dexopt(const char* dex_path, uid_t uid, const char* pkgname, const char* ins RUNTIME_NATIVE_BOOT_NAMESPACE, ENABLE_JITZYGOTE_IMAGE, /*default_value=*/ ""); bool use_jitzygote_image = jitzygote_flag == "true" || IsBootClassPathProfilingEnable(); bool compile_without_image = jitzygote_flag == "true" || IsBootClassPathProfilingEnable() || force_compile_without_image(); // Decide whether to use dex2oat64. bool use_dex2oat64 = false; Loading @@ -1964,7 +1965,7 @@ int dexopt(const char* dex_path, uid_t uid, const char* pkgname, const char* ins in_dex, in_vdex, dex_metadata, reference_profile, class_loader_context, join_fds(context_input_fds), swap_fd.get(), instruction_set, compiler_filter, debuggable, boot_complete, for_restore, target_sdk_version, enable_hidden_api_checks, generate_compact_dex, use_jitzygote_image, enable_hidden_api_checks, generate_compact_dex, compile_without_image, background_job_compile, compilation_reason); bool cancelled = false; Loading cmds/installd/installd.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -65,6 +65,10 @@ bool create_cache_path(char path[PKG_PATH_MAX], const char *src, const char *ins return create_cache_path_default(path, src, instruction_set); } bool force_compile_without_image() { return false; } static bool initialize_globals() { return init_globals_from_data_and_root(); } Loading Loading
PREUPLOAD.cfg +1 −0 Original line number Diff line number Diff line Loading @@ -14,6 +14,7 @@ clang_format = --commit ${PREUPLOAD_COMMIT} --style file --extensions c,h,cc,cpp include/powermanager/ libs/binder/fuzzer/ libs/binder/ libs/binderdebug/ libs/binderthreadstate/ libs/graphicsenv/ libs/gui/ Loading
cmds/atrace/atrace.rc +27 −0 Original line number Diff line number Diff line Loading @@ -501,6 +501,33 @@ on late-init && property:ro.boot.hypervisor.vm.supported=1 chmod 0440 /sys/kernel/debug/tracing/hyp/events/hyp/hyp_exit/id chmod 0440 /sys/kernel/tracing/hyp/events/hyp/hyp_exit/id # host_hcall event chmod 0660 /sys/kernel/debug/tracing/hyp/events/hyp/host_hcall/enable chmod 0660 /sys/kernel/tracing/hyp/events/hyp/host_hcall/enable # TODO(b/249050813): should this be handled in kernel? chmod 0440 /sys/kernel/debug/tracing/hyp/events/hyp/host_hcall/format chmod 0440 /sys/kernel/tracing/hyp/events/hyp/host_hcall/format chmod 0440 /sys/kernel/debug/tracing/hyp/events/hyp/host_hcall/id chmod 0440 /sys/kernel/tracing/hyp/events/hyp/host_hcall/id # host_smc event chmod 0660 /sys/kernel/debug/tracing/hyp/events/hyp/host_smc/enable chmod 0660 /sys/kernel/tracing/hyp/events/hyp/host_smc/enable # TODO(b/249050813): should this be handled in kernel? chmod 0440 /sys/kernel/debug/tracing/hyp/events/hyp/host_smc/format chmod 0440 /sys/kernel/tracing/hyp/events/hyp/host_smc/format chmod 0440 /sys/kernel/debug/tracing/hyp/events/hyp/host_smc/id chmod 0440 /sys/kernel/tracing/hyp/events/hyp/host_smc/id # host_mem_abort event chmod 0660 /sys/kernel/debug/tracing/hyp/events/hyp/host_mem_abort/enable chmod 0660 /sys/kernel/tracing/hyp/events/hyp/host_mem_abort/enable # TODO(b/249050813): should this be handled in kernel? chmod 0440 /sys/kernel/debug/tracing/hyp/events/hyp/host_mem_abort/format chmod 0440 /sys/kernel/tracing/hyp/events/hyp/host_mem_abort/format chmod 0440 /sys/kernel/debug/tracing/hyp/events/hyp/host_mem_abort/id chmod 0440 /sys/kernel/tracing/hyp/events/hyp/host_mem_abort/id on property:persist.debug.atrace.boottrace=1 start boottrace Loading
cmds/dumpstate/dumpstate.cpp +3 −2 Original line number Diff line number Diff line Loading @@ -1254,7 +1254,8 @@ static Dumpstate::RunStatus RunDumpsysTextByPriority(const std::string& title, i dumpsys.writeDumpHeader(STDOUT_FILENO, service, priority); dumpsys.writeDumpFooter(STDOUT_FILENO, service, std::chrono::milliseconds(1)); } else { status_t status = dumpsys.startDumpThread(Dumpsys::TYPE_DUMP, service, args); status_t status = dumpsys.startDumpThread(Dumpsys::TYPE_DUMP | Dumpsys::TYPE_PID, service, args); if (status == OK) { dumpsys.writeDumpHeader(STDOUT_FILENO, service, priority); std::chrono::duration<double> elapsed_seconds; Loading
cmds/installd/dexopt.cpp +3 −2 Original line number Diff line number Diff line Loading @@ -1942,7 +1942,8 @@ int dexopt(const char* dex_path, uid_t uid, const char* pkgname, const char* ins RUNTIME_NATIVE_BOOT_NAMESPACE, ENABLE_JITZYGOTE_IMAGE, /*default_value=*/ ""); bool use_jitzygote_image = jitzygote_flag == "true" || IsBootClassPathProfilingEnable(); bool compile_without_image = jitzygote_flag == "true" || IsBootClassPathProfilingEnable() || force_compile_without_image(); // Decide whether to use dex2oat64. bool use_dex2oat64 = false; Loading @@ -1964,7 +1965,7 @@ int dexopt(const char* dex_path, uid_t uid, const char* pkgname, const char* ins in_dex, in_vdex, dex_metadata, reference_profile, class_loader_context, join_fds(context_input_fds), swap_fd.get(), instruction_set, compiler_filter, debuggable, boot_complete, for_restore, target_sdk_version, enable_hidden_api_checks, generate_compact_dex, use_jitzygote_image, enable_hidden_api_checks, generate_compact_dex, compile_without_image, background_job_compile, compilation_reason); bool cancelled = false; Loading
cmds/installd/installd.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -65,6 +65,10 @@ bool create_cache_path(char path[PKG_PATH_MAX], const char *src, const char *ins return create_cache_path_default(path, src, instruction_set); } bool force_compile_without_image() { return false; } static bool initialize_globals() { return init_globals_from_data_and_root(); } Loading