1 /* SPDX-License-Identifier: GPL-2.0 */ 1 2 /* 3 * Declarations for hook implementations. 4 * 5 * These will be set as the function pointers 6 * found in include/kunit/test-bug.h. 7 * 8 * Copyright (C) 2023, Google LLC. 9 * Author: David Gow <davidgow@google.com> 10 */ 11 12 #ifndef _KUNIT_HOOKS_IMPL_H 13 #define _KUNIT_HOOKS_IMPL_H 14 15 #include <kunit/test-bug.h> 16 17 /* List of declarations. */ 18 void __printf(3, 4) __kunit_fail_current_test_ 19 20 21 void *__kunit_get_static_stub_address_impl(str 22 23 /* Code to set all of the function pointers. * 24 static inline void kunit_install_hooks(void) 25 { 26 /* Install the KUnit hook functions. * 27 kunit_hooks.fail_current_test = __kuni 28 kunit_hooks.get_static_stub_address = 29 } 30 31 #endif /* _KUNIT_HOOKS_IMPL_H */ 32
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.