Merge "dumpstate: Collect PCIe link statistics"

This commit is contained in:
Doug Zobel 2023-02-13 16:15:21 +00:00 committed by Android (Google) Code Review
commit a91df91853
3 changed files with 10 additions and 0 deletions

View File

@ -3,3 +3,9 @@ echo "--- pcie0 dump ---"
cat /dev/logbuffer_pcie0 cat /dev/logbuffer_pcie0
echo "--- pcie1 dump ---" echo "--- pcie1 dump ---"
cat /dev/logbuffer_pcie1 cat /dev/logbuffer_pcie1
echo "--- pcie link statistics ---"
for f in /sys/devices/platform/*.pcie/link_stats/*
do
echo "$f: `cat $f`"
done

View File

@ -1 +1,2 @@
type pcie_log_device, dev_type; type pcie_log_device, dev_type;
type sysfs_pcie, sysfs_type, fs_type;

View File

@ -2,3 +2,6 @@ pixel_bugreport(dump_pcie)
allow dump_pcie pcie_log_device:chr_file r_file_perms; allow dump_pcie pcie_log_device:chr_file r_file_perms;
allow dump_pcie vendor_toolbox_exec:file execute_no_trans; allow dump_pcie vendor_toolbox_exec:file execute_no_trans;
allow dump_pcie sysfs:dir r_dir_perms;
allow dump_pcie sysfs_pcie:file r_file_perms;