changeset 10573:a950fee27362

6850870 constant ereport.cpu.ultraSPARC-T2.dsc events on T2 platform cause fmd to grow 2-8 MB per day
author Karl Davis <Karl.Davis@Sun.COM>
date Thu, 17 Sep 2009 10:27:14 -0700
parents e1b76e0de5ea
children c8621ef15d56
files usr/src/cmd/fm/modules/sun4v/cpumem-diagnosis/cmd_memerr_arch.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/cmd/fm/modules/sun4v/cpumem-diagnosis/cmd_memerr_arch.c	Thu Sep 17 08:42:57 2009 -0600
+++ b/usr/src/cmd/fm/modules/sun4v/cpumem-diagnosis/cmd_memerr_arch.c	Thu Sep 17 10:27:14 2009 -0700
@@ -19,7 +19,7 @@
  * CDDL HEADER END
  */
 /*
- * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
+ * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
 
@@ -292,8 +292,9 @@
 cmd_ce(fmd_hdl_t *hdl, fmd_event_t *ep, nvlist_t *nvl, const char *class,
     cmd_errcl_t clcode)
 {
-	if (strcmp(class, "ereport.cpu.ultraSPARC-T2plus.dsc") == 0)
-		return (CMD_EVD_UNUSED); /* drop VF dsc's */
+	if ((strcmp(class, "ereport.cpu.ultraSPARC-T2plus.dsc") == 0) ||
+	    (strcmp(class, "ereport.cpu.ultraSPARC-T2.dsc") == 0))
+		return (CMD_EVD_UNUSED); /* drop T2/T2+ dsc's */
 	else
 		return (xe_common(hdl, ep, nvl, class, clcode, cmd_ce_common));
 }