3 # This file and its contents are supplied under the terms of the
4 # Common Development and Distribution License ("CDDL"), version 1.0.
5 # You may only use this file in accordance with the terms of version
8 # A full copy of the text of the CDDL should have accompanied this
9 # source. A copy of the CDDL is also available via the Internet at
10 # http://www.illumos.org/license/CDDL.
14 # Copyright (c) 2013 Joyent, Inc. All rights reserved.
37 if ! gcc
-m32 -S -o foo.orig.s foo.c
; then
38 print
-u 2 "failed to compile foo in $DIR"
43 # There's the right way, the wrong way, and the Max Power way!
45 cat foo.orig.s |
sed 's/foo/foø/g' > foo.s
48 if ! dtrace
-n 'pid$target:a.out:f*:entry{printf("probefunc: %s\n", \
49 probefunc)}' -qc .
/foo
; then
50 print
-u 2 "dtrace failed in $DIR"