diff options
author | Joel Fernandes <joelaf@google.com> | 2018-07-17 13:00:17 -0700 |
---|---|---|
committer | Joel Fernandes <joelaf@google.com> | 2018-07-17 17:02:44 -0700 |
commit | 56cd651e7ae16173f9c24fd49cd76e8c61f0756c (patch) | |
tree | c3cd72df12cf9435fd0da938e712e58054d3896b /debuggerd/handler | |
parent | a73ea65c5aa40fbd3faf05ece4de4c7acc7a8564 (diff) |
libcutils: ashmem: Avoid doing fd checks for ashmem calls
Callers already verify that they are calling ashmem API on a valid fd by
calling ashmem_valid first. Lets make the fstat syscall only if the
ioctl returns -ENOTTY. This means in the regular case, only 1 syscall is
needed (ioctl) vs the current 2 (fstat+ioctl).
Some data to show improvements in reduction of vfs_getattr calls in the
kernel by 10x when doing a camera.
Test: Boot and camera CTS
Bug: 111418894
Change-Id: I992620bbe44355e54ba19eeac81da586c5e5a6e0
Signed-off-by: Joel Fernandes <joelaf@google.com>
Diffstat (limited to 'debuggerd/handler')
0 files changed, 0 insertions, 0 deletions