Motr  M0
m0_fi_fpoint_data Struct Reference

#include <finject.h>

Collaboration diagram for m0_fi_fpoint_data:
Collaboration graph

Data Fields

enum m0_fi_fpoint_type fpd_type
 
union {
   struct {
      uint32_t   fpd_n
 
      uint32_t   fpd_m
 
      uint32_t   fpd___n_cnt
 
      uint32_t   fpd___m_cnt
 
   }   s1
 
   struct {
      m0_fi_fpoint_state_func_t   fpd_trigger_func
 
      void *   fpd_private
 
   }   s2
 
   uint32_t   fpd_p
 
u
 
uint32_t fpd_hit_cnt
 
uint32_t fpd_trigger_cnt
 

Detailed Description

Contains information, which controls fault point's behavior in enabled state, depending on FP type.

Definition at line 127 of file finject.h.

Field Documentation

◆ fpd___m_cnt

uint32_t fpd___m_cnt

Internal counter for M0_FI_OFF_N_ON_M and triggering algorithms, not intended to be accessed by user code

Definition at line 157 of file finject.h.

◆ fpd___n_cnt

uint32_t fpd___n_cnt

Internal counter for M0_FI_OFF_N_ON_M triggering algorithms, not intended to be accessed by user code

Definition at line 151 of file finject.h.

◆ fpd_hit_cnt

uint32_t fpd_hit_cnt

Counter of how many times (since last enable) fault point was checked/hit

Definition at line 180 of file finject.h.

◆ fpd_m

uint32_t fpd_m

Used for M0_FI_OFF_N_ON_M fault points, means how many times in a row to trigger FP, after skipping it N times before

Definition at line 146 of file finject.h.

◆ fpd_n

uint32_t fpd_n

Used for M0_FI_OFF_N_ON_M fault points, means 'skip triggering N times in a row and then trigger M times in a row' (for M0_FI_OFF_N_ON_M type)

Definition at line 140 of file finject.h.

◆ fpd_p

uint32_t fpd_p

Probability with which FP is triggered (for M0_FI_RANDOM type), it's an integer number in range [1..100], which means a probability in percents, with which FP should be triggered on each hit

Definition at line 174 of file finject.h.

◆ fpd_private

void* fpd_private

Pointer to store user's private data, which can be accessed from user-supplied triggering function

Definition at line 166 of file finject.h.

◆ fpd_trigger_cnt

uint32_t fpd_trigger_cnt

Counter of how many times (since last enable) fault point was triggered

Definition at line 185 of file finject.h.

◆ fpd_trigger_func

m0_fi_fpoint_state_func_t fpd_trigger_func

User-supplied triggering function

Definition at line 161 of file finject.h.

◆ fpd_type

enum m0_fi_fpoint_type fpd_type

Fault point type, it determines which field of the following union are relevant and contains a meaningful data

Definition at line 132 of file finject.h.

◆ s1

struct { ... } s1

◆ s2

struct { ... } s2

◆ u

union { ... } u

The documentation for this struct was generated from the following file: