Commit 03396e4b authored by Konrad Korczyński's avatar Konrad Korczyński
Browse files

ANDROID: fs: Add vendor hooks for ep_create_wakeup_source & timerfd_create



timerfd doesn't create any wakelocks, but eventpoll can.  When it does,
it names them after the underlying file descriptor, and since all
timerfd file descriptors are named "[timerfd]" (which saves memory on
systems like desktops with potentially many timerfd instances), all
wakesources created as a result of using the eventpoll-on-timerfd idiom
are called... "[timerfd]".

However, it becomes impossible to tell which "[timerfd]" wakesource is
affliated with which process and hence troubleshooting is difficult.

Adding vendor hooks to allow vendor to assign appropriate names to
timerfd descriptors and eventoll wakesource.

Bug: 155142106
Bug: 415767459
Signed-off-by: default avatarManish Varma <varmam@google.com>
(cherry picked from https://android-review.googlesource.com/q/commit:0ff110fbb309be385126a42ac9f7004ba9b0644e

)
Signed-off-by: default avatarDarren Hsu <darrenhsu@google.com>
(cherry picked from https://android-review.googlesource.com/q/commit:719fc80624522769ef8d7dacd73a5a1ec4f402cf

)
Merged-In: I330a42ab48bed4b26d5eb2f636925c66061165ec
Change-Id: I330a42ab48bed4b26d5eb2f636925c66061165ec
Signed-off-by: default avatarKonrad Korczyński <kkorczynski@google.com>
(cherry picked from commit 3fb23823)
Signed-off-by: default avatarKonrad Korczyński <kkorczynski@google.com>
parent f20ec687
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment