Snap for 9348489 from 3c40c1a204
to udc-release
Change-Id: I45756725cdc97674457ca5966dd2a38076b58ddb
This commit is contained in:
commit
e2525b8470
14 changed files with 37 additions and 7 deletions
10
pixel_metrics/Android.bp
Normal file
10
pixel_metrics/Android.bp
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
package {
|
||||||
|
default_applicable_licenses: ["Android-Apache-2.0"],
|
||||||
|
}
|
||||||
|
|
||||||
|
sh_binary {
|
||||||
|
name: "dump_pixel_metrics.sh",
|
||||||
|
src: "dump_pixel_metrics.sh",
|
||||||
|
vendor: true,
|
||||||
|
sub_dir: "dump",
|
||||||
|
}
|
7
pixel_metrics/dump_pixel_metrics.sh
Normal file
7
pixel_metrics/dump_pixel_metrics.sh
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
#!/vendor/bin/sh
|
||||||
|
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
|
3
pixel_metrics/pixel_metrics.mk
Normal file
3
pixel_metrics/pixel_metrics.mk
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
BOARD_VENDOR_SEPOLICY_DIRS += device/google/gs-common/pixel_metrics/sepolicy
|
||||||
|
|
||||||
|
PRODUCT_PACKAGES += dump_pixel_metrics.sh
|
5
pixel_metrics/sepolicy/dump_pixel_metrics.te
Normal file
5
pixel_metrics/sepolicy/dump_pixel_metrics.te
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
pixel_bugreport(dump_pixel_metrics)
|
||||||
|
|
||||||
|
#vendor-metrics
|
||||||
|
r_dir_file(dump_pixel_metrics, sysfs_vendor_metrics)
|
||||||
|
allow dump_pixel_metrics vendor_toolbox_exec:file execute_no_trans;
|
1
pixel_metrics/sepolicy/file_contexts
Normal file
1
pixel_metrics/sepolicy/file_contexts
Normal file
|
@ -0,0 +1 @@
|
||||||
|
/vendor/bin/dump/dump_pixel_metrics\.sh u:object_r:dump_pixel_metrics_exec:s0
|
4
pixel_metrics/sepolicy/genfs_contexts
Normal file
4
pixel_metrics/sepolicy/genfs_contexts
Normal file
|
@ -0,0 +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
|
|
@ -44,5 +44,3 @@ echo "TMU_SUB rise thresholds:"
|
||||||
cat /sys/module/gs_thermal/parameters/tmu_sub_reg_dump_rise_thres
|
cat /sys/module/gs_thermal/parameters/tmu_sub_reg_dump_rise_thres
|
||||||
echo "TMU_SUB fall thresholds:"
|
echo "TMU_SUB fall thresholds:"
|
||||||
cat /sys/module/gs_thermal/parameters/tmu_sub_reg_dump_fall_thres
|
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
|
|
||||||
|
|
|
@ -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 sysfs_thermal:lnk_file r_file_perms;
|
||||||
allow dump_thermal vendor_toolbox_exec:file execute_no_trans;
|
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,5 +1,3 @@
|
||||||
# thermal sysfs files
|
# thermal sysfs files
|
||||||
genfscon sysfs /module/gs_thermal/parameters u:object_r:sysfs_thermal:s0
|
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
|
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
type proc_touch, proc_type, fs_type;
|
type proc_touch, proc_type, fs_type;
|
||||||
|
type sysfs_touch, sysfs_type, fs_type;
|
||||||
|
|
||||||
|
|
2
touch/gti/sepolicy/file.te
Normal file
2
touch/gti/sepolicy/file.te
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
type sysfs_touch, sysfs_type, fs_type;
|
||||||
|
|
2
touch/lsi/sepolicy/file.te
Normal file
2
touch/lsi/sepolicy/file.te
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
type sysfs_touch, sysfs_type, fs_type;
|
||||||
|
|
2
touch/syna/sepolicy/file.te
Normal file
2
touch/syna/sepolicy/file.te
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
type sysfs_touch, sysfs_type, fs_type;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue