6384727 enhanced eversholt stats support failing in count() lookup
authorgavinm
Mon, 13 Feb 2006 12:42:44 -0800
changeset 1423 e76fb7b53aee
parent 1422 ce4773037fb7
child 1424 5c5bac715032
6384727 enhanced eversholt stats support failing in count() lookup
usr/src/cmd/fm/modules/common/eversholt/eval.c
--- a/usr/src/cmd/fm/modules/common/eversholt/eval.c	Mon Feb 13 11:54:12 2006 -0800
+++ b/usr/src/cmd/fm/modules/common/eversholt/eval.c	Mon Feb 13 12:42:44 2006 -0800
@@ -357,12 +357,16 @@
 		return (!platform_confcall(np, globals, croot, arrowp, valuep));
 	} else if (funcname == L_count) {
 		struct stats *statp;
+		struct istat_entry ent;
 
 		ASSERTinfo(np->t == T_EVENT, ptree_nodetype2str(np->t));
 
+		ent.ename = np->u.event.ename->u.name.s;
+		ent.ipath = ipath(np->u.event.epname);
+
 		valuep->t = UINT64;
 		if ((statp = (struct stats *)
-		    lut_lookup(Istats, np, (lut_cmp)istat_cmp)) == NULL)
+		    lut_lookup(Istats, &ent, (lut_cmp)istat_cmp)) == NULL)
 			valuep->v = 0;
 		else
 			valuep->v = stats_counter_value(statp);