ppc64-diag
Macros | Functions | Variables
v6ela.c File Reference
#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]
 

Detailed Description

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.

Macro Definition Documentation

#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
#define V6_EVENT_MSG   1

Referenced by report_menugoal().

Function Documentation

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)
static void report_menugoal ( struct event event,
struct rtas_priv_hdr_scn *  privhdr,
struct rtas_usr_hdr_scn *  usrhdr 
)
static
static int report_src ( struct event event,
struct rtas_priv_hdr_scn *  privhdr,
struct rtas_usr_hdr_scn *  usrhdr 
)
static

report_src

Returns
0 on success

References add_callout(), get_message_id(), log_msg(), msg(), event::rtas_event, event::sl_entry, and V6_ERROR_MSG.

Referenced by process_v6().

Variable Documentation

char* v6_error[NUM_SUBID][NUM_SEVERITY]

Referenced by get_message_id().

char* v6_event[NUM_SUBID][NUM_SUBTYPE]

Referenced by get_message_id().