[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180813190527.16853-4-alexander.levin@microsoft.com>
Date: Mon, 13 Aug 2018 19:05:39 +0000
From: Sasha Levin <Alexander.Levin@...rosoft.com>
To: "mingo@...hat.com" <mingo@...hat.com>,
"peterz@...radead.org" <peterz@...radead.org>
CC: "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Sasha Levin <Alexander.Levin@...rosoft.com>
Subject: [PATCH 3/3] tools/lib/lockdep: add dummy task_struct state member
Commit 8cc05c71ba5f ("locking/lockdep: Move sanity check to inside
lockdep_print_held_locks()") added accesses to the task_struct's state
member. Add dummy userspace declaration.
Signed-off-by: Sasha Levin <alexander.levin@...rosoft.com>
---
tools/include/linux/lockdep.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tools/include/linux/lockdep.h b/tools/include/linux/lockdep.h
index 6b0c36a58fcb..e56997288f2b 100644
--- a/tools/include/linux/lockdep.h
+++ b/tools/include/linux/lockdep.h
@@ -30,9 +30,12 @@ struct task_struct {
struct held_lock held_locks[MAX_LOCK_DEPTH];
gfp_t lockdep_reclaim_gfp;
int pid;
+ int state;
char comm[17];
};
+#define TASK_RUNNING 0
+
extern struct task_struct *__curr(void);
#define current (__curr())
--
2.17.1
Powered by blists - more mailing lists