[DTrace-devel] [PATCH 13/14] Test: caller and stackdepth tests for io provider
Nick Alcock
nick.alcock at oracle.com
Fri Jun 13 14:56:36 UTC 2025
On 22 May 2025, eugene loh spake thusly:
> From: Eugene Loh <eugene.loh at oracle.com>
>
> Signed-off-by: Eugene Loh <eugene.loh at oracle.com>
Reviewed-by: Nick Alcock <nick.alcock at oracle.com>
> --- /dev/null
> +++ b/test/unittest/variables/bvar/tst.caller-io.sh
> @@ -0,0 +1,37 @@
> +#!/bin/bash
> +#
> +# Oracle Linux DTrace.
> +# Copyright (c) 2025, Oracle and/or its affiliates. All rights reserved.
> +# Licensed under the Universal Permissive License v 1.0 as shown at
> +# http://oss.oracle.com/licenses/upl.
> +
> +dtrace=$1
> +nblocks=1024
> +filesize=$((1024*$nblocks))
> +fsoptions="defaults,atime,diratime,nosuid,nodev"
> +iodir=$tmpdir/tst-caller-io.$$
> +tempfile=`mktemp -u -p $iodir`
> +
> +trap "umount $iodir; rmdir $iodir; rm -f $iodir.img" QUIT EXIT
> +
> +# create loopback file system
We have quite a lot of these I/O-trigger filesystem things now (this is
our sixth and seventh). Maybe we should think about refactoring the
mount-and-mkfs-and-dd-and-umount bit out into shared code at some
point...
--
NULL && (void)
More information about the DTrace-devel
mailing list