LCOV - code coverage report
Current view: top level - util/tmpl - fd_map.h (source / functions) Hit Total Coverage
Test: cov.lcov Lines: 10 10 100.0 %
Date: 2025-09-19 04:41:14 Functions: 0 0 -

          Line data    Source code
       1             : #ifndef HEADER_fd_src_util_tmpl_fd_map_h
       2             : #define HEADER_fd_src_util_tmpl_fd_map_h
       3             : 
       4             : #include "../fd_util_base.h"
       5             : 
       6             : /* Common map error codes (FIXME: probably should get around to making
       7             :    unified error codes, error strings and/or flags across util at least
       8             :    so we don't have to do this in the generator itself) */
       9             : 
      10  1459479744 : #define FD_MAP_SUCCESS     (0)
      11    12406770 : #define FD_MAP_ERR_INVAL   (-1)
      12   578782383 : #define FD_MAP_ERR_AGAIN   (-2)
      13           3 : #define FD_MAP_ERR_CORRUPT (-3)
      14             : //#define FD_MAP_ERR_EMPTY   (-4)
      15           9 : #define FD_MAP_ERR_FULL    (-5)
      16   421944612 : #define FD_MAP_ERR_KEY     (-6)
      17             : 
      18             : /* common map flags */
      19             : 
      20   106814865 : #define FD_MAP_FLAG_BLOCKING      (1<<0)
      21             : 
      22             : /* map_slot_para flags */
      23             : 
      24             : //#define FD_MAP_FLAG_BLOCKING      (1<<0)
      25  1081681674 : #define FD_MAP_FLAG_USE_HINT      (1<<2)
      26             : #define FD_MAP_FLAG_PREFETCH_NONE (0<<3)
      27             : #define FD_MAP_FLAG_PREFETCH_META (1<<3)
      28             : #define FD_MAP_FLAG_PREFETCH_DATA (2<<3)
      29             : #define FD_MAP_FLAG_PREFETCH      (3<<3)
      30    67488267 : #define FD_MAP_FLAG_RDONLY        (1<<5)
      31             : 
      32             : /* map_chain_para flags */
      33             : 
      34             : //#define FD_MAP_FLAG_BLOCKING      (1)
      35     6770130 : #define FD_MAP_FLAG_ADAPTIVE      (2)
      36             : 
      37             : struct fd_map_chain_iter {
      38             :   ulong chain_rem;
      39             :   ulong ele_idx;
      40             : };
      41             : 
      42             : #endif /* HEADER_fd_src_util_tmpl_fd_map_h */

Generated by: LCOV version 1.14