ppc64-diag
|
#include <stdio.h>
#include <malloc.h>
#include <string.h>
#include <time.h>
#include <librtasevent.h>
#include <sys/types.h>
#include "rtas_errd.h"
#include "ela_msg.h"
#include "dchrp.h"
Macros | |
#define | V6_ERROR_MSG 0 |
#define | V6_EVENT_MSG 1 |
#define | NUM_SUBID 12 |
#define | NUM_SEVERITY 14 |
#define | NUM_SUBTYPE 14 |
#define | DISPLAY_SRC_SIZE 8 /* Display 8 digits of the SRC */ |
Functions | |
char * | get_message_id (int type, struct rtas_usr_hdr_scn *usrhdr) |
static int | report_src (struct event *event, struct rtas_priv_hdr_scn *privhdr, struct rtas_usr_hdr_scn *usrhdr) |
Create the servicelog entry for a v6 event. More... | |
static void | report_menugoal (struct event *event, struct rtas_priv_hdr_scn *privhdr, struct rtas_usr_hdr_scn *usrhdr) |
int | process_v6 (struct event *event) |
Variables | |
char * | v6_error [NUM_SUBID][NUM_SEVERITY] |
char * | v6_event [NUM_SUBID][NUM_SUBTYPE] |
Copyright (C) 2005, 2008 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 DISPLAY_SRC_SIZE 8 /* Display 8 digits of the SRC */ |
report_menugoal
FUNCTION: Report a menugoal from the V6 log data passed as input. The input data must be analyzed to determine which menugoal is used. If the log data contains an SRC and a FRU list, they are included in the menugoal if the log data indicates an error instead of an event.
RETURNS: Nothing.
Referenced by report_menugoal().
#define NUM_SEVERITY 14 |
Referenced by get_message_id().
#define NUM_SUBID 12 |
#define NUM_SUBTYPE 14 |
Referenced by get_message_id().
#define V6_ERROR_MSG 0 |
Referenced by get_message_id(), report_menugoal(), and report_src().
#define V6_EVENT_MSG 1 |
Referenced by report_menugoal().
char* get_message_id | ( | int | type, |
struct rtas_usr_hdr_scn * | usrhdr | ||
) |
get_message_id
FUNCTION: Look up the message id for the given message type and UH section. From the UH section, the subsystem id and either the error severity or the event subtype is used to find the message id.
RETURNS: the message id for the dchrp.msg file
References NUM_SEVERITY, NUM_SUBTYPE, v6_error, V6_ERROR_MSG, v6_event, V6_INVALID_SUBID, and V6_RESERVED_SUBID.
Referenced by report_menugoal(), and report_src().
int process_v6 | ( | struct event * | event | ) |
References dbg, event::event_buf, get_event_date(), event::length, log_msg(), report_menugoal(), report_src(), event::rtas_event, event::rtas_hdr, servicelog_sev(), and event::sl_entry.
Referenced by handle_rtas_event().
|
static |
References dbg, DISPLAY_SRC_SIZE, get_message_id(), log_msg(), MAX_MENUGOAL_SIZE, msg(), MSGMENUG157, MSGMENUG159, MSGMENUG161, MSGMENUG203, MSGMENUG205, MSGMENUG206, MSGMENUG_CCIN, MSGMENUG_CFG, MSGMENUG_CODEFRU, MSGMENUG_EXT_CODEFRU, MSGMENUG_EXT_FRU, MSGMENUG_FRU, MSGMENUG_LOCATION, MSGMENUG_MAINT, MSGMENUG_PRIORITY, MSGMENUG_RESERVED, MSGMENUG_SERIAL, MSGMENUG_SRC, MSGMENUG_SYM_FRU, MSGMENUG_TOOL_FRU, MSGMENUGPEL_ERROR, MSGMENUGPEL_EVENT, event::rtas_event, event::sl_entry, V6_ERROR_MSG, and V6_EVENT_MSG.
Referenced by process_v6().
|
static |
report_src
References add_callout(), get_message_id(), log_msg(), msg(), event::rtas_event, event::sl_entry, and V6_ERROR_MSG.
Referenced by process_v6().
char* v6_error[NUM_SUBID][NUM_SEVERITY] |
Referenced by get_message_id().
char* v6_event[NUM_SUBID][NUM_SUBTYPE] |
Referenced by get_message_id().