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
15DEFINE_STATIC_KEY_FALSE(kunit_running);
16EXPORT_SYMBOL(kunit_running);
17
18/* Function pointers for hooks. */
19struct kunit_hooks_table kunit_hooks;
20EXPORT_SYMBOL(kunit_hooks);
21
22

source code of linux/lib/kunit/hooks.c