fmevt_outbound.c revision f6e214c7418f43af38bd8c3a557e3d0a1d311cfa
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
*/
#include <strings.h>
#include <sys/sysevent.h>
#include "fmevt.h"
static evchan_t *fmevt_outbound_chan;
static struct fmevt_outbound_stats {
} outbound_stats = {
{ "outbound_recv_calls", FMD_TYPE_UINT64,
"total events received for forwarding" },
{ "outbound_cat1class_list", FMD_TYPE_UINT64,
"events received matching list.*" },
{ "outbound_cat1class_ireport", FMD_TYPE_UINT64,
"events received matching ireport.*" },
{ "outbound_cat1class_other", FMD_TYPE_UINT64,
"events of other classes" },
{ "outbound_fwd_success", FMD_TYPE_UINT64,
"events forwarded successfully" },
{ "outbound_fwd_failure", FMD_TYPE_UINT64,
"events we failed to forward" }
};
/*
* In the .conf file we subscribe to list.* and ireport.* event classes.
* Any additions to that set could cause some unexpected behaviour.
* For example adding fault.foo won't work (since we don't publish
* faults directly but only within a list.suspect) but we will get
* any list.* including fault.foo as a suspect.
*/
/*ARGSUSED*/
void
{
else
} else {
}
}
void
{
char *channel_name;
"through .conf file setting\n");
return;
}
/*
* Allow simulation environment to change outbound channel name.
*/
EVCH_CREAT | EVCH_HOLD_PEND_INDEF) != 0) {
return;
}
(uint32_t)channel_depth) != 0) {
}
}
/*ARGSUSED*/
void
{
if (fmevt_outbound_chan != NULL) {
(void) sysevent_evc_unbind(fmevt_outbound_chan);
}
}