#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include "librtasevent.h"
#include "rtas_event.h"
Functions | |
| int | print_v6_hdr (char *name, struct rtas_v6_hdr *v6hdr, int verbosity) |
| print the generic version 6 section header | |
| int | parse_priv_hdr_scn (struct rtas_event *re) |
| struct rtas_priv_hdr_scn * | rtas_get_priv_hdr_scn (struct rtas_event *re) |
| retrieve the Private Header section of an RTAS Event | |
| int | print_re_priv_hdr_scn (struct scn_header *shdr, int verbosity) |
| print the RTAS private header section | |
| int | parse_usr_hdr_scn (struct rtas_event *re) |
| struct rtas_usr_hdr_scn * | rtas_get_usr_hdr_scn (struct rtas_event *re) |
| retrieve the User Header section for an RTAS event. | |
| int | print_usr_hdr_subsystem_id (struct rtas_usr_hdr_scn *usrhdr) |
| Print the subsystem id from the Main B section. | |
| int | print_usr_hdr_event_data (struct rtas_usr_hdr_scn *usrhdr) |
| print the RTAS User Header section type data | |
| int | print_usr_hdr_action (struct rtas_usr_hdr_scn *usrhdr) |
| print the RTAS User Header Section action data | |
| int | print_re_usr_hdr_scn (struct scn_header *shdr, int verbosity) |
| print the contents of a RTAS User Header section | |
| void | parse_mtms (struct rtas_event *re, struct rtas_mtms *mtms) |
| int | print_mtms (struct rtas_mtms *mtms) |
| int | parse_mt_scn (struct rtas_event *re) |
| struct rtas_mt_scn * | rtas_get_mt_scn (struct rtas_event *re) |
| retrieve the Failing Enclosure (MTMS) section of an RTAS Event | |
| int | print_re_mt_scn (struct scn_header *shdr, int verbosity) |
| print the contents of a Machine Type section | |
| int | parse_generic_v6_scn (struct rtas_event *re) |
| int | print_re_generic_scn (struct scn_header *shdr, int verbosity) |
Variables | |
| static char * | months [] |
| array of month strings | |
| int parse_generic_v6_scn | ( | struct rtas_event * | re | ) |
parse_generic_v6_scn
References add_re_scn(), rtas_v6_generic::data, rtas_v6_hdr::length, rtas_event::offset, scn_header::raw_offset, RE_SHDR_OFFSET, rtas_copy(), RTAS_GENERIC_SCN, rtas_v6_generic::shdr, and rtas_v6_generic::v6hdr.
Referenced by parse_v6_rtas_event().
| int parse_mt_scn | ( | struct rtas_event * | re | ) |
parse_mt_scn
References add_re_scn(), rtas_mt_scn::mtms, rtas_event::offset, parse_mtms(), scn_header::raw_offset, RE_SHDR_OFFSET, rtas_copy(), RTAS_MT_SCN, and rtas_mt_scn::shdr.
Referenced by parse_v6_rtas_event().
| void parse_mtms | ( | struct rtas_event * | re, | |
| struct rtas_mtms * | mtms | |||
| ) |
parse_mtms
References rtas_mtms::model, rtas_copy(), and rtas_mtms::serial_no.
Referenced by parse_mt_scn().
| int parse_priv_hdr_scn | ( | struct rtas_event * | re | ) |
parse_main_a_scn
References add_re_scn(), rtas_priv_hdr_scn::creator_id, rtas_priv_hdr_scn::creator_subid_hi, rtas_priv_hdr_scn::creator_subid_name, rtas_event::offset, scn_header::raw_offset, RE_SHDR_OFFSET, rtas_copy(), RTAS_PH_CREAT_SERVICE_PROC, RTAS_PRIV_HDR_SCN, and rtas_priv_hdr_scn::shdr.
Referenced by parse_v6_rtas_event().
| int parse_usr_hdr_scn | ( | struct rtas_event * | re | ) |
parse_usr_hdr_scn
References add_re_scn(), rtas_event::offset, scn_header::raw_offset, RE_SHDR_OFFSET, RE_USR_HDR_SCN_SZ, rtas_copy(), RTAS_USR_HDR_SCN, and rtas_usr_hdr_scn::shdr.
Referenced by parse_v6_rtas_event().
| int print_mtms | ( | struct rtas_mtms * | mtms | ) |
print_mtms
References rtas_mtms::model, rtas_print(), and rtas_mtms::serial_no.
Referenced by print_fru_pe_scn(), and print_re_mt_scn().
| int print_re_generic_scn | ( | struct scn_header * | shdr, | |
| int | verbosity | |||
| ) |
print_re_generic_scn
References rtas_v6_generic::data, rtas_v6_hdr::length, print_raw_data(), print_v6_hdr(), RTAS_GENERIC_SCN, rtas_print(), scn_header::scn_id, and rtas_v6_generic::v6hdr.
| int print_re_mt_scn | ( | struct scn_header * | shdr, | |
| int | verbosity | |||
| ) |
print_re_mt_scn
| res | rtas_event_scn pointer for mtms section | |
| verbosity | verbose level of output |
References rtas_mt_scn::mtms, print_mtms(), print_v6_hdr(), RTAS_MT_SCN, rtas_print(), scn_header::scn_id, and rtas_mt_scn::v6hdr.
| int print_re_priv_hdr_scn | ( | struct scn_header * | shdr, | |
| int | verbosity | |||
| ) |
print_re_priv_hdr_scn
| res | rtas_event_scn pointer to main a section | |
| verbosity | verbose level of output |
References rtas_priv_hdr_scn::creator_id, rtas_priv_hdr_scn::creator_subid_hi, rtas_priv_hdr_scn::creator_subid_lo, rtas_priv_hdr_scn::creator_subid_name, rtas_priv_hdr_scn::date, rtas_date::day, rtas_time::hour, rtas_time::hundredths, rtas_priv_hdr_scn::log_entry_id, rtas_time::minutes, rtas_date::month, months, rtas_priv_hdr_scn::plid, print_v6_hdr(), PRNT_FMT_2, PRNT_FMT_R, rtas_print(), RTAS_PRIV_HDR_SCN, rtas_priv_hdr_scn::scn_count, scn_header::scn_id, rtas_time::seconds, rtas_priv_hdr_scn::time, rtas_priv_hdr_scn::v6hdr, and rtas_date::year.
| int print_re_usr_hdr_scn | ( | struct scn_header * | shdr, | |
| int | verbosity | |||
| ) |
print_re_usr_hdr_scn
| res | rtas_event_scn ponter | |
| verbosity | verbose level of ouput |
References print_usr_hdr_action(), print_usr_hdr_event_data(), print_usr_hdr_subsystem_id(), print_v6_hdr(), rtas_print(), RTAS_USR_HDR_SCN, scn_header::scn_id, and rtas_usr_hdr_scn::v6hdr.
| int print_usr_hdr_action | ( | struct rtas_usr_hdr_scn * | usrhdr | ) |
print_usr_hdr_action
| mainb | rtas_v6_us_hdr_scn pointer |
References rtas_usr_hdr_scn::action, PRNT_FMT, and rtas_print().
Referenced by print_re_usr_hdr_scn().
| int print_usr_hdr_event_data | ( | struct rtas_usr_hdr_scn * | usrhdr | ) |
print_usr_hdr_event
| mainb | rtas_usr_hdr_scn pointer |
References rtas_usr_hdr_scn::event_data, rtas_usr_hdr_scn::event_severity, rtas_usr_hdr_scn::event_type, PRNT_FMT_R, and rtas_print().
Referenced by print_re_usr_hdr_scn().
| int print_usr_hdr_subsystem_id | ( | struct rtas_usr_hdr_scn * | usrhdr | ) |
print_usr_hdr_subsystem_id
| mainb | rtas_v6_main_b_scn pointer |
References PRNT_FMT, rtas_print(), and rtas_usr_hdr_scn::subsystem_id.
Referenced by print_re_usr_hdr_scn().
| int print_v6_hdr | ( | char * | name, | |
| struct rtas_v6_hdr * | v6hdr, | |||
| int | verbosity | |||
| ) |
print_v6_scn_hdr
| name | section name | |
| shdr | rtas_v6_scn_hdr pointer | |
| verbosity | verbose level of output |
References rtas_v6_hdr::creator_comp_id, rtas_v6_hdr::id, rtas_v6_hdr::length, print_scn_title(), PRNT_FMT_2, PRNT_FMT_R, rtas_print(), rtas_v6_hdr::subtype, and rtas_v6_hdr::version.
Referenced by print_re_dump_scn(), print_re_generic_scn(), print_re_lri_scn(), print_re_mt_scn(), print_re_priv_hdr_scn(), print_re_src_scn(), print_re_usr_hdr_scn(), print_v6_epow(), and print_v6_io().
| struct rtas_mt_scn* rtas_get_mt_scn | ( | struct rtas_event * | re | ) | [read] |
rtas_get_mtms_scn
| re | rtas_event pointer |
References get_re_scn(), and RTAS_MT_SCN.
| struct rtas_priv_hdr_scn* rtas_get_priv_hdr_scn | ( | struct rtas_event * | re | ) | [read] |
rtas_get_priv_hdr_scn
| re | rtas_event pointer |
References get_re_scn(), and RTAS_PRIV_HDR_SCN.
| struct rtas_usr_hdr_scn* rtas_get_usr_hdr_scn | ( | struct rtas_event * | re | ) | [read] |
rtas_rtas_usr_hdr_scn
| re | rtas_event pointer |
References get_re_scn(), and RTAS_USR_HDR_SCN.
char* months[] [static] |
Initial value:
{"", "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul",
"Aug", "Sep", "", "", "", "", "", "", "Oct", "Nov",
"Dec"}
Referenced by print_re_priv_hdr_scn().
1.5.5