|
ppc64-diag
|
Routines for inserting records into the servicelog database. More...
#include <stdio.h>#include <stdlib.h>#include <unistd.h>#include <string.h>#include <stdint.h>#include <errno.h>#include <time.h>#include <librtasevent.h>#include <sys/wait.h>#include "rtas_errd.h"Macros | |
| #define | bcd_4b_toint(x) |
| #define | bcd_2b_toint(x) |
Functions | |
| time_t | get_event_date (struct event *event) |
| Retrieve the timestamp from an event. More... | |
| int | servicelog_sev (int rtas_sev) |
| convert RTAS severity to servicelog severity More... | |
| void | add_callout (struct event *event, char pri, int type, char *proc, char *loc, char *pn, char *sn, char *ccin) |
| Add a new FRU callout to the list for this event. More... | |
| void | log_event (struct event *event) |
| log the event in the servicelog DB More... | |
Copyright (C) 2005 IBM Corporation
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
| #define bcd_2b_toint | ( | x | ) |
Referenced by get_event_date().
| #define bcd_4b_toint | ( | x | ) |
Referenced by get_event_date().
| void add_callout | ( | struct event * | event, |
| char | pri, | ||
| int | type, | ||
| char * | proc, | ||
| char * | loc, | ||
| char * | pn, | ||
| char * | sn, | ||
| char * | ccin | ||
| ) |
add_callout
| event | event to which to add the callout |
| pri | priority |
| type | type |
| proc | procedure ID |
| loc | location code |
| pn | FRU part number |
| sn | FRU serial number |
| ccin | FRU ccin |
References log_msg().
Referenced by add_more_descrs(), report_src(), and set_srn_and_callouts().
| time_t get_event_date | ( | struct event * | event | ) |
get_event_date
| event | the event from which to retrieve the timestamp |
References bcd_2b_toint, bcd_4b_toint, log_msg(), event::rtas_event, and event::rtas_hdr.
Referenced by process_pre_v6(), and process_v6().
| void log_event | ( | struct event * | event | ) |
log_event
| event | RTAS event structure |
References event::addl_text, ADDL_TEXT_MAX, d_cfg, event::flags, log_msg(), ppc64_diag_config::platform_dump_path, RE_PLATDUMP_AVAIL, event::rtas_event, event::sl_entry, and slog.
Referenced by handle_rtas_event().
| int servicelog_sev | ( | int | rtas_sev | ) |
servicelog_sev
| rtas_sev | RTAS severity to be converted |
Referenced by process_pre_v6(), and process_v6().
1.8.13