LCOV - code coverage report
Current view: top level - lib/eal/x86/include - rte_pause.h (source / functions) Hit Total Coverage
Test: Code coverage Lines: 1 2 50.0 %
Date: 2024-01-22 15:35:40 Functions: 0 1 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : /* SPDX-License-Identifier: BSD-3-Clause
       2                 :            :  * Copyright(c) 2017 Cavium, Inc
       3                 :            :  */
       4                 :            : 
       5                 :            : #ifndef _RTE_PAUSE_X86_H_
       6                 :            : #define _RTE_PAUSE_X86_H_
       7                 :            : 
       8                 :            : #ifdef __cplusplus
       9                 :            : extern "C" {
      10                 :            : #endif
      11                 :            : 
      12                 :            : #include "generic/rte_pause.h"
      13                 :            : 
      14                 :            : #include <emmintrin.h>
      15                 :          0 : static inline void rte_pause(void)
      16                 :            : {
      17                 :            :         _mm_pause();
      18                 :  473772792 : }
      19                 :            : 
      20                 :            : #ifdef __cplusplus
      21                 :            : }
      22                 :            : #endif
      23                 :            : 
      24                 :            : #endif /* _RTE_PAUSE_X86_H_ */

Generated by: LCOV version 1.14