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: 2025-03-01 20:23:48 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                 :            : #include "generic/rte_pause.h"
       9                 :            : 
      10                 :            : #include <emmintrin.h>
      11                 :            : 
      12                 :            : #ifdef __cplusplus
      13                 :            : extern "C" {
      14                 :            : #endif
      15                 :            : 
      16                 :          0 : static inline void rte_pause(void)
      17                 :            : {
      18                 :            :         _mm_pause();
      19                 :  370701632 : }
      20                 :            : 
      21                 :            : #ifdef __cplusplus
      22                 :            : }
      23                 :            : #endif
      24                 :            : 
      25                 :            : #endif /* _RTE_PAUSE_X86_H_ */

Generated by: LCOV version 1.14