PERFORCE change 223024 for review
Robert Watson
rwatson at FreeBSD.org
Mon Mar 18 22:06:02 UTC 2013
http://p4web.freebsd.org/@@223024?ac=10
Change 223024 by rwatson at rwatson_cinnamon on 2013/03/18 22:05:05
Integrate "pass" notifications into kernel version of libtesla
for use with DTrace.
Affected files ...
.. //depot/projects/ctsrd/tesla/src/sys/libtesla/tesla_notification.c#2 integrate
Differences ...
==== //depot/projects/ctsrd/tesla/src/sys/libtesla/tesla_notification.c#2 (text+ko) ====
@@ -48,6 +48,12 @@
VERBOSE_PRINT("new %td: %tx\n",
tip - tcp->ts_table->tt_instances,
tip->ti_state);
+
+ /*
+ * XXXJA: convince self that we can never "pass" an assertion
+ * with an event that creates a new instance
+ */
+
break;
}
}
@@ -72,6 +78,10 @@
VERBOSE_PRINT("clone %td:%tx -> %tx\n",
tip - tcp->ts_table->tt_instances,
tip->ti_state, t->to);
+
+ if (t->flags & TESLA_TRANS_CLEANUP)
+ tesla_state_notify_pass(tcp, tip);
+
break;
}
}
@@ -97,6 +107,10 @@
VERBOSE_PRINT("update %td: %tx->%tx\n",
tip - tcp->ts_table->tt_instances,
t->from, t->to);
+
+ if (t->flags & TESLA_TRANS_CLEANUP)
+ tesla_state_notify_pass(tcp, tip);
+
break;
}
}
@@ -128,7 +142,8 @@
return;
default:
- /* for now, don't do anything */
+ VERBOSE_PRINT("pass '%s': %td\n", tcp->ts_name,
+ tip - tcp->ts_table->tt_instances);
break;
}
}
More information about the p4-projects
mailing list