Dump bts information am: 15538c9845

Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs-common/+/27232582

Change-Id: I07bcaf815b664ab36a17eb19bd5c1ae6238685e2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Midas Chien 2024-05-15 02:16:45 +00:00 committed by Automerger Merge Worker
commit cd14b2ad4d
5 changed files with 10 additions and 1 deletions

View File

@ -12,7 +12,7 @@ cc_binary {
"-Werror",
],
shared_libs: [
"libdump",
"libdump",
],
vendor: true,
relative_install_path: "dump",

View File

@ -18,5 +18,8 @@
int main() {
dumpFileContent("VENDOR PROC DUMP", "/proc/vendor_sched/dump_task");
dumpFileContent("BTS scenario", "/sys/kernel/debug/bts/scenario");
dumpFileContent("BTS vc", "/sys/kernel/debug/bts/vc");
dumpFileContent("BTS status", "/sys/kernel/debug/bts/status");
return 0;
}

View File

@ -1,3 +1,7 @@
pixel_bugreport(dump_perf)
allow dump_perf proc_vendor_sched:file r_file_perms;
userdebug_or_eng(`
allow dump_perf vendor_bts_debugfs:dir r_dir_perms;
allow dump_perf vendor_bts_debugfs:file r_file_perms;
')

View File

@ -1 +1,2 @@
type sysfs_pakills, fs_type, sysfs_type;
type vendor_bts_debugfs, fs_type, debugfs_type;

View File

@ -1,2 +1,3 @@
genfscon proc /sys/kernel/sched_pelt_multiplier u:object_r:proc_sched:s0
genfscon sysfs /kernel/vendor_mm/pa_kill u:object_r:sysfs_pakills:s0
genfscon debugfs /bts u:object_r:vendor_bts_debugfs:s0