diff options
author | Mike Jones <mjjones@us.ibm.com> | 2012-03-12 10:12:01 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2012-03-16 09:13:39 -0500 |
commit | 8a1168142bd3f273dbd4edf841c53a3ae394cd5e (patch) | |
tree | 94029d881fa5b89d186073859c7de2fd6dcdfcb8 /src/usr/initservice/baseinitsvc | |
parent | ff8472f5e338d17194b5a1300b9553dd1ac3a241 (diff) | |
download | blackbird-hostboot-8a1168142bd3f273dbd4edf841c53a3ae394cd5e.tar.gz blackbird-hostboot-8a1168142bd3f273dbd4edf841c53a3ae394cd5e.zip |
ERRL: Ensure all Hostboot code uses ErrlUserDetails framework.
RTC: 36920
Change-Id: I82667c8e63e8a99b9cc7eb1dfbbbdbe1c3b2bb2a
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/730
Tested-by: Jenkins Server
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/initservice/baseinitsvc')
-rw-r--r-- | src/usr/initservice/baseinitsvc/initservice.C | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/usr/initservice/baseinitsvc/initservice.C b/src/usr/initservice/baseinitsvc/initservice.C index 0dc75b45c..ed4191e87 100644 --- a/src/usr/initservice/baseinitsvc/initservice.C +++ b/src/usr/initservice/baseinitsvc/initservice.C @@ -43,6 +43,8 @@ #include <sys/mm.h> #include <vmmconst.h> +#include <errl/errludstring.H> + #include "initservice.H" #include "initsvctasks.H" @@ -91,6 +93,9 @@ errlHndl_t InitService::startTask( const TaskInfo *i_ptask, if ( static_cast<int16_t> (l_tidrc) < 0 ) { // task failed to launch, post an errorlog and dump some trace + TRACFCOMP(g_trac_initsvc, "ERROR: starting task '%s'", + i_ptask->taskname); + /*@ errorlog tag * @errortype ERRL_SEV_CRITICAL_SYS_TERM * @moduleid INITSVC_START_TASK_MOD_ID @@ -107,6 +112,9 @@ errlHndl_t InitService::startTask( const TaskInfo *i_ptask, INITSERVICE::START_TASK_FAILED, i_ptask->taskflags.module_id, l_tidrc ); + + // Add the task name as user detail data + ERRORLOG::ErrlUserDetailsString(i_ptask->taskname).addToLog(l_errl); } // endif tidrc else { @@ -142,6 +150,9 @@ errlHndl_t InitService::executeFn( const TaskInfo *i_ptask, l_tidrc = task_create( i_ptask->taskfn, io_pargs); if (static_cast<int16_t> (l_tidrc) < 0) { + TRACFCOMP(g_trac_initsvc, "ERROR: starting function in task'%s'", + i_ptask->taskname); + /*@ errorlog tag * @errortype ERRL_SEV_CRITICAL_SYS_TERM * @moduleid INITSVC_START_FN_MOD_ID @@ -160,6 +171,8 @@ errlHndl_t InitService::executeFn( const TaskInfo *i_ptask, i_ptask->taskflags.module_id, l_tidrc ); + // Add the task name as user detail data + ERRORLOG::ErrlUserDetailsString(i_ptask->taskname).addToLog(l_errl); } // endif tidrc else { @@ -312,7 +325,7 @@ void InitService::init( void *io_ptr ) if ( l_childrc != 0 ) { TRACFCOMP( g_trac_initsvc, - "IS: Child task %s returned 0x%llx, no errlog", + "ERROR: Child task '%s' returned 0x%llx, no errlog", l_ptask->taskname, l_childrc ); @@ -413,6 +426,7 @@ void InitService::doShutdown(uint64_t i_status) l_rc = mm_remove_pages(FLUSH,(*l_rb_iter)->vaddr,(*l_rb_iter)->size); if (l_rc) { + TRACFCOMP(g_trac_initsvc, "ERROR: flushing virtual memory"); /* * @errorlog tag * @errortype ERRL_SEV_CRITICAL_SYS_TERM |