1 /*
2  * This file and its contents are supplied under the terms of the
3  * Common Development and Distribution License ("CDDL"), version 1.0.
4  * You may only use this file in accordance with the terms version
5  * 1.0 of the CDDL.
6  *
7  * A full copy of the text of the CDDL should have accompanied this
8  * source.  A copy of the CDDL is also available via the Internet at
9  * http://www.illumos.org/license/CDDL.
10  */
11 
12 /*
13  * Copyright 2018 Domagoj Stolfa <domagoj.stolfa@cl.cam.ac.uk>.
14  *
15  * This software was developed by BAE Systems, the University of Cambridge
16  * Computer Laboratory, and Memorial University under DARPA/AFRL contract
17  * FA8650-15-C-7558 ("CADETS"), as part of the DARPA Transparent Computing
18  * (TC) research program.
19  *
20  */
21 
22 #pragma ident	"%Z%%M%	%I%	%E% SMI"
23 
24 /*
25  * ASSERTION:
26  * 	collect jailname at every fbt probe and at every firing of a
27  *	high-frequency profile probe
28  */
29 
30 fbt:::
31 {
32 	@a[jailname] = count();
33 }
34 
35 profile-4999hz
36 {
37 	@a[jailname] = count();
38 }
39 
40 tick-1sec
41 /n++ == 10/
42 {
43 	exit(0);
44 }
45