ANDROID: vendor_hooks: Add parameter to android_vh_wake_up_sync

Extend vendor hook definition to add a sock struct pointer parameter
in useful vendor hook to modify wake flag.

android_vh_do_wake_up_sync
  Modified definition to include sock struct pointer param

Bug: 267294957
Change-Id: I49fe4a44e66e0ac2ebb975a710c184361d8b0c94
Signed-off-by: Raul Martinez <quic_mraul@quicinc.com>
Signed-off-by: Subash Abhinov Kasiviswanathan <quic_subashab@quicinc.com>
This commit is contained in:
Raul Martinez
2023-01-31 11:25:10 -08:00
committed by Subash Abhinov Kasiviswanathan
parent 9834c26bae
commit 91d8cca518
2 changed files with 3 additions and 3 deletions

View File

@@ -318,8 +318,8 @@ DECLARE_RESTRICTED_HOOK(android_rvh_update_thermal_stats,
TP_ARGS(cpu), 1);
DECLARE_HOOK(android_vh_do_wake_up_sync,
TP_PROTO(struct wait_queue_head *wq_head, int *done),
TP_ARGS(wq_head, done));
TP_PROTO(struct wait_queue_head *wq_head, int *done, struct sock *sk),
TP_ARGS(wq_head, done, sk));
DECLARE_HOOK(android_vh_set_wake_flags,
TP_PROTO(int *wake_flags, unsigned int *mode),

View File

@@ -3276,7 +3276,7 @@ void sock_def_readable(struct sock *sk)
if (skwq_has_sleeper(wq)) {
int done = 0;
trace_android_vh_do_wake_up_sync(&wq->wait, &done);
trace_android_vh_do_wake_up_sync(&wq->wait, &done, sk);
if (done)
goto out;