ANDROID: vendor_hooks: Fix incorrect declaration of restricted hook

Fix incorrect declaration of android_rvh_alloc_and_link_pwqs as a
restricted vendor hook

Bug: 360020729
Change-Id: Ib93593c33aed03e65b9cb8ae779b4e4177317f88
Signed-off-by: Yang Yang <yang.yang@vivo.com>
This commit is contained in:
Yang Yang 2024-08-14 10:47:57 +08:00 committed by Treehugger Robot
parent 1933a7b8ab
commit c8968f29f4

View File

@ -18,9 +18,15 @@ DECLARE_HOOK(android_vh_wq_lockup_pool,
TP_PROTO(int cpu, unsigned long pool_ts),
TP_ARGS(cpu, pool_ts));
#ifndef __GENKSYMS__
DECLARE_RESTRICTED_HOOK(android_rvh_alloc_and_link_pwqs,
TP_PROTO(struct workqueue_struct *wq, int *ret, bool *skip),
TP_ARGS(wq, ret, skip), 1);
#else
DECLARE_HOOK(android_rvh_alloc_and_link_pwqs,
TP_PROTO(struct workqueue_struct *wq, int *ret, bool *skip),
TP_ARGS(wq, ret, skip));
#endif
#endif /* _TRACE_HOOK_WQLOCKUP_H */
/* This part must be outside protection */