gs101: 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: I7b0f7c7226474622f51beb3a6ec9bb0670405b4f
Change-Id: I7b0f7c7226474622f51beb3a6ec9bb0670405b4f
Signed-off-by: Ziyi Cui <ziyic@google.com>
(cherry picked from commit eb0c71135f)
This commit is contained in:
Ziyi Cui 2023-05-11 04:02:33 +00:00
parent b3a65b4770
commit 5e1b03bf50
2 changed files with 4 additions and 1 deletions

View file

@ -1,6 +1,7 @@
on property:sys.boot_completed=1
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
class hal
user system

View file

@ -47,6 +47,8 @@ const struct SysfsCollector::SysfsPaths sysfs_paths = {
.SpeakerHeartBeatPath = "/sys/devices/platform/audiometrics/speaker_heartbeat",
.ResumeLatencyMetricsPath = "/sys/kernel/metrics/resume_latency/resume_latency_metrics",
.LongIRQMetricsPath = "/sys/kernel/metrics/irq/long_irq_metrics",
.StormIRQMetricsPath = "/sys/kernel/metrics/irq/storm_irq_metrics",
.IRQStatsResetPath = "/sys/kernel/metrics/irq/stats_reset",
.UFSErrStatsPath = {
UFS_ERR_PATH(pa_err_count),
UFS_ERR_PATH(dl_err_count),