• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2016-2024 Broadcom. All Rights Reserved.
3  * The term “Broadcom” refers to Broadcom Inc.
4  * and/or its subsidiaries.
5  * SPDX-License-Identifier: MIT
6  */
7 
8 #ifndef _SVGA_MKSSTATS_H
9 #define _SVGA_MKSSTATS_H
10 
11 #include "svga_winsys.h"
12 
13 #ifdef VMX86_STATS
14 #define SVGA_STATS_COUNT_INC(_sws, _stat)                    \
15    _sws->stats_inc(_sws, _stat);
16 
17 #define SVGA_STATS_TIME_PUSH(_sws, _stat)                    \
18    struct svga_winsys_stats_timeframe timeFrame;             \
19    _sws->stats_time_push(_sws, _stat, &timeFrame);
20 
21 #define SVGA_STATS_TIME_POP(_sws)                            \
22    _sws->stats_time_pop(_sws);
23 
24 #else
25 
26 #define SVGA_STATS_COUNT_INC(_sws, _stat)
27 #define SVGA_STATS_TIME_PUSH(_sws, _stat)
28 #define SVGA_STATS_TIME_POP(_sws)
29 
30 #endif
31 #endif /* _SVGA_MKSSTATS_H */
32