gs-common:dumpstate: Dump Temperature Residency at bugreport
At the bugreport, capture Temperature Residency metrics Bug: 246799997 Test: Test: "adb bugreport" includes temp residency metrics capture. Change-Id: I1cb1c9e53890f3175812e15a15f09bcb7fd9d6af
This commit is contained in:
parent
592dddbd9a
commit
4a96ebedbf
@ -44,3 +44,5 @@ 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
|
||||
|
2
thermal/sepolicy/device.te
Normal file
2
thermal/sepolicy/device.te
Normal file
@ -0,0 +1,2 @@
|
||||
#vendor-metrics
|
||||
type sysfs_vendor_metrics, fs_type, sysfs_type;
|
@ -4,3 +4,7 @@ allow dump_thermal sysfs_thermal:dir r_dir_perms;
|
||||
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;
|
||||
|
@ -1,3 +1,5 @@
|
||||
# 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user