/*
 * Oracle Linux DTrace.
 * Copyright (c) 2020, 2021, 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.
 */

/*
 * ASSERTION: The 'ustackdepth' variable can be accessed and is not -1.
 *
 * SECTION: Variables/Built-in Variables/ustackdepth
 */

#pragma D option quiet

BEGIN {
	trace(ustackdepth);
	exit(ustackdepth != -1 ? 0 : 1);
}

ERROR {
	exit(1);
}
