ANDROID: vendor_hooks: Export the tracepoints sched_stat_blocked, sched_stat_wait to let modules probe them

Get task info about scheduling delay and block time.

It is used to get thread scheduling info when thread happened abnormal situation.

Bug: 189415303
Signed-off-by: shenshen mao <maoshenshen@oppo.com>
Change-Id: Ib6b548f8a78de5b26d555e9a89e3cc79ea2d1024
Signed-off-by: xieliujie <xieliujie@oppo.com>
(cherry picked from commit 942d510b9eb465db9cd791d49119538ff2a27287)
This commit is contained in:
xieliujie
2024-03-21 14:47:42 +08:00
committed by John Stultz
parent 46bfbfed34
commit a6b6b7accf
+2
View File
@@ -126,6 +126,8 @@ EXPORT_TRACEPOINT_SYMBOL_GPL(sched_waking);
EXPORT_TRACEPOINT_SYMBOL_GPL(sched_wakeup);
#if defined(CONFIG_SCHEDSTATS)
EXPORT_TRACEPOINT_SYMBOL_GPL(sched_stat_sleep);
EXPORT_TRACEPOINT_SYMBOL_GPL(sched_stat_wait);
EXPORT_TRACEPOINT_SYMBOL_GPL(sched_stat_blocked);
#endif
DEFINE_PER_CPU_SHARED_ALIGNED(struct rq, runqueues);