ANDROID: vendor_hooks: add waiting information for blocked tasks

- Add the hook to get mutex/rwsem information that the tasks
   are waiting for.

 - Add the hook to print messages for sched_show_task.

 - ANDROID_VENDOR_DATA_ARRAY added to task_struct

Bug: 162776704

Signed-off-by: Sangmoon Kim <sangmoon.kim@samsung.com>
Change-Id: Ib436fbd8d0ad509c3b5a73ea8f5170e0761a13fd
(cherry picked from commit b519ac4237)
This commit is contained in:
Sangmoon Kim
2020-08-05 22:13:43 +09:00
committed by Todd Kjos
parent 10278602dc
commit 9ad8ff902e
6 changed files with 77 additions and 0 deletions

View File

@@ -34,6 +34,7 @@
#include <linux/rseq.h>
#include <linux/seqlock.h>
#include <linux/kcsan.h>
#include <linux/android_vendor.h>
/* task_struct member predeclarations (sorted alphabetically): */
struct audit_context;
@@ -1318,6 +1319,7 @@ struct task_struct {
__mce_reserved : 62;
struct callback_head mce_kill_me;
#endif
ANDROID_VENDOR_DATA_ARRAY(1, 2);
/*
* New fields for task_struct should be added above here, so that