f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby * CDDL HEADER START
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby * The contents of this file are subject to the terms of the
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby * Common Development and Distribution License (the "License").
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby * You may not use this file except in compliance with the License.
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby * See the License for the specific language governing permissions
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby * and limitations under the License.
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby * When distributing Covered Code, include this CDDL HEADER in each
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby * If applicable, add the following below this CDDL HEADER, with the
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby * fields enclosed by brackets "[]" replaced with your own identifying
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby * information: Portions Copyright [yyyy] [name of copyright owner]
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby * CDDL HEADER END
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby * Post-processing according to the FMEV_RULESET_UNREGISTERED ruleset.
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby * Generate a class of ireport.unregistered.<raw-class>.<raw-subclass>
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby * with attributes just those of the raw event. If either the raw
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby * class or subclass is NULL or empty then drop the event.
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltbyfmevt_pp_unregistered(char *classes[FMEVT_FANOUT_MAX],
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby nvlist_t *attr[FMEVT_FANOUT_MAX], const char *ruleset,
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby if (eap->pp_rawclass == NULL || eap->pp_rawsubclass == NULL)
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin Maltby if (snprintf(classes[0], FMEVT_MAX_CLASS, "%s.%s.%s.%s",