Motr
M0
|
Go to the source code of this file.
Macros | |
#define | __MOTR_IEM_H__ |
#define | M0_MOTR_IEM(_sev_id, _mod_id, _evt_id) |
#define | M0_MOTR_IEM_DESC(_sev_id, _mod_id, _evt_id, _desc, ...) |
Functions | |
void | m0_iem (const char *file, const char *function, int line, const enum m0_motr_iem_severity sev_id, const enum m0_motr_iem_module mod_id, const enum m0_motr_iem_event evt_id, const char *desc,...) |
#define M0_MOTR_IEM | ( | _sev_id, | |
_mod_id, | |||
_evt_id | |||
) |
#define M0_MOTR_IEM_DESC | ( | _sev_id, | |
_mod_id, | |||
_evt_id, | |||
_desc, | |||
... | |||
) |
enum m0_motr_iem_event |
enum m0_motr_iem_module |
The members of enum m0_motr_iem_module and enum m0_motr_iem_event are mapped against the file [low-level/files/iec_mapping/motr] in the sspl repo https://github.com/Seagate/cortx-sspl
Field description of the mpping file is available in slide 11 of the "RAS IEM Alerts" document
0020010001,TestIEM,Motr test IEM 002 is component id, 001 is module id and 0001 is event id
As per "RAS IEM Alerts" document, Other teams inform RAS team about a new IEMs. RAS team will add new IEMs to this file. File will be local to SSPL and may be a part of repo.
Any new entry to these enums must also be updated to the mapping file as well.
Enumerator | |
---|---|
M0_MOTR_IEM_MODULE_TEST | |
M0_MOTR_IEM_MODULE_IO | |
M0_MOTR_IEM_MODULE_OS |
enum m0_motr_iem_severity |
void m0_iem | ( | const char * | file, |
const char * | function, | ||
int | line, | ||
const enum m0_motr_iem_severity | sev_id, | ||
const enum m0_motr_iem_module | mod_id, | ||
const enum m0_motr_iem_event | evt_id, | ||
const char * | desc, | ||
... | |||
) |
The function must be called with appropriate parameters using the macros M0_MOTR_IEM() & M0_MOTR_IEM_DESC() to send an IEM alert. This IEM is throttled by a simple throttling scheme. The throttling scheme is the maximum number of IEM alerts for the defined interval.
file | from where m0_iem is called, use FILE |
function | from where m0_iem is called, use FUNCTION |
line | from where m0_iem is called, use LINE |
sev_id | a valid value from enum m0_motr_iem_severity |
mod_id | a valid value from enum m0_motr_iem_module |
evt_id | a valid value from enum m0_motr_iem_event |
desc | a string description with variable args. Can be NULL, max (512-1) bytes in length. |
Definition at line 58 of file iem.c.