Date: Mon, 18 Mar 2013 22:06:01 GMT From: Robert Watson <rwatson@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 223024 for review Message-ID: <201303182206.r2IM61KD045665@skunkworks.freebsd.org>
index | next in thread | raw e-mail
http://p4web.freebsd.org/@@223024?ac=10 Change 223024 by rwatson@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; } }help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201303182206.r2IM61KD045665>
