ANDROID: vendor_hooks: export get_wchan

Export get_wchan to get the block reason.

It is used to get the block reason(why the thread blocked in Uninterrupted Sleep) when happened long D state. We use this information check if it's reasonable.

Bug: 205684022
Signed-off-by: xieliujie <xieliujie@oppo.com>
Change-Id: I7b65bb502b805e7dac13e5f9d725da1ff70fe306
(cherry picked from commit 0db6925868)
(cherry picked from commit de72c813d12537ea6ced87b39ffcad446815609a)
This commit is contained in:
xieliujie
2021-11-11 09:57:31 +08:00
committed by Liujie Xie
parent 38a713dc80
commit 1bcf1fc767

View File

@@ -604,6 +604,7 @@ unsigned long get_wchan(struct task_struct *p)
return wchan_info.pc;
}
EXPORT_SYMBOL_GPL(get_wchan);
unsigned long arch_align_stack(unsigned long sp)
{