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.
39 printf("called foo\n");
43 if ! gcc
-m32 -fPIC -shared -o libføo.so libfoo.c
-lc ; then
44 print
-u 2 "failed to compile libfoo in $DIR"
49 if ! gcc
-m32 -o foo foo.c
-lføo
-L.
; then
50 print
-u 2 "failed to compile foo in $DIR"
54 export LD_LIBRARY_PATH
=`pwd`
56 if ! dtrace
-n 'pid$target:libf*::entry{printf("probemod: %s\n", probemod)}' \
58 print
-u 2 "dtrace failed in $DIR"