hooks.c 477 B

123456789101112131415161718192021
  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. #include <kunit/test-bug.h>
  12. DEFINE_STATIC_KEY_FALSE(kunit_running);
  13. EXPORT_SYMBOL(kunit_running);
  14. /* Function pointers for hooks. */
  15. struct kunit_hooks_table kunit_hooks;
  16. EXPORT_SYMBOL(kunit_hooks);