LCOV - code coverage report
Current view: top level - include/linux - fault-inject-usercopy.h (source / functions) Hit Total Coverage
Test: landlock.info Lines: 1 1 100.0 %
Date: 2021-04-22 12:43:58 Functions: 0 0 -

          Line data    Source code
       1             : /* SPDX-License-Identifier: GPL-2.0 */
       2             : #ifndef __LINUX_FAULT_INJECT_USERCOPY_H__
       3             : #define __LINUX_FAULT_INJECT_USERCOPY_H__
       4             : 
       5             : /*
       6             :  * This header provides a wrapper for injecting failures to user space memory
       7             :  * access functions.
       8             :  */
       9             : 
      10             : #include <linux/types.h>
      11             : 
      12             : #ifdef CONFIG_FAULT_INJECTION_USERCOPY
      13             : 
      14             : bool should_fail_usercopy(void);
      15             : 
      16             : #else
      17             : 
      18      410381 : static inline bool should_fail_usercopy(void) { return false; }
      19             : 
      20             : #endif /* CONFIG_FAULT_INJECTION_USERCOPY */
      21             : 
      22             : #endif /* __LINUX_FAULT_INJECT_USERCOPY_H__ */

Generated by: LCOV version 1.14