xref: /linux/lib/kunit/hooks.c (revision c532de5a67a70f8533d495f8f2aaa9a0491c3ad0)
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3  * KUnit 'Hooks' implementation.
4  *
5  * This file contains code / structures which should be built-in even when
6  * KUnit itself is built as a module.
7  *
8  * Copyright (C) 2022, Google LLC.
9  * Author: David Gow <davidgow@google.com>
10  */
11 
12 
13 #include <kunit/test-bug.h>
14 
15 DEFINE_STATIC_KEY_FALSE(kunit_running);
16 EXPORT_SYMBOL(kunit_running);
17 
18 /* Function pointers for hooks. */
19 struct kunit_hooks_table kunit_hooks;
20 EXPORT_SYMBOL(kunit_hooks);
21 
22