#include <stddef.h>
#include "xcom/simset.h"
#include "xcom/site_struct.h"
#include "xcom/xcom_profile.h"
#include "xdr_gen/xcom_vp.h"
 
Go to the source code of this file.
◆ DEC_THRESHOLD_LENGTH
      
        
          | #define DEC_THRESHOLD_LENGTH   500000 /* MIN_LENGTH * 10 */ | 
        
      
 
 
◆ DEC_THRESHOLD_SIZE
      
        
          | #define DEC_THRESHOLD_SIZE   0.95F | 
        
      
 
 
◆ INCREMENT
      
        
          | #define INCREMENT   MIN_LENGTH      /* Total number of slots to add/remove */ | 
        
      
 
 
◆ is_cached
◆ MIN_LENGTH
◆ MIN_LENGTH_THRESHOLD
      
        
          | #define MIN_LENGTH_THRESHOLD   0.9F | 
        
      
 
 
◆ MIN_TARGET_OCCUPATION
      
        
          | #define MIN_TARGET_OCCUPATION   0.7F | 
        
      
 
 
◆ p_events
Value:  X(paxos_prepare), 
X(paxos_ack_prepare), 
X(paxos_accept),                \
 
      X(paxos_ack_accept), 
X(paxos_learn), 
X(paxos_start), 
X(paxos_tout), \
 
      X(last_p_event)
#define X(a)
Definition: xcom_cache.h:65
 
 
 
 
◆ SET_PAXOS_FSM_STATE
      
        
          | #define SET_PAXOS_FSM_STATE | 
          ( | 
            | 
          obj,  | 
        
        
           | 
           | 
            | 
          s  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Value:  do {                              \
    (obj)->state.state_fp = s;      \
    (obj)->state.state_name = #s;   \
  } while (0)
 
 
 
◆ lru_machine
◆ pax_machine
◆ paxos_event
◆ paxos_fsm_fp
◆ paxos_fsm_state
◆ stack_machine
◆ anonymous enum
| Enumerator | 
|---|
| CACHE_SHRINK_OK  |  | 
| CACHE_TOO_SMALL  |  | 
| CACHE_HASH_NOTEMPTY  |  | 
| CACHE_HIGH_OCCUPATION  |  | 
| CACHE_RESULT_LOW  |  | 
| CACHE_INCREASING  |  | 
 
 
◆ paxos_event
◆ above_cache_limit()
      
        
          | int above_cache_limit  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ add_cache_size()
◆ cache_get_last_removed()
      
        
          | synode_no cache_get_last_removed  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ check_decrease()
      
        
          | uint16_t check_decrease  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ dbg_machine_nodeset()
◆ dbg_pax_machine()
◆ deinit_cache()
◆ do_cache_maintenance()
      
        
          | void do_cache_maintenance  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ force_get_cache()
◆ get_cache()
◆ get_cache_no_touch()
◆ get_xcom_cache_length()
      
        
          | uint64_t get_xcom_cache_length  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ get_xcom_cache_occupation()
      
        
          | uint64_t get_xcom_cache_occupation  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ get_xcom_cache_size()
      
        
          | uint64_t get_xcom_cache_size  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ hash_get()
◆ init_cache()
◆ init_cache_size()
◆ init_pax_machine()
◆ is_busy_machine()
◆ lock_pax_machine()
◆ pax_machine_size()
◆ paxos_fsm_idle()
◆ paxos_timeout()
◆ psi_report_cache_shutdown()
      
        
          | void psi_report_cache_shutdown  | 
          ( | 
           | ) | 
           | 
        
      
 
After the cache is de-initialized 'current_count' must be zero; otherwise we have allocated data that has not been deallocated (or has not been reported as deallocated). 
 
 
◆ psi_report_mem_alloc()
      
        
          | int psi_report_mem_alloc  | 
          ( | 
          size_t  | 
          size | ) | 
           | 
        
      
 
Reports to PSI the allocation of 'size' bytes of data. 
 
 
◆ psi_report_mem_free()
      
        
          | void psi_report_mem_free  | 
          ( | 
          size_t  | 
          size,  | 
        
        
           | 
           | 
          int  | 
          is_instrumented  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Reports to PSI the deallocation of 'size' bytes of data. 
 
 
◆ psi_set_cache_resetting()
      
        
          | void psi_set_cache_resetting  | 
          ( | 
          int  | 
          is_resetting | ) | 
           | 
        
      
 
 
◆ set_dec_threshold_length()
      
        
          | void set_dec_threshold_length  | 
          ( | 
          uint64_t  | 
          threshold | ) | 
           | 
        
      
 
 
◆ set_dec_threshold_size()
      
        
          | void set_dec_threshold_size  | 
          ( | 
          float  | 
          threshold | ) | 
           | 
        
      
 
 
◆ set_length_increment()
      
        
          | void set_length_increment  | 
          ( | 
          size_t  | 
          increment | ) | 
           | 
        
      
 
 
◆ set_max_cache_size()
      
        
          | uint64_t set_max_cache_size  | 
          ( | 
          uint64_t  | 
          x | ) | 
           | 
        
      
 
 
◆ set_min_length_threshold()
      
        
          | void set_min_length_threshold  | 
          ( | 
          float  | 
          threshold | ) | 
           | 
        
      
 
 
◆ set_min_target_occupation()
      
        
          | void set_min_target_occupation  | 
          ( | 
          float  | 
          threshold | ) | 
           | 
        
      
 
 
◆ set_size_decrement()
      
        
          | void set_size_decrement  | 
          ( | 
          size_t  | 
          decrement | ) | 
           | 
        
      
 
 
◆ shrink_cache()
◆ sub_cache_size()
◆ unlock_pax_machine()
◆ was_removed_from_cache()
      
        
          | int was_removed_from_cache  | 
          ( | 
          synode_no  | 
          x | ) | 
           | 
        
      
 
 
◆ xcom_cache_var_init()
      
        
          | void xcom_cache_var_init  | 
          ( | 
           | ) | 
           |