1 /* SPDX-License-Identifier: BSD-3-Clause */
2 /* Copyright 2019-2020, Intel Corporation */
4 #ifndef CORE_FAULT_INJECTION
5 #define CORE_FAULT_INJECTION
13 enum pmem_allocation_type
{ PMEM_MALLOC
, PMEM_REALLOC
};
16 void core_inject_fault_at(enum pmem_allocation_type type
,
17 int nth
, const char *at
);
19 int core_fault_injection_enabled(void);
23 core_inject_fault_at(enum pmem_allocation_type type
, int nth
, const char *at
)
29 core_fault_injection_enabled(void)