LCOV - code coverage report
Current view: top level - include/linux - kvm_para.h (source / functions) Hit Total Coverage
Test: combined.info Lines: 4 4 100.0 %
Date: 2022-04-01 14:58:12 Functions: 0 0 -
Branches: 24 74 32.4 %

           Branch data     Line data    Source code
       1                 :            : /* SPDX-License-Identifier: GPL-2.0 */
       2                 :            : #ifndef __LINUX_KVM_PARA_H
       3                 :            : #define __LINUX_KVM_PARA_H
       4                 :            : 
       5                 :            : #include <uapi/linux/kvm_para.h>
       6                 :            : 
       7                 :            : 
       8                 :         42 : static inline bool kvm_para_has_feature(unsigned int feature)
       9                 :            : {
      10   [ +  -  -  -  :         72 :         return !!(kvm_arch_para_features() & (1UL << feature));
          +  -  -  -  -  
          +  +  -  -  +  
          +  -  -  +  +  
          -  -  -  -  -  
          -  +  -  +  -  
          -  -  -  -  +  
          -  +  -  +  -  
          -  -  -  -  -  
          -  -  -  +  +  
          -  -  +  -  +  
          -  +  +  -  -  
                +  +  - ]
      11                 :            : }
      12                 :            : 
      13                 :          6 : static inline bool kvm_para_has_hint(unsigned int feature)
      14                 :            : {
      15   [ +  +  -  +  :          9 :         return !!(kvm_arch_para_hints() & (1UL << feature));
          -  -  -  -  -  
                -  -  - ]
      16                 :            : }
      17                 :            : #endif /* __LINUX_KVM_PARA_H */

Generated by: LCOV version 1.14