summaryrefslogtreecommitdiff
path: root/power-libperfmgr/libperfmgr/include
AgeCommit message (Collapse)Author
2023-07-27libperfmgr: Add write-only optionYunju Lee
Add `WriteOnly` option in configuration file to avoid reading a write-only node in `DumpToFd`. Bug: 291237127 Change-Id: I0ac2eecefb2e0c2f71de47fce7835d14930e34ee
2022-10-14libperfmgr: add control property to control actionWei Wang
Add some basic control logic into libperfmgr to disable or enable certain actions. "EnableProperty" can be set by external process or internally by PropertyNode, if not assigned or set, action is enabled by default. Bug: 241054358 Test: /data/nativetest64/libperfmgr_test/libperfmgr_test Signed-off-by: Wei Wang <wvw@google.com> Change-Id: I5742bb901492f2675c5c88d9b09c1072ded8432a
2022-06-09Fix uclamp_min stuck at high freqjimmyshiu
Separate Stale and EarlyBoost handlers and refine the code. Test: adb shell dumpsys android.hardware.power.IPower/default Test: Manual Bug: 232992641 Change-Id: I81a4fd96fb7311ae5bbb7cbabe72378c9cad4aa3
2022-05-27ADPF: dump ADPF session infojimmyshiu
Dump current ADPF profile and ADPF session list into bugreport. Bug: 204444691 Test: adb root && adb shell dumpsys android.hardware.power.IPower/default Test: gpaste/6469309887938560 Change-Id: I17c0d615051f5e51c2e1fe99d17c402f9a65679a
2022-05-26ADPF: Add UclampMinInit in ADPF profilejimmyshiu
For display hints, adding UclampMinInit as boost value. Bug: 198663407 Test: manual test Change-Id: Ie110e9ecbf01c2d5047a006fed02bf61aed53e0d
2022-05-13PowerHAL: remove UclampMinGranularityWei Wang
This is causing session update skipped and stuck. Bug: 232336917 Test: /data/nativetest64/libperfmgr_test/libperfmgr_test Signed-off-by: Wei Wang <wvw@google.com> Change-Id: I8928b6f6a60dcf8d21e60228a74d3aa0ab792eff
2022-04-20ADPF: HintManager supports ADPF ProfilesJimmy Shiu
Add the following function to support ADPF profiles HintManager::ParseAdpfConfigs, HintManager::setAdpfProfile, HintManager::getAdpfProfile functions Bug: 202158746 Test: make libperfmgr_test -j100 && adb push \ out/target/product/raven/data/nativetest64/libperfmgr_test/libperfmgr_test \ /data/nativetest64/libperfmgr_test/libperfmgr_test \ && adb shell /data/nativetest64/libperfmgr_test/libperfmgr_test Change-Id: Ib7194eabc9c110de36c5ee7cc1fff9020d1c8175
2022-04-20Make HintManager a singleton classJimmy Shiu
HintManager is unique and widely used in many different components. This is for making it easiler to be reloaded for debugging. Bug: 172285365 Test: adb push \ out/target/product/raven/data/nativetest64/libperfmgr_test/libperfmgr_test \ /data/nativetest64/libperfmgr_test/libperfmgr_test && \ adb shell /data/nativetest64/libperfmgr_test/libperfmgr_test Change-Id: I3affdfe780073ebbc50fac7bfbdd1530ee9dc8c2
2022-01-25Merge "libperfmgr: support mask as vote"Wei Wang
2022-01-24libperfmgr: support mask as voteWei Wang
For a system have following hints: * Hint A masks hint X, Y; * Hint B masks hint Y, Z; Consider a sequence of below: * Hint A activates - masks X, Y * Hint B activates - masks Y, Z * Hint A deactivates - unmasks X, Y With current implementation, both X and Y are unmasked, Z is masked in the end. This CL changes makes libperfmgr remember which hint mask/unmask. So after this change, in the end, X is unmasked, Y and Z are masked. Bug: 216063139 Test: boot Test: /data/nativetest64/libperfmgr_test/libperfmgr_test Change-Id: I2817d223a04e0b3cc6054efede8ed7e1eae827dd Signed-off-by: Wei Wang <wvw@google.com>
2022-01-21libperfmgr: Add an option to drop O_TRUNCRick Yiu
Open file with O_TRUNC will hold kernfs_mutex which may affect system performance, so add a new option to decide if O_TRUNC should be used. Bug: 206981628 Test: function works Change-Id: I81f15d361364ba9cdf491d1ec824a880b9a70d9a
2021-09-17power: move trace point to libperfmgr.Wei Wang
Test: systrace Bug: 199776250 Change-Id: I9bb4d5a50faa93e7bc638ef723bdc2662fb63b24
2021-02-23libperfmgr: introduce HintActionWei Wang
Provide flexibility to make power hint cross referenced. With proper configuration, we can mask some power hint if another power hint is on. e.g. we can stop launch hint under thermal conditions or battery saver mode etc. or we can end the current active hint earlier if another hint comes, e.g. display idle. below configuration is added into unit tests { "PowerHint": "MASK_LAUNCH_MODE", "Type": "MaskHint", "Value": "LAUNCH" }, { "PowerHint": "END_LAUNCH_MODE", "Type": "EndHint", "Value": "LAUNCH" }, { "PowerHint": "DO_LAUNCH_MODE", "Type": "DoHint", "Value": "LAUNCH" } Bug: 180923613 Test: /data/nativetest64/libperfmgr_test/libperfmgr_test Change-Id: I6e3fac0d8768b271955b1a474b02b934666c154a
2020-09-25libperfmgr: Add stats for powerhintJia-yi Chen
Collect the counts & duration for each powerhint sent and add the collected stats to DumpToFd. Bug: 156780872 Test: adb shell dumpsys android.hardware.power.IPower/default Change-Id: Ied07762aa88d715830d657a2c6a42bf49d89fadd
2020-03-26Move libperfmgr into hardware/google/pixelWei Wang
Bug: 137581945 Test: Build Change-Id: Idc03c7b9819f4aaed65233795107cd8c5c20aacb