Dump bts information
Get BTS information when capturing bugreport. Bug: 335422086 Test: capture bugreport Change-Id: I5ae9be35a3fc3c975ccc843e9daee6d4e0ac130a
This commit is contained in:
parent
2522590c40
commit
15538c9845
@ -11,7 +11,7 @@ cc_binary {
|
|||||||
"-Werror",
|
"-Werror",
|
||||||
],
|
],
|
||||||
shared_libs: [
|
shared_libs: [
|
||||||
"libdump",
|
"libdump",
|
||||||
],
|
],
|
||||||
vendor: true,
|
vendor: true,
|
||||||
relative_install_path: "dump",
|
relative_install_path: "dump",
|
||||||
|
@ -18,5 +18,8 @@
|
|||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
dumpFileContent("VENDOR PROC DUMP", "/proc/vendor_sched/dump_task");
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
pixel_bugreport(dump_perf)
|
pixel_bugreport(dump_perf)
|
||||||
|
|
||||||
allow dump_perf proc_vendor_sched:file r_file_perms;
|
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;
|
||||||
|
')
|
||||||
|
@ -1 +1,2 @@
|
|||||||
type sysfs_pakills, fs_type, sysfs_type;
|
type sysfs_pakills, fs_type, sysfs_type;
|
||||||
|
type vendor_bts_debugfs, fs_type, debugfs_type;
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
genfscon proc /sys/kernel/sched_pelt_multiplier u:object_r:proc_sched:s0
|
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 sysfs /kernel/vendor_mm/pa_kill u:object_r:sysfs_pakills:s0
|
||||||
|
genfscon debugfs /bts u:object_r:vendor_bts_debugfs:s0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user