storage: turn off pixel storage debugging code on user builds
The debugging code introduces too much performance overhead for random I/O operations. Only enable the debugging feature on non-user builds. Bug: 284231590 Test: boot device Change-Id: Idf6852060dfd3a250d92147a3ee0f1fe9e6140d4 Signed-off-by: Randall Huang <huangrandall@google.com>
This commit is contained in:
parent
552f1b270b
commit
cd8e622678
3 changed files with 4 additions and 0 deletions
|
@ -5,6 +5,7 @@ package {
|
|||
cc_binary {
|
||||
name: "dump_storage",
|
||||
srcs: ["dump_storage.cpp"],
|
||||
init_rc: ["init.storage.rc"],
|
||||
cflags: [
|
||||
"-Wall",
|
||||
"-Wextra",
|
||||
|
|
2
storage/init.storage.rc
Normal file
2
storage/init.storage.rc
Normal file
|
@ -0,0 +1,2 @@
|
|||
on property:ro.build.type=userdebug
|
||||
write /dev/sys/block/bootdevice/pixel/enable_pixel_ufs_logging 1
|
|
@ -1 +1,2 @@
|
|||
/vendor/bin/dump/dump_storage u:object_r:dump_storage_exec:s0
|
||||
/sys/devices/platform/[0-9]+\.ufs/pixel/enable_pixel_ufs_logging u:object_r:sysfs_scsi_devices_0000:s0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue