diff --git a/Android.bp b/Android.bp index 934aaff..003e593 100644 --- a/Android.bp +++ b/Android.bp @@ -3812,6 +3812,137 @@ cc_prebuilt_library_shared { soc_specific: true, } +cc_prebuilt_library_shared { + name: "libperfconfig", + owner: "nothing", + strip: { + none: true, + }, + target: { + android_arm: { + srcs: [ + "proprietary/vendor/lib/libperfconfig.so", + ], + shared_libs: [ + "libutils", + "liblog", + "libcutils", + "libxml2", + "libqti-util", + "libc++", + "libc", + "libm", + "libdl", + ], + }, + android_arm64: { + srcs: [ + "proprietary/vendor/lib64/libperfconfig.so", + ], + shared_libs: [ + "libutils", + "liblog", + "libcutils", + "libxml2", + "libqti-util", + "libc++", + "libc", + "libm", + "libdl", + ], + }, + }, + compile_multilib: "both", + prefer: true, + soc_specific: true, +} + +cc_prebuilt_library_shared { + name: "libperfgluelayer", + owner: "nothing", + strip: { + none: true, + }, + target: { + android_arm: { + srcs: [ + "proprietary/vendor/lib/libperfgluelayer.so", + ], + shared_libs: [ + "libutils", + "liblog", + "libcutils", + "libperfconfig", + "libc++", + "libc", + "libm", + "libdl", + ], + }, + android_arm64: { + srcs: [ + "proprietary/vendor/lib64/libperfgluelayer.so", + ], + shared_libs: [ + "libutils", + "liblog", + "libcutils", + "libperfconfig", + "libc++", + "libc", + "libm", + "libdl", + ], + }, + }, + compile_multilib: "both", + prefer: true, + soc_specific: true, +} + +cc_prebuilt_library_shared { + name: "libperfioctl", + owner: "nothing", + strip: { + none: true, + }, + target: { + android_arm: { + srcs: [ + "proprietary/vendor/lib/libperfioctl.so", + ], + shared_libs: [ + "libdrm", + "libutils", + "liblog", + "libcutils", + "libc++", + "libc", + "libm", + "libdl", + ], + }, + android_arm64: { + srcs: [ + "proprietary/vendor/lib64/libperfioctl.so", + ], + shared_libs: [ + "libdrm", + "libutils", + "liblog", + "libcutils", + "libc++", + "libc", + "libm", + "libdl", + ], + }, + }, + compile_multilib: "both", + prefer: true, + soc_specific: true, +} + cc_prebuilt_library_shared { name: "libqc2vppfilter", owner: "nothing", @@ -4938,6 +5069,194 @@ cc_prebuilt_library_shared { soc_specific: true, } +cc_prebuilt_library_shared { + name: "libqti-perfd-client", + owner: "nothing", + strip: { + none: true, + }, + target: { + android_arm: { + srcs: [ + "proprietary/vendor/lib/libqti-perfd-client.so", + ], + shared_libs: [ + "libcutils", + "libutils", + "liblog", + "vendor.qti.hardware.perf@2.2", + "libhidlbase", + "libc++", + "libc", + "libm", + "libdl", + ], + }, + android_arm64: { + srcs: [ + "proprietary/vendor/lib64/libqti-perfd-client.so", + ], + shared_libs: [ + "libcutils", + "libutils", + "liblog", + "vendor.qti.hardware.perf@2.2", + "libhidlbase", + "libc++", + "libc", + "libm", + "libdl", + ], + }, + }, + compile_multilib: "both", + prefer: true, + soc_specific: true, +} + +cc_prebuilt_library_shared { + name: "libqti-perfd", + owner: "nothing", + strip: { + none: true, + }, + target: { + android_arm: { + srcs: [ + "proprietary/vendor/lib/libqti-perfd.so", + ], + shared_libs: [ + "libcutils", + "liblog", + "libutils", + "libxml2", + "libqti-util", + "libhidlbase", + "vendor.qti.hardware.perf@2.0", + "libbase", + "libthermalclient", + "libqti-perfd-client", + "libperfconfig", + "libperfgluelayer", + "libdisplayconfig.qti", + "libperfioctl", + "vendor.qti.memory.pasrmanager@1.1", + "libc++", + "libc", + "libm", + "libdl", + ], + }, + android_arm64: { + srcs: [ + "proprietary/vendor/lib64/libqti-perfd.so", + ], + shared_libs: [ + "libcutils", + "liblog", + "libutils", + "libxml2", + "libqti-util", + "libhidlbase", + "vendor.qti.hardware.perf@2.0", + "libbase", + "libthermalclient", + "libqti-perfd-client", + "libperfconfig", + "libperfgluelayer", + "libdisplayconfig.qti", + "libperfioctl", + "vendor.qti.memory.pasrmanager@1.1", + "libc++", + "libc", + "libm", + "libdl", + ], + }, + }, + compile_multilib: "both", + prefer: true, + soc_specific: true, +} + +cc_prebuilt_library_shared { + name: "libqti-util", + owner: "nothing", + strip: { + none: true, + }, + target: { + android_arm: { + srcs: [ + "proprietary/vendor/lib/libqti-util.so", + ], + shared_libs: [ + "libcutils", + "libutils", + "libxml2", + "liblog", + "libc++", + "libc", + "libm", + "libdl", + ], + }, + android_arm64: { + srcs: [ + "proprietary/vendor/lib64/libqti-util.so", + ], + shared_libs: [ + "libcutils", + "libutils", + "libxml2", + "liblog", + "libc++", + "libc", + "libm", + "libdl", + ], + }, + }, + compile_multilib: "both", + prefer: true, + soc_specific: true, +} + +cc_prebuilt_library_shared { + name: "libqti-utils", + owner: "nothing", + strip: { + none: true, + }, + target: { + android_arm: { + srcs: [ + "proprietary/vendor/lib/libqti-utils.so", + ], + shared_libs: [ + "libc++", + "libc", + "libm", + "libdl", + ], + }, + android_arm64: { + srcs: [ + "proprietary/vendor/lib64/libqti-utils.so", + ], + shared_libs: [ + "libc++", + "libc", + "libm", + "libdl", + ], + }, + }, + compile_multilib: "both", + prefer: true, + soc_specific: true, +} + cc_prebuilt_library_shared { name: "libqtikeymaster4", owner: "nothing", @@ -6440,6 +6759,94 @@ cc_prebuilt_library_shared { soc_specific: true, } +cc_prebuilt_library_shared { + name: "vendor.qti.memory.pasrmanager@1.0", + owner: "nothing", + strip: { + none: true, + }, + target: { + android_arm: { + srcs: [ + "proprietary/vendor/lib/vendor.qti.memory.pasrmanager@1.0.so", + ], + shared_libs: [ + "libhidlbase", + "liblog", + "libutils", + "libcutils", + "libc++", + "libc", + "libm", + "libdl", + ], + }, + android_arm64: { + srcs: [ + "proprietary/vendor/lib64/vendor.qti.memory.pasrmanager@1.0.so", + ], + shared_libs: [ + "libhidlbase", + "liblog", + "libutils", + "libcutils", + "libc++", + "libc", + "libm", + "libdl", + ], + }, + }, + compile_multilib: "both", + prefer: true, + soc_specific: true, +} + +cc_prebuilt_library_shared { + name: "vendor.qti.memory.pasrmanager@1.1", + owner: "nothing", + strip: { + none: true, + }, + target: { + android_arm: { + srcs: [ + "proprietary/vendor/lib/vendor.qti.memory.pasrmanager@1.1.so", + ], + shared_libs: [ + "vendor.qti.memory.pasrmanager@1.0", + "libhidlbase", + "liblog", + "libutils", + "libcutils", + "libc++", + "libc", + "libm", + "libdl", + ], + }, + android_arm64: { + srcs: [ + "proprietary/vendor/lib64/vendor.qti.memory.pasrmanager@1.1.so", + ], + shared_libs: [ + "vendor.qti.memory.pasrmanager@1.0", + "libhidlbase", + "liblog", + "libutils", + "libcutils", + "libc++", + "libc", + "libm", + "libdl", + ], + }, + }, + compile_multilib: "both", + prefer: true, + soc_specific: true, +} + cc_prebuilt_library_shared { name: "vendor.qti.qspmhal@1.0", owner: "nothing", @@ -25742,6 +26149,44 @@ cc_prebuilt_binary { soc_specific: true, } +cc_prebuilt_binary { + name: "vendor.qti.hardware.perf@2.2-service", + owner: "nothing", + target: { + android_arm64: { + srcs: [ + "proprietary/vendor/bin/hw/vendor.qti.hardware.perf@2.2-service", + ], + shared_libs: [ + "liblog", + "libcutils", + "libbase", + "libutils", + "libhardware_legacy", + "libhardware", + "libhidlbase", + "vendor.qti.hardware.perf@2.0", + "vendor.qti.hardware.perf@2.1", + "vendor.qti.hardware.perf@2.2", + "libperfconfig", + "libperfgluelayer", + "libqti-perfd-client", + "libc++", + "libc", + "libm", + "libdl", + ], + }, + }, + compile_multilib: "64", + strip: { + none: true, + }, + prefer: true, + relative_install_path: "hw", + soc_specific: true, +} + cc_prebuilt_binary { name: "vendor.qti.hardware.qseecom@1.0-service", owner: "nothing", diff --git a/Spacewar-vendor.mk b/Spacewar-vendor.mk index 35103d5..bc50e19 100644 --- a/Spacewar-vendor.mk +++ b/Spacewar-vendor.mk @@ -255,6 +255,7 @@ PRODUCT_COPY_FILES += \ vendor/nothing/Spacewar/proprietary/vendor/etc/init/vendor.qti.hardware.charger_monitor@1.0-service.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/vendor.qti.hardware.charger_monitor@1.0-service.rc \ vendor/nothing/Spacewar/proprietary/vendor/etc/init/vendor.qti.hardware.dsp@1.0-service.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/vendor.qti.hardware.dsp@1.0-service.rc \ vendor/nothing/Spacewar/proprietary/vendor/etc/init/vendor.qti.hardware.limits@1.0-service.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/vendor.qti.hardware.limits@1.0-service.rc \ + vendor/nothing/Spacewar/proprietary/vendor/etc/init/vendor.qti.hardware.perf@2.2-service.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/vendor.qti.hardware.perf@2.2-service.rc \ vendor/nothing/Spacewar/proprietary/vendor/etc/init/vendor.qti.hardware.qseecom@1.0-service.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/vendor.qti.hardware.qseecom@1.0-service.rc \ vendor/nothing/Spacewar/proprietary/vendor/etc/init/vendor.qti.hardware.qteeconnector@1.0-service.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/vendor.qti.hardware.qteeconnector@1.0-service.rc \ vendor/nothing/Spacewar/proprietary/vendor/etc/init/vendor.qti.hardware.sensorscalibrate@1.0-service.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/vendor.qti.hardware.sensorscalibrate@1.0-service.rc \ @@ -318,8 +319,15 @@ PRODUCT_COPY_FILES += \ vendor/nothing/Spacewar/proprietary/vendor/etc/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml \ vendor/nothing/Spacewar/proprietary/vendor/etc/mixer_paths_qrd.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_qrd.xml \ vendor/nothing/Spacewar/proprietary/vendor/etc/msm_irqbalance.conf:$(TARGET_COPY_OUT_VENDOR)/etc/msm_irqbalance.conf \ + vendor/nothing/Spacewar/proprietary/vendor/etc/perf/commonresourceconfigs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/perf/commonresourceconfigs.xml \ + vendor/nothing/Spacewar/proprietary/vendor/etc/perf/commonsysnodesconfigs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/perf/commonsysnodesconfigs.xml \ + vendor/nothing/Spacewar/proprietary/vendor/etc/perf/perfboostsconfig.xml:$(TARGET_COPY_OUT_VENDOR)/etc/perf/perfboostsconfig.xml \ + vendor/nothing/Spacewar/proprietary/vendor/etc/perf/perfconfigstore.xml:$(TARGET_COPY_OUT_VENDOR)/etc/perf/perfconfigstore.xml \ + vendor/nothing/Spacewar/proprietary/vendor/etc/perf/targetconfig.xml:$(TARGET_COPY_OUT_VENDOR)/etc/perf/targetconfig.xml \ + vendor/nothing/Spacewar/proprietary/vendor/etc/perf/targetresourceconfigs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/perf/targetresourceconfigs.xml \ vendor/nothing/Spacewar/proprietary/vendor/etc/permissions/vendor-qti-hardware-sensorscalibrate.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/vendor-qti-hardware-sensorscalibrate.xml \ vendor/nothing/Spacewar/proprietary/vendor/etc/public.libraries.txt:$(TARGET_COPY_OUT_VENDOR)/etc/public.libraries.txt \ + vendor/nothing/Spacewar/proprietary/vendor/etc/powerhint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.xml \ vendor/nothing/Spacewar/proprietary/vendor/etc/qcril_database/qcrilNr.db:$(TARGET_COPY_OUT_VENDOR)/etc/qcril_database/qcrilNr.db \ vendor/nothing/Spacewar/proprietary/vendor/etc/qcril_database/upgrade/config/10.0_config.sql:$(TARGET_COPY_OUT_VENDOR)/etc/qcril_database/upgrade/config/10.0_config.sql \ vendor/nothing/Spacewar/proprietary/vendor/etc/qcril_database/upgrade/config/11.0_config.sql:$(TARGET_COPY_OUT_VENDOR)/etc/qcril_database/upgrade/config/11.0_config.sql \ @@ -420,6 +428,7 @@ PRODUCT_COPY_FILES += \ vendor/nothing/Spacewar/proprietary/vendor/etc/sound_trigger_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_platform_info.xml \ vendor/nothing/Spacewar/proprietary/vendor/etc/ssg/ta_config.json:$(TARGET_COPY_OUT_VENDOR)/etc/ssg/ta_config.json \ vendor/nothing/Spacewar/proprietary/vendor/etc/ssg/tz_whitelist.json:$(TARGET_COPY_OUT_VENDOR)/etc/ssg/tz_whitelist.json \ + vendor/nothing/Spacewar/proprietary/vendor/etc/task_profiles.json:$(TARGET_COPY_OUT_VENDOR)/etc/task_profiles.json \ vendor/nothing/Spacewar/proprietary/vendor/etc/thermal-engine.conf:$(TARGET_COPY_OUT_VENDOR)/etc/thermal-engine.conf \ vendor/nothing/Spacewar/proprietary/vendor/etc/thermal.benchmark.conf:$(TARGET_COPY_OUT_VENDOR)/etc/thermal.benchmark.conf \ vendor/nothing/Spacewar/proprietary/vendor/etc/thermal.high.conf:$(TARGET_COPY_OUT_VENDOR)/etc/thermal.high.conf \ @@ -593,6 +602,9 @@ PRODUCT_PACKAGES += \ libmpbase \ libmulawdec \ libnetmgr \ + libperfconfig \ + libperfgluelayer \ + libperfioctl \ libqc2vppfilter \ libqcbor \ libqcci_legacy \ @@ -617,6 +629,10 @@ PRODUCT_PACKAGES += \ libqmi_legacy \ libqmiservices \ libqrtr \ + libqti-perfd-client \ + libqti-perfd \ + libqti-util \ + libqti-utils \ libqtikeymaster4 \ libscveCommon \ libscveCommon_stub \ @@ -651,6 +667,8 @@ PRODUCT_PACKAGES += \ vendor.qti.hardware.vpp@1.3 \ vendor.qti.hardware.vpp@2.0 \ vendor.qti.hardware.wifidisplaysession@1.0_vendor \ + vendor.qti.memory.pasrmanager@1.0 \ + vendor.qti.memory.pasrmanager@1.1 \ vendor.qti.qspmhal@1.0 \ audio.primary.lahaina \ libFileMux_proprietary \ @@ -1251,6 +1269,7 @@ PRODUCT_PACKAGES += \ vendor.qti.hardware.alarm@1.0-service \ vendor.qti.hardware.capabilityconfigstore@1.0-service \ vendor.qti.hardware.limits@1.0-service \ + vendor.qti.hardware.perf@2.2-service \ vendor.qti.hardware.qseecom@1.0-service \ vendor.qti.hardware.qteeconnector@1.0-service \ vendor.qti.hardware.sensorscalibrate@1.0-service \ diff --git a/proprietary/vendor/bin/hw/vendor.qti.hardware.perf@2.2-service b/proprietary/vendor/bin/hw/vendor.qti.hardware.perf@2.2-service new file mode 100755 index 0000000..4d37151 Binary files /dev/null and b/proprietary/vendor/bin/hw/vendor.qti.hardware.perf@2.2-service differ diff --git a/proprietary/vendor/etc/init/vendor.qti.hardware.perf@2.2-service.rc b/proprietary/vendor/etc/init/vendor.qti.hardware.perf@2.2-service.rc new file mode 100644 index 0000000..2ca0d64 --- /dev/null +++ b/proprietary/vendor/etc/init/vendor.qti.hardware.perf@2.2-service.rc @@ -0,0 +1,13 @@ +# @file vendor.qti.hardware.perf@2.2-service.rc +# @brief Defination perf service +# +# DESCRIPTION +# --------------------------------------------------------------------------- +# Copyright (c) 2019-2020 Qualcomm Technologies, Inc. +# All Rights Reserved. +# Confidential and Proprietary - Qualcomm Technologies, Inc. +# --------------------------------------------------------------------------- +service perf-hal-2-2 /vendor/bin/hw/vendor.qti.hardware.perf@2.2-service + class hal + user root + group root readproc oem_2907 diff --git a/proprietary/vendor/etc/perf/commonresourceconfigs.xml b/proprietary/vendor/etc/perf/commonresourceconfigs.xml new file mode 100644 index 0000000..3f40225 --- /dev/null +++ b/proprietary/vendor/etc/perf/commonresourceconfigs.xml @@ -0,0 +1,299 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/proprietary/vendor/etc/perf/commonsysnodesconfigs.xml b/proprietary/vendor/etc/perf/commonsysnodesconfigs.xml new file mode 100644 index 0000000..22db738 --- /dev/null +++ b/proprietary/vendor/etc/perf/commonsysnodesconfigs.xml @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/proprietary/vendor/etc/perf/perfboostsconfig.xml b/proprietary/vendor/etc/perf/perfboostsconfig.xml new file mode 100644 index 0000000..dd45b85 --- /dev/null +++ b/proprietary/vendor/etc/perf/perfboostsconfig.xml @@ -0,0 +1,1101 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/proprietary/vendor/etc/perf/perfconfigstore.xml b/proprietary/vendor/etc/perf/perfconfigstore.xml new file mode 100644 index 0000000..d20b53c --- /dev/null +++ b/proprietary/vendor/etc/perf/perfconfigstore.xml @@ -0,0 +1,162 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/proprietary/vendor/etc/perf/targetconfig.xml b/proprietary/vendor/etc/perf/targetconfig.xml new file mode 100644 index 0000000..f041dec --- /dev/null +++ b/proprietary/vendor/etc/perf/targetconfig.xml @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/proprietary/vendor/etc/perf/targetresourceconfigs.xml b/proprietary/vendor/etc/perf/targetresourceconfigs.xml new file mode 100644 index 0000000..f919180 --- /dev/null +++ b/proprietary/vendor/etc/perf/targetresourceconfigs.xml @@ -0,0 +1,121 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/proprietary/vendor/etc/powerhint.xml b/proprietary/vendor/etc/powerhint.xml new file mode 100644 index 0000000..e1574c8 --- /dev/null +++ b/proprietary/vendor/etc/powerhint.xml @@ -0,0 +1,968 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/proprietary/vendor/etc/task_profiles.json b/proprietary/vendor/etc/task_profiles.json new file mode 100644 index 0000000..fbba907 --- /dev/null +++ b/proprietary/vendor/etc/task_profiles.json @@ -0,0 +1,566 @@ +{ + "Attributes": [ + { + "Name": "LowCapacityCPUs", + "Controller": "cpuset", + "File": "background/cpus" + }, + { + "Name": "HighCapacityCPUs", + "Controller": "cpuset", + "File": "foreground/cpus" + }, + { + "Name": "MaxCapacityCPUs", + "Controller": "cpuset", + "File": "top-app/cpus" + }, + { + "Name": "AudioAppCapacityCPUs", + "Controller": "cpuset", + "File": "audio-app/cpus" + }, + + { + "Name": "MemLimit", + "Controller": "memory", + "File": "memory.limit_in_bytes" + }, + { + "Name": "MemSoftLimit", + "Controller": "memory", + "File": "memory.soft_limit_in_bytes" + }, + { + "Name": "MemSwappiness", + "Controller": "memory", + "File": "memory.swappiness" + }, + { + "Name": "UClampMin", + "Controller": "cpu", + "File": "cpu.uclamp.min" + }, + { + "Name": "UClampMax", + "Controller": "cpu", + "File": "cpu.uclamp.max" + } + ], + + "Profiles": [ + { + "Name": "HighEnergySaving", + "Actions": [ + { + "Name": "JoinCgroup", + "Params": + { + "Controller": "cpu", + "Path": "background" + } + } + ] + }, + { + "Name": "NormalPerformance", + "Actions": [ + { + "Name": "JoinCgroup", + "Params": + { + "Controller": "cpu", + "Path": "" + } + } + ] + }, + { + "Name": "HighPerformance", + "Actions": [ + { + "Name": "JoinCgroup", + "Params": + { + "Controller": "cpu", + "Path": "foreground" + } + } + ] + }, + { + "Name": "MaxPerformance", + "Actions": [ + { + "Name": "JoinCgroup", + "Params": + { + "Controller": "cpu", + "Path": "top-app" + } + } + ] + }, + { + "Name": "RealtimePerformance", + "Actions": [ + { + "Name": "JoinCgroup", + "Params": + { + "Controller": "cpu", + "Path": "rt" + } + } + ] + }, + { + "Name": "AudioAppPerformance", + "Actions" : [ + { + "Name" : "JoinCgroup", + "Params" : + { + "Controller": "cpu", + "Path": "audio-app" + } + } + ] + }, + + { + "Name": "VrKernelCapacity", + "Actions": [ + { + "Name": "JoinCgroup", + "Params": + { + "Controller": "cpuset", + "Path": "" + } + } + ] + }, + { + "Name": "VrServiceCapacityLow", + "Actions": [ + { + "Name": "JoinCgroup", + "Params": + { + "Controller": "cpuset", + "Path": "system/background" + } + } + ] + }, + { + "Name": "VrServiceCapacityNormal", + "Actions": [ + { + "Name": "JoinCgroup", + "Params": + { + "Controller": "cpuset", + "Path": "system" + } + } + ] + }, + { + "Name": "VrServiceCapacityHigh", + "Actions": [ + { + "Name": "JoinCgroup", + "Params": + { + "Controller": "cpuset", + "Path": "system/performance" + } + } + ] + }, + { + "Name": "VrProcessCapacityLow", + "Actions": [ + { + "Name": "JoinCgroup", + "Params": + { + "Controller": "cpuset", + "Path": "application/background" + } + } + ] + }, + { + "Name": "VrProcessCapacityNormal", + "Actions": [ + { + "Name": "JoinCgroup", + "Params": + { + "Controller": "cpuset", + "Path": "application" + } + } + ] + }, + { + "Name": "VrProcessCapacityHigh", + "Actions": [ + { + "Name": "JoinCgroup", + "Params": + { + "Controller": "cpuset", + "Path": "application/performance" + } + } + ] + }, + + { + "Name": "ProcessCapacityLow", + "Actions": [ + { + "Name": "JoinCgroup", + "Params": + { + "Controller": "cpuset", + "Path": "background" + } + } + ] + }, + { + "Name": "ProcessCapacityNormal", + "Actions": [ + { + "Name": "JoinCgroup", + "Params": + { + "Controller": "cpuset", + "Path": "" + } + } + ] + }, + { + "Name": "ProcessCapacityHigh", + "Actions": [ + { + "Name": "JoinCgroup", + "Params": + { + "Controller": "cpuset", + "Path": "foreground" + } + } + ] + }, + { + "Name": "ProcessCapacityMax", + "Actions": [ + { + "Name": "JoinCgroup", + "Params": + { + "Controller": "cpuset", + "Path": "top-app" + } + } + ] + }, + + { + "Name": "ServiceCapacityLow", + "Actions": [ + { + "Name": "JoinCgroup", + "Params": + { + "Controller": "cpuset", + "Path": "system-background" + } + } + ] + }, + { + "Name": "ServiceCapacityRestricted", + "Actions": [ + { + "Name": "JoinCgroup", + "Params": + { + "Controller": "cpuset", + "Path": "restricted" + } + } + ] + }, + + { + "Name": "CameraServiceCapacity", + "Actions": [ + { + "Name": "JoinCgroup", + "Params": + { + "Controller": "cpuset", + "Path": "camera-daemon" + } + } + ] + }, + { + "Name": "AudioAppCapacity", + "Actions" : [ + { + "Name" : "JoinCgroup", + "Params" : + { + "Controller": "cpuset", + "Path": "audio-app" + } + } + ] + }, + + { + "Name": "BlkIOForeground", + "Actions" : [ + { + "Name" : "JoinCgroup", + "Params" : + { + "Controller": "blkio", + "Path": "" + } + } + ] + }, + { + "Name": "BlkIOBackground", + "Actions" : [ + { + "Name" : "JoinCgroup", + "Params" : + { + "Controller": "blkio", + "Path": "bg" + } + } + ] + }, + + { + "Name": "LowIoPriority", + "Actions": [ + { + "Name": "JoinCgroup", + "Params": + { + "Controller": "blkio", + "Path": "background" + } + } + ] + }, + { + "Name": "NormalIoPriority", + "Actions": [ + { + "Name": "JoinCgroup", + "Params": + { + "Controller": "blkio", + "Path": "" + } + } + ] + }, + { + "Name": "HighIoPriority", + "Actions": [ + { + "Name": "JoinCgroup", + "Params": + { + "Controller": "blkio", + "Path": "" + } + } + ] + }, + { + "Name": "MaxIoPriority", + "Actions": [ + { + "Name": "JoinCgroup", + "Params": + { + "Controller": "blkio", + "Path": "" + } + } + ] + }, + + { + "Name": "TimerSlackHigh", + "Actions": [ + { + "Name": "SetTimerSlack", + "Params": + { + "Slack": "40000000" + } + } + ] + }, + { + "Name": "TimerSlackNormal", + "Actions": [ + { + "Name": "SetTimerSlack", + "Params": + { + "Slack": "50000" + } + } + ] + }, + + { + "Name": "PerfBoost", + "Actions": [ + { + "Name": "SetClamps", + "Params": + { + "Boost": "50%", + "Clamp": "0" + } + } + ] + }, + { + "Name": "PerfClamp", + "Actions": [ + { + "Name": "SetClamps", + "Params": + { + "Boost": "0", + "Clamp": "30%" + } + } + ] + }, + + { + "Name": "LowMemoryUsage", + "Actions": [ + { + "Name": "SetAttribute", + "Params": + { + "Name": "MemSoftLimit", + "Value": "16MB" + } + }, + { + "Name": "SetAttribute", + "Params": + { + "Name": "MemSwappiness", + "Value": "150" + + } + } + ] + }, + { + "Name": "HighMemoryUsage", + "Actions": [ + { + "Name": "SetAttribute", + "Params": + { + "Name": "MemSoftLimit", + "Value": "512MB" + } + }, + { + "Name": "SetAttribute", + "Params": + { + "Name": "MemSwappiness", + "Value": "100" + } + } + ] + }, + { + "Name": "SystemMemoryProcess", + "Actions": [ + { + "Name": "JoinCgroup", + "Params": + { + "Controller": "memory", + "Path": "system" + } + } + ] + } + ], + + "AggregateProfiles": [ + { + "Name": "SCHED_SP_DEFAULT", + "Profiles": [ "TimerSlackNormal" ] + }, + { + "Name": "SCHED_SP_BACKGROUND", + "Profiles": [ "HighEnergySaving", "LowIoPriority", "TimerSlackHigh" ] + }, + { + "Name": "SCHED_SP_FOREGROUND", + "Profiles": [ "HighPerformance", "HighIoPriority", "TimerSlackNormal" ] + }, + { + "Name": "SCHED_SP_TOP_APP", + "Profiles": [ "MaxPerformance", "MaxIoPriority", "TimerSlackNormal" ] + }, + { + "Name": "SCHED_SP_RT_APP", + "Profiles": [ "RealtimePerformance", "MaxIoPriority", "TimerSlackNormal" ] + }, + { + "Name": "CPUSET_SP_DEFAULT", + "Profiles": [ "TimerSlackNormal" ] + }, + { + "Name": "CPUSET_SP_BACKGROUND", + "Profiles": [ "HighEnergySaving", "ProcessCapacityLow", "LowIoPriority", "TimerSlackHigh" ] + }, + { + "Name": "CPUSET_SP_FOREGROUND", + "Profiles": [ "HighPerformance", "ProcessCapacityHigh", "HighIoPriority", "TimerSlackNormal" ] + }, + { + "Name": "CPUSET_SP_TOP_APP", + "Profiles": [ "MaxPerformance", "ProcessCapacityMax", "MaxIoPriority", "TimerSlackNormal" ] + }, + { + "Name": "CPUSET_SP_SYSTEM", + "Profiles": [ "ServiceCapacityLow", "TimerSlackNormal" ] + }, + { + "Name": "CPUSET_SP_RESTRICTED", + "Profiles": [ "ServiceCapacityRestricted", "TimerSlackNormal" ] + } + ] +} diff --git a/proprietary/vendor/lib/libperfconfig.so b/proprietary/vendor/lib/libperfconfig.so new file mode 100644 index 0000000..30ca99b Binary files /dev/null and b/proprietary/vendor/lib/libperfconfig.so differ diff --git a/proprietary/vendor/lib/libperfgluelayer.so b/proprietary/vendor/lib/libperfgluelayer.so new file mode 100644 index 0000000..48e2383 Binary files /dev/null and b/proprietary/vendor/lib/libperfgluelayer.so differ diff --git a/proprietary/vendor/lib/libperfioctl.so b/proprietary/vendor/lib/libperfioctl.so new file mode 100644 index 0000000..37e1c37 Binary files /dev/null and b/proprietary/vendor/lib/libperfioctl.so differ diff --git a/proprietary/vendor/lib/libqti-perfd-client.so b/proprietary/vendor/lib/libqti-perfd-client.so new file mode 100644 index 0000000..434909b Binary files /dev/null and b/proprietary/vendor/lib/libqti-perfd-client.so differ diff --git a/proprietary/vendor/lib/libqti-perfd.so b/proprietary/vendor/lib/libqti-perfd.so new file mode 100644 index 0000000..ae6b4f4 Binary files /dev/null and b/proprietary/vendor/lib/libqti-perfd.so differ diff --git a/proprietary/vendor/lib/libqti-util.so b/proprietary/vendor/lib/libqti-util.so new file mode 100644 index 0000000..e2ba63f Binary files /dev/null and b/proprietary/vendor/lib/libqti-util.so differ diff --git a/proprietary/vendor/lib/libqti-utils.so b/proprietary/vendor/lib/libqti-utils.so new file mode 100644 index 0000000..b57ecda Binary files /dev/null and b/proprietary/vendor/lib/libqti-utils.so differ diff --git a/proprietary/vendor/lib/vendor.qti.memory.pasrmanager@1.0.so b/proprietary/vendor/lib/vendor.qti.memory.pasrmanager@1.0.so new file mode 100644 index 0000000..3ac6822 Binary files /dev/null and b/proprietary/vendor/lib/vendor.qti.memory.pasrmanager@1.0.so differ diff --git a/proprietary/vendor/lib/vendor.qti.memory.pasrmanager@1.1.so b/proprietary/vendor/lib/vendor.qti.memory.pasrmanager@1.1.so new file mode 100644 index 0000000..f71eb51 Binary files /dev/null and b/proprietary/vendor/lib/vendor.qti.memory.pasrmanager@1.1.so differ diff --git a/proprietary/vendor/lib64/libperfconfig.so b/proprietary/vendor/lib64/libperfconfig.so new file mode 100644 index 0000000..63612e6 Binary files /dev/null and b/proprietary/vendor/lib64/libperfconfig.so differ diff --git a/proprietary/vendor/lib64/libperfgluelayer.so b/proprietary/vendor/lib64/libperfgluelayer.so new file mode 100644 index 0000000..f998416 Binary files /dev/null and b/proprietary/vendor/lib64/libperfgluelayer.so differ diff --git a/proprietary/vendor/lib64/libperfioctl.so b/proprietary/vendor/lib64/libperfioctl.so new file mode 100644 index 0000000..25259ee Binary files /dev/null and b/proprietary/vendor/lib64/libperfioctl.so differ diff --git a/proprietary/vendor/lib64/libqti-perfd-client.so b/proprietary/vendor/lib64/libqti-perfd-client.so new file mode 100644 index 0000000..1aabcf6 Binary files /dev/null and b/proprietary/vendor/lib64/libqti-perfd-client.so differ diff --git a/proprietary/vendor/lib64/libqti-perfd.so b/proprietary/vendor/lib64/libqti-perfd.so new file mode 100644 index 0000000..fba3e70 Binary files /dev/null and b/proprietary/vendor/lib64/libqti-perfd.so differ diff --git a/proprietary/vendor/lib64/libqti-util.so b/proprietary/vendor/lib64/libqti-util.so new file mode 100644 index 0000000..29c6d2a Binary files /dev/null and b/proprietary/vendor/lib64/libqti-util.so differ diff --git a/proprietary/vendor/lib64/libqti-utils.so b/proprietary/vendor/lib64/libqti-utils.so new file mode 100644 index 0000000..2afcb2f Binary files /dev/null and b/proprietary/vendor/lib64/libqti-utils.so differ diff --git a/proprietary/vendor/lib64/vendor.qti.memory.pasrmanager@1.0.so b/proprietary/vendor/lib64/vendor.qti.memory.pasrmanager@1.0.so new file mode 100644 index 0000000..bfaf13f Binary files /dev/null and b/proprietary/vendor/lib64/vendor.qti.memory.pasrmanager@1.0.so differ diff --git a/proprietary/vendor/lib64/vendor.qti.memory.pasrmanager@1.1.so b/proprietary/vendor/lib64/vendor.qti.memory.pasrmanager@1.1.so new file mode 100644 index 0000000..3046d2b Binary files /dev/null and b/proprietary/vendor/lib64/vendor.qti.memory.pasrmanager@1.1.so differ