diff --git a/pixel_metrics/dump_pixel_metrics.sh b/pixel_metrics/dump_pixel_metrics.sh index 229f618..0c6e2c2 100644 --- a/pixel_metrics/dump_pixel_metrics.sh +++ b/pixel_metrics/dump_pixel_metrics.sh @@ -3,4 +3,5 @@ echo "Long running IRQ metrics" cat /sys/kernel/metrics/irq/long_irq_metrics echo "Resume latency metrics" cat /sys/kernel/metrics/resume_latency/resume_latency_metrics - +echo "Temperature Residency Metrics:" +cat /sys/kernel/metrics/temp_residency/temp_residency_all/stats diff --git a/pixel_metrics/sepolicy/genfs_contexts b/pixel_metrics/sepolicy/genfs_contexts index 36882aa..b914014 100644 --- a/pixel_metrics/sepolicy/genfs_contexts +++ b/pixel_metrics/sepolicy/genfs_contexts @@ -1,3 +1,4 @@ #vendor-metrics genfscon sysfs /kernel/metrics/resume_latency/resume_latency_metrics u:object_r:sysfs_vendor_metrics:s0 genfscon sysfs /kernel/metrics/irq/long_irq_metrics u:object_r:sysfs_vendor_metrics:s0 +genfscon sysfs /kernel/metrics/temp_residency/temp_residency_all/stats u:object_r:sysfs_vendor_metrics:s0 diff --git a/thermal/dump_thermal.sh b/thermal/dump_thermal.sh index 748753c..2b87da9 100644 --- a/thermal/dump_thermal.sh +++ b/thermal/dump_thermal.sh @@ -44,5 +44,3 @@ echo "TMU_SUB rise thresholds:" cat /sys/module/gs_thermal/parameters/tmu_sub_reg_dump_rise_thres echo "TMU_SUB fall thresholds:" cat /sys/module/gs_thermal/parameters/tmu_sub_reg_dump_fall_thres -echo "Temperature Residency Metrics:" -cat /sys/kernel/metrics/temp_residency/temp_residency_all/stats diff --git a/thermal/sepolicy/device.te b/thermal/sepolicy/device.te deleted file mode 100644 index 63640e3..0000000 --- a/thermal/sepolicy/device.te +++ /dev/null @@ -1,2 +0,0 @@ -#vendor-metrics -type sysfs_vendor_metrics, fs_type, sysfs_type; diff --git a/thermal/sepolicy/dump_thermal.te b/thermal/sepolicy/dump_thermal.te index 930b4dd..c36f7cd 100644 --- a/thermal/sepolicy/dump_thermal.te +++ b/thermal/sepolicy/dump_thermal.te @@ -5,6 +5,3 @@ allow dump_thermal sysfs_thermal:file r_file_perms; allow dump_thermal sysfs_thermal:lnk_file r_file_perms; allow dump_thermal vendor_toolbox_exec:file execute_no_trans; -#vendor-metrics -r_dir_file(dump_thermal, sysfs_vendor_metrics) -allow dump_thermal sysfs_vendor_metrics:lnk_file r_file_perms; diff --git a/thermal/sepolicy/genfs_contexts b/thermal/sepolicy/genfs_contexts index 5cecbd3..1422e63 100644 --- a/thermal/sepolicy/genfs_contexts +++ b/thermal/sepolicy/genfs_contexts @@ -1,5 +1,3 @@ # thermal sysfs files genfscon sysfs /module/gs_thermal/parameters u:object_r:sysfs_thermal:s0 -#vendor-metrics -genfscon sysfs /kernel/metrics/temp_residency/temp_residency_all/stats u:object_r:sysfs_vendor_metrics:s0