Snap for 9358956 from b9fd6571c1 to tm-qpr2-release

Change-Id: I3e9723f512c1451133fdcc313a07c4b9fa7dc265
This commit is contained in:
Android Build Coastguard Worker 2022-12-02 00:03:22 +00:00
commit ddc5bf58a9
4 changed files with 16 additions and 1 deletions

View file

@ -162,5 +162,9 @@
<!-- Notifications --> <!-- Notifications -->
<permission name="android.permission.POST_NOTIFICATIONS" fixed="false"/> <permission name="android.permission.POST_NOTIFICATIONS" fixed="false"/>
</exception> </exception>
<exception
package="com.google.android.euicc">
<!-- Notifications -->
<permission name="android.permission.POST_NOTIFICATIONS" fixed="false"/>
</exception>
</exceptions> </exceptions>

View file

@ -270,6 +270,7 @@ DumpstateDevice::DumpstateDevice()
{ "camera", [this](int fd) { dumpCameraSection(fd); } }, { "camera", [this](int fd) { dumpCameraSection(fd); } },
{ "trusty", [this](int fd) { dumpTrustySection(fd); } }, { "trusty", [this](int fd) { dumpTrustySection(fd); } },
{ "modem", [this](int fd) { dumpModemSection(fd); } }, { "modem", [this](int fd) { dumpModemSection(fd); } },
{ "perf-metrics", [this](int fd) { dumpPerfMetricsSection(fd); } },
} { } {
} }
@ -520,6 +521,7 @@ void DumpstateDevice::dumpThermalSection(int fd) {
DumpFileToFd(fd, "TMU_TOP fall thresholds:", "/sys/module/gs101_thermal/parameters/tmu_top_reg_dump_fall_thres"); DumpFileToFd(fd, "TMU_TOP fall thresholds:", "/sys/module/gs101_thermal/parameters/tmu_top_reg_dump_fall_thres");
DumpFileToFd(fd, "TMU_SUB rise thresholds:", "/sys/module/gs101_thermal/parameters/tmu_sub_reg_dump_rise_thres"); DumpFileToFd(fd, "TMU_SUB rise thresholds:", "/sys/module/gs101_thermal/parameters/tmu_sub_reg_dump_rise_thres");
DumpFileToFd(fd, "TMU_SUB fall thresholds:", "/sys/module/gs101_thermal/parameters/tmu_sub_reg_dump_fall_thres"); DumpFileToFd(fd, "TMU_SUB fall thresholds:", "/sys/module/gs101_thermal/parameters/tmu_sub_reg_dump_fall_thres");
DumpFileToFd(fd, "Temperature Residency Metrics:", "/sys/kernel/metrics/temp_residency/temp_residency_all/stats");
} }
// Dump items related to touch // Dump items related to touch
@ -1191,6 +1193,11 @@ static void *dumpModemThread(void *data) {
return NULL; return NULL;
} }
void DumpstateDevice::dumpPerfMetricsSection(int fd) {
DumpFileToFd(fd, "Long running IRQ metrics", "/sys/kernel/metrics/irq/long_irq_metrics");
DumpFileToFd(fd, "Resume latency metrics", "/sys/kernel/metrics/resume_latency/resume_latency_metrics");
}
// Methods from ::android::hardware::dumpstate::V1_0::IDumpstateDevice follow. // Methods from ::android::hardware::dumpstate::V1_0::IDumpstateDevice follow.
Return<void> DumpstateDevice::dumpstateBoard(const hidl_handle &handle) { Return<void> DumpstateDevice::dumpstateBoard(const hidl_handle &handle) {
// Ignore return value, just return an empty status. // Ignore return value, just return an empty status.

View file

@ -79,6 +79,7 @@ struct DumpstateDevice : public IDumpstateDevice {
void dumpCameraSection(int fd); void dumpCameraSection(int fd);
void dumpTrustySection(int fd); void dumpTrustySection(int fd);
void dumpModemSection(int fd); void dumpModemSection(int fd);
void dumpPerfMetricsSection(int fd);
}; };
} // namespace implementation } // namespace implementation

View file

@ -45,6 +45,8 @@ const struct SysfsCollector::SysfsPaths sysfs_paths = {
.SpeakerTemperaturePath = "/sys/devices/platform/audiometrics/speaker_temp", .SpeakerTemperaturePath = "/sys/devices/platform/audiometrics/speaker_temp",
.SpeakerExcursionPath = "/sys/devices/platform/audiometrics/speaker_excursion", .SpeakerExcursionPath = "/sys/devices/platform/audiometrics/speaker_excursion",
.SpeakerHeartBeatPath = "/sys/devices/platform/audiometrics/speaker_heartbeat", .SpeakerHeartBeatPath = "/sys/devices/platform/audiometrics/speaker_heartbeat",
.ResumeLatencyMetricsPath = "/sys/kernel/metrics/resume_latency/resume_latency_metrics",
.LongIRQMetricsPath = "/sys/kernel/metrics/irq/long_irq_metrics",
.UFSErrStatsPath = { .UFSErrStatsPath = {
UFS_ERR_PATH(pa_err_count), UFS_ERR_PATH(pa_err_count),
UFS_ERR_PATH(dl_err_count), UFS_ERR_PATH(dl_err_count),
@ -55,6 +57,7 @@ const struct SysfsCollector::SysfsPaths sysfs_paths = {
UFS_ERR_PATH(auto_hibern8_err_count) UFS_ERR_PATH(auto_hibern8_err_count)
}, },
.AmsRatePath = "/sys/devices/platform/audiometrics/ams_rate_read_once", .AmsRatePath = "/sys/devices/platform/audiometrics/ams_rate_read_once",
.TempResidencyPath = "/sys/kernel/metrics/temp_residency/temp_residency_all/stats",
}; };
const struct UeventListener::UeventPaths ueventPaths = { const struct UeventListener::UeventPaths ueventPaths = {