File fault_injection.c¶
FileList > base > fault_injection.c
Go to the source code of this file
#include "fault_injection.h"#include "log_impl.h"#include "porting.h"#include "system_parameter.h"#include "thread_manager.hpp"#include <assert.h>#include "memory_wrapper.hpp"
Public Attributes¶
| Type | Name |
|---|---|
| const FI_TEST_CODE | fi_Group_none = /* multi line expression */ |
| const FI_TEST_CODE | fi_Group_recovery = /* multi line expression */ |
| const FI_TEST_CODE *const | fi_Groups = /* multi line expression */ |
| FI_TEST_ITEM | fi_Test_array = /* multi line expression */ |
Public Functions¶
| Type | Name |
|---|---|
| void | fi_reset (THREAD_ENTRY * thread_p, FI_TEST_CODE code) |
| int | fi_set (THREAD_ENTRY * thread_p, FI_TEST_CODE code, int state) |
| int | fi_set_force (THREAD_ENTRY * thread_p, FI_TEST_CODE code, int state) |
| int | fi_state (THREAD_ENTRY * thread_p, FI_TEST_CODE code) |
| int | fi_test (THREAD_ENTRY * thread_p, FI_TEST_CODE code, void * arg, int state, const char * caller_file, const int caller_line) |
| bool | fi_test_on (FI_TEST_CODE code) |
| int | fi_thread_final (THREAD_ENTRY * thread_p) |
| int | fi_thread_init (THREAD_ENTRY * thread_p) |
Public Static Functions¶
| Type | Name |
|---|---|
| FI_TEST_ITEM * | fi_code_item (THREAD_ENTRY * thread_p, FI_TEST_CODE code) |
| int | fi_handler_exit (THREAD_ENTRY * thread_p, void * arg, const char * caller_file, const int caller_line) |
| int | fi_handler_hang (THREAD_ENTRY * thread_p, void * arg, const char * caller_file, const int caller_line) |
| int | fi_handler_random_exit (THREAD_ENTRY * thread_p, void * arg, const char * caller_file, const int caller_line) |
| int | fi_handler_random_fail (THREAD_ENTRY * thread_p, void * arg, const char * caller_file, const int caller_line) |
Public Attributes Documentation¶
variable fi_Group_none¶
variable fi_Group_recovery¶
variable fi_Groups¶
variable fi_Test_array¶
Public Functions Documentation¶
function fi_reset¶
function fi_set¶
function fi_set_force¶
function fi_state¶
function fi_test¶
int fi_test (
THREAD_ENTRY * thread_p,
FI_TEST_CODE code,
void * arg,
int state,
const char * caller_file,
const int caller_line
)
function fi_test_on¶
function fi_thread_final¶
function fi_thread_init¶
Public Static Functions Documentation¶
function fi_code_item¶
function fi_handler_exit¶
static int fi_handler_exit (
THREAD_ENTRY * thread_p,
void * arg,
const char * caller_file,
const int caller_line
)
function fi_handler_hang¶
static int fi_handler_hang (
THREAD_ENTRY * thread_p,
void * arg,
const char * caller_file,
const int caller_line
)
function fi_handler_random_exit¶
static int fi_handler_random_exit (
THREAD_ENTRY * thread_p,
void * arg,
const char * caller_file,
const int caller_line
)
function fi_handler_random_fail¶
static int fi_handler_random_fail (
THREAD_ENTRY * thread_p,
void * arg,
const char * caller_file,
const int caller_line
)
The documentation for this class was generated from the following file cubrid/src/base/fault_injection.c