diff options
author | markj <markj@FreeBSD.org> | 2018-02-13 22:43:07 +0000 |
---|---|---|
committer | markj <markj@FreeBSD.org> | 2018-02-13 22:43:07 +0000 |
commit | e8f913f14fe3078cf047207036af4e7944e194b3 (patch) | |
tree | 6da56d1eca623df32cbe76d4eab0241adf58db92 /cddl/contrib/opensolaris/cmd/dtrace/test | |
parent | 680f34f59c45216292426191b2e013ba056e81c0 (diff) | |
download | FreeBSD-src-e8f913f14fe3078cf047207036af4e7944e194b3.zip FreeBSD-src-e8f913f14fe3078cf047207036af4e7944e194b3.tar.gz |
MFC r327888, r327972, r327973:
Add "jid" and "jailname" variables to DTrace.
Diffstat (limited to 'cddl/contrib/opensolaris/cmd/dtrace/test')
-rw-r--r-- | cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/safety/tst.jailname.d | 44 | ||||
-rw-r--r-- | cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/safety/tst.jid.d | 44 |
2 files changed, 88 insertions, 0 deletions
diff --git a/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/safety/tst.jailname.d b/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/safety/tst.jailname.d new file mode 100644 index 0000000..5256a10 --- /dev/null +++ b/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/safety/tst.jailname.d @@ -0,0 +1,44 @@ +/* + * This file and its contents are supplied under the terms of the + * Common Development and Distribution License ("CDDL"), version 1.0. + * You may only use this file in accordance with the terms version + * 1.0 of the CDDL. + * + * A full copy of the text of the CDDL should have accompanied this + * source. A copy of the CDDL is also available via the Internet at + * http://www.illumos.org/license/CDDL. + */ + +/* + * Copyright 2018 Domagoj Stolfa <domagoj.stolfa@cl.cam.ac.uk>. + * + * This software was developed by BAE Systems, the University of Cambridge + * Computer Laboratory, and Memorial University under DARPA/AFRL contract + * FA8650-15-C-7558 ("CADETS"), as part of the DARPA Transparent Computing + * (TC) research program. + * + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + +/* + * ASSERTION: + * collect jailname at every fbt probe and at every firing of a + * high-frequency profile probe + */ + +fbt::: +{ + @a[jailname] = count(); +} + +profile-4999hz +{ + @a[jailname] = count(); +} + +tick-1sec +/n++ == 10/ +{ + exit(0); +} diff --git a/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/safety/tst.jid.d b/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/safety/tst.jid.d new file mode 100644 index 0000000..034de93 --- /dev/null +++ b/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/safety/tst.jid.d @@ -0,0 +1,44 @@ +/* + * This file and its contents are supplied under the terms of the + * Common Development and Distribution License ("CDDL"), version 1.0. + * You may only use this file in accordance with the terms version + * 1.0 of the CDDL. + * + * A full copy of the text of the CDDL should have accompanied this + * source. A copy of the CDDL is also available via the Internet at + * http://www.illumos.org/license/CDDL. + */ + +/* + * Copyright 2018 Domagoj Stolfa <domagoj.stolfa@cl.cam.ac.uk>. + * + * This software was developed by BAE Systems, the University of Cambridge + * Computer Laboratory, and Memorial University under DARPA/AFRL contract + * FA8650-15-C-7558 ("CADETS"), as part of the DARPA Transparent Computing + * (TC) research program. + * + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + +/* + * ASSERTION: + * collect jid at every fbt probe and at every firing of a + * high-frequency profile probe + */ + +fbt::: +{ + @a[jid] = count(); +} + +profile-4999hz +{ + @a[jid] = count(); +} + +tick-1sec +/n++ == 10/ +{ + exit(0); +} |