diff options
author | Charan Teja Reddy <charante@codeaurora.org> | 2020-01-28 16:30:13 +0530 |
---|---|---|
committer | charan teja reddy <charante@codeaurora.org> | 2020-01-28 11:40:08 +0000 |
commit | af097064ff63bf41bb0277d1e80f340e1c599e0f (patch) | |
tree | 2b35bec69fc3b9443621c4689cb4dc4eb1035371 /libutils/ProcessCallStack_fuzz.cpp | |
parent | eae45d25367cd14cbe0b3ed92235b6f48c0afad5 (diff) |
lmkd: don't close trace_marker fd when EBADF is returned
Kernel returns EBADF when tracing_on = 0 in which case we will close and
reopen trace_marker for next write which can add overhead because of
system checks that open() system call will undergo. As this is not a
real Bad file descriptor, choose not to close the trace_marker fd.
CRs-Fixed: 2611369
Change-Id: I737abfab1c3aebc56dc621010bd6cf899717e7d2
Diffstat (limited to 'libutils/ProcessCallStack_fuzz.cpp')
0 files changed, 0 insertions, 0 deletions