Lines Matching defs:event

78 etm_send(fmd_hdl_t *hdl, fmd_xprt_t *xp, fmd_event_t *event, nvlist_t *nvl);
139 * overflowing FMD's event queue for ETM.
176 etm_debug_max_ev_cnt = -1; /* max allowed event count for debugging */
222 /* xid of last FMA_EVENT msg/event posted OK to FMD */
225 etm_xid_posted_sa = 0; /* xid of last ALERT msg/event posted OK to syslog */
231 etm_fma_resp_wait_time = 30; /* time (sec) wait for fma event resp */
293 /* ETM [dropped] FMA event counters */
420 /* ETM [dropped] FMA event counters */
460 "ETM msgs w/ invalid FMA event length" },
466 "ETM msgs w/ too many event lengths" },
500 "xport get event addrv API failures" },
557 etm_async_e_tid = NULL; /* thread id of io svc async event handler */
567 0 /* ev_lens, 0-termed, after 1 FMA event */
587 0, /* xid of last event posted to FMD */
608 etm_async_q_head = 0; /* ptr to cur head of async event queue */
611 etm_async_q_tail = 0; /* ptr to cur tail of async event queue */
614 etm_async_q_cur_len = 0; /* cur length (ele cnt) of async event queue */
618 /* max length (ele cnt) of async event queue */
622 /* nudges async event handler */
626 /* protects async event q */
662 * a single call to fmd_hdl_error() as it logs an FMA event
1021 uint32_t *lenp; /* ptr to FMA event length */
1093 /* get all FMA event lengths from the header */
1105 if ((n = etm_io_op(hdl, "bad io read on event len",
1232 * to the given connection appropriate for the given FMA event
1244 uint32_t *lenp; /* ptr to FMA event length */
1245 size_t evsz; /* packed FMA event size */
1248 /* allocate and populate the message header for 1 FMA event */
1281 /* indicate 1 FMA event, network encode its length, and 0-terminate */
1293 if ((n = etm_io_op(hdl, "bad io write on event hdr",
1306 * etm_post_to_fmd - post the given FMA event to FMD
1310 * caveats: the FMA event (evp) is freed by FMD,
1330 fmd_hdl_debug(hdl, "info: event %p post ok to FMD\n", evp);
1768 nvlist_t *evp = NULL; /* event pointer */
1770 char *buf; /* packed event pointer */
1777 /* the pointer to the packed event in the etm message */
1784 fmd_hdl_debug(hdl, "failed to unpack event(rc=%d)\n", err);
1865 * Idealy, we should use the hdr coming with the SP FMA event. Since fmdo_send
1867 * the SP FMA event hdr. Use the static hdr for packing ds msgs for fmdo_send
1870 * Design assumption: there is one FMA event per ds msg
1878 uint32_t *lenp; /* ptr to FMA event length */
1879 size_t evsz; /* packed FMA event size */
1907 /* indicate 1 FMA event, no network encoding, and 0-terminate */
2249 size_t evsz; /* FMA event size */
2254 nvlist_t *evp; /* ptr to unpacked FMA event */
2255 char *class; /* FMA event class */
2284 fmd_hdl_debug(hdl, "error: FMA event dropped: "
2310 fmd_hdl_debug(hdl, "info: event lengths %u sum %u\n",
2318 if ((n = etm_io_op(hdl, "FMA event dropped: "
2319 "bad io read on event bodies", conn, body_buf, body_sz,
2339 fmd_hdl_debug(hdl, "info: skipping dup FMA event post "
2345 /* unpack each FMA event and post it to FMD */
2354 fmd_hdl_error(hdl, "error: FMA event dropped: "
2355 "bad event body unpack errno %d\n", n);
2357 fmd_hdl_debug(hdl, "info: FMA event "
2377 fmd_hdl_debug(hdl, "info: FMA event %p "
2425 * post the fma event to the control fmd
2439 } /* foreach FMA event in the body buffer */
2951 * ldom event registration callback func
2956 ldom_event_handler(char *ldom_name, ldom_event_t event, ldom_cb_arg_t data)
2971 switch (event) {
2989 } /* switch (event) */
3032 "info: processing an async event type %d ds_hdl"
3227 * the event type. Do nothing here.
3264 "info: etm async event handler thread exiting\n");
3271 * the iosvc_msgp already has the packed msg, which is hdr + 1 fma event
3404 size_t fma_event_size; /* sizeof FMA event */
3432 * use FMA_EVENT buf as the maxlen, hdr+1 fma event.
3928 * etm_recv - receive an FMA event from FMD and transport it
3941 size_t buflen; /* size of packed FMA event */
3942 uint8_t *buf; /* tmp buffer for packed FMA event */
3953 fmd_hdl_error(hdl, "error: FMA event dropped: "
3954 "event size errno %d class %s\n", n, class);
3960 fmd_hdl_debug(hdl, "info: rcvd event %p from FMD\n", evp);
3975 fmd_hdl_debug(hdl, "warning: FMA event dropped: "
3976 "event %p cnt %llu > debug max %d\n", evp,
3983 /* allocate a buffer for the FMA event and nvlist pack it */
3988 * increment the ttl value if the event is from remote (a root domain)
4003 fmd_hdl_error(hdl, "error: FMA event dropped: "
4004 "event pack errno %d class %s\n", n, class);
4011 /* get vector of dst addrs and send the FMA event to each one */
4014 fmd_hdl_error(hdl, "error: FMA event dropped: "
4015 "bad event dst addrs errno %d\n", errno);
4026 if ((n = etm_conn_open(hdl, "FMA event dropped: "
4039 fmd_hdl_error(hdl, "error: FMA event dropped: "
4049 fmd_hdl_debug(hdl, "info: hdr xport write ok for event %p\n",
4054 if ((n = etm_io_op(hdl, "FMA event dropped: "
4055 "bad io write on event", conn,
4068 fmd_hdl_debug(hdl, "info: body xport write ok for event %p\n",
4073 (void) etm_conn_close(hdl, "bad conn close after event send",
4084 * etm_send - receive an FMA event from FMD and enQ it in the iosvc.Q.
4095 uint32_t pack_it; /* whether to pack/enq the event */
4216 } /* if async event handler thread was successfully created */