zuma: Add path reading for StormIRQ

Bug: 279486693
Test: Verified the existence of atom and correctness of atom stats
adb shell
cmd stats print-logs && logcat -b all | grep -i 105043
Merged-In: I429e01b68fa4a22473c0b57dbf63ee6f579c5f18
Change-Id: I429e01b68fa4a22473c0b57dbf63ee6f579c5f18
Signed-off-by: Ziyi Cui <ziyic@google.com>
(cherry picked from commit 4d8bc4d744)
This commit is contained in:
Ziyi Cui 2023-05-04 20:30:53 +00:00
parent 7ab422de9c
commit fa267915a4
2 changed files with 4 additions and 1 deletions

View file

@ -1,6 +1,7 @@
on property:sys.boot_completed=1 on property:sys.boot_completed=1
start vendor.pixelstats_vendor start vendor.pixelstats_vendor
on post-fs-data
chown system system /sys/kernel/metrics/irq/stats_reset
service vendor.pixelstats_vendor /vendor/bin/pixelstats-vendor service vendor.pixelstats_vendor /vendor/bin/pixelstats-vendor
class hal class hal
user system user system

View file

@ -70,6 +70,8 @@ const struct SysfsCollector::SysfsPaths sysfs_paths = {
}, },
.ResumeLatencyMetricsPath = "/sys/kernel/metrics/resume_latency/resume_latency_metrics", .ResumeLatencyMetricsPath = "/sys/kernel/metrics/resume_latency/resume_latency_metrics",
.LongIRQMetricsPath = "/sys/kernel/metrics/irq/long_irq_metrics", .LongIRQMetricsPath = "/sys/kernel/metrics/irq/long_irq_metrics",
.StormIRQMetricsPath = "/sys/kernel/metrics/irq/storm_irq_metrics",
.IRQStatsResetPath = "/sys/kernel/metrics/irq/stats_reset",
.TempResidencyAndResetPaths = { .TempResidencyAndResetPaths = {
{ {
"/sys/kernel/metrics/thermal/tr_by_group/tmu/stats", "/sys/kernel/metrics/thermal/tr_by_group/tmu/stats",