Lines Matching defs:fault
83 asr_add_de(topo_hdl_t *thp, nvlist_t *fault, int pad, asr_buf_t *out)
89 err = nvlist_lookup_nvlist(fault, FM_SUSPECT_DE, &de);
146 * Create hardware component for a manual fault.
161 return (asr_error(EASR_FM, "fault missing FRU name"));
200 nvlist_t *fault = faults[ii];
211 if (nvlist_lookup_string(fault, ASR_FLT_CLASS, &class) != 0)
214 fault, ASR_FLT_CERTAINTY, &certainty) != 0)
220 if (nvlist_lookup_nvlist(fault, FM_FAULT_ASRU, &asru) != 0)
223 fault, FM_FAULT_RESOURCE, &resource) != 0)
226 if (nvlist_lookup_nvlist(fault, FM_FAULT_FRU, &frunvl) != 0) {
227 /* This must be a service fault. */
233 err = asr_error(EASR_SC, "fault contained "
334 /* fault class: fault.cpu.intel.IOcache */
336 bp, pad, "fault", asr_nvl_str(fault, FM_CLASS));
339 fault, FM_FAULT_LOCATION, &hc_data) != 0)
411 * the dictionary information for the fault code.
456 asr_fault_addtime(nvlist_t *fault, char *timebuf, int tlen)
462 if (nvlist_lookup_int64_array(fault, FM_SUSPECT_DIAG_TIME, &tv, &tn)) {
472 return (asr_error(EASR_FM, "fault has bad diag time"));
477 * Creates an ASR event message or updates an FMA fault event.
480 do_asr_fault_msg(asr_handle_t *ah, nvlist_t *fault,
499 if (nvlist_lookup_string(fault, FM_SUSPECT_DIAG_CODE, &msgid) != 0)
500 return (asr_error(EASR_FM, "fault missing diag code"));
502 if (nvlist_lookup_string(fault, FM_SUSPECT_UUID, &uuid))
503 return (asr_error(EASR_FM, "fault missing uuid"));
505 asr_log_debug(ah, "Creating ASR fault message for UUID=%s", uuid);
507 if (asr_fault_addtime(fault, timebuf, sizeof (timebuf))) {
508 return (asr_error(EASR_FM, "fault missing diag time"));
514 items = asr_get_fmsg_items(fault);
546 fault, FM_SUSPECT_FAULT_LIST, &faults, &nfaults) != 0)
555 fault, FM_SUSPECT_CASE_STATE, &case_state) == 0) {
585 if (asr_fault_components(ah, buf, faults, nfaults, fault)) {
606 fault, FM_SUSPECT_DE, &de) == 0) {
622 if (nvlist_lookup_boolean_value(fault, FM_SUSPECT_INJECTED,
628 asr_nvl_tostringi(buf, fault, 1, '\'', " => ");
652 * Creates an ASR event message from an FMA fault event.
655 asr_fault(asr_handle_t *ah, nvlist_t *fault, asr_message_t **msg)
658 ah, fault, NULL, "event", "primary-event-information", msg));
662 * Creates an ASR event message that updates an FMA fault event.
668 asr_fault_update(asr_handle_t *ah, nvlist_t *fault, char *parent,
672 ah, fault, parent, "event-update", "child-event-information", msg));