openbcm

Git mirror of https://github.com/Broadcom-Network-Switching-Software/OpenBCM
git clone git://git.finwo.net/mirror/broadcom/openbcm
Log | Files | Refs | README

stats.h (537B)


      1 /*
      2  * 
      3  * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
      4  * 
      5  * Copyright 2007-2019 Broadcom Inc. All rights reserved.
      6  *
      7  * File:     stats.h
      8  * Purpose:    
      9  *
     10  * cpu occupation stats routines
     11  */
     12 
     13 #ifndef _SAL_STATS_H
     14 #define _SAL_STATS_H
     15 
     16 #include <sal/types.h>
     17 
     18 typedef struct {
     19 	uint64 user;
     20 	uint64 kernel;
     21 	uint64 idle;
     22 	uint64 total;
     23 } sal_cpu_stats_t;
     24 
     25 extern int sal_cpu_stats_get(sal_cpu_stats_t* cpu_stats);
     26 
     27 #endif    /* !_SAL_STATS_H */