[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200731044242.1323143-2-davidgow@google.com>
Date: Thu, 30 Jul 2020 21:42:38 -0700
From: David Gow <davidgow@...gle.com>
To: trishalfonso@...gle.com, brendanhiggins@...gle.com,
aryabinin@...tuozzo.com, dvyukov@...gle.com, mingo@...hat.com,
peterz@...radead.org, juri.lelli@...hat.com,
vincent.guittot@...aro.org, andreyknvl@...gle.com, shuah@...nel.org
Cc: linux-kernel@...r.kernel.org, kasan-dev@...glegroups.com,
kunit-dev@...glegroups.com, linux-kselftest@...r.kernel.org,
David Gow <davidgow@...gle.com>
Subject: [PATCH v9 1/5] Add KUnit Struct to Current Task
From: Patricia Alfonso <trishalfonso@...gle.com>
In order to integrate debugging tools like KASAN into the KUnit
framework, add KUnit struct to the current task to keep track of the
current KUnit test.
Signed-off-by: Patricia Alfonso <trishalfonso@...gle.com>
Reviewed-by: Brendan Higgins <brendanhiggins@...gle.com>
Signed-off-by: David Gow <davidgow@...gle.com>
---
include/linux/sched.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 683372943093..3a27399c98b1 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -1197,6 +1197,10 @@ struct task_struct {
struct kcsan_ctx kcsan_ctx;
#endif
+#if IS_ENABLED(CONFIG_KUNIT)
+ struct kunit *kunit_test;
+#endif
+
#ifdef CONFIG_FUNCTION_GRAPH_TRACER
/* Index of current stored address in ret_stack: */
int curr_ret_stack;
--
2.28.0.163.g6104cc2f0b6-goog
Powered by blists - more mailing lists