8322 nl: misleading-indentation
[unleashed/tickless.git] / usr / src / cmd / dtrace / test / tst / common / uctf / tst.linkmap.ksh
blobf767def53de82d42b0bfdbd527266c2dac67768a
1 #! /usr/bin/ksh
4 # This file and its contents are supplied under the terms of the
5 # Common Development and Distribution License ("CDDL"), version 1.0.
6 # You may only use this file in accordance with the terms of version
7 # 1.0 of the CDDL.
9 # A full copy of the text of the CDDL should have accompanied this
10 # source. A copy of the CDDL is also available via the Internet at
11 # http://www.illumos.org/license/CDDL.
15 # Copyright (c) 2013 Joyent, Inc. All rights reserved.
19 # We should be able to see both strstr from libc and from ld on an
20 # alternate linkmap.
23 if [ $# != 1 ]; then
24 echo expected one argument: '<'dtrace-path'>'
25 exit 2
28 dtrace=$1
30 $dtrace -q -p $$ -s /dev/stdin <<EOF
31 pid\$target:LM1\`ld.so.1:strstr:entry,
32 pid\$target:libc.so.1:strstr:entry
34 exit (0);
37 BEGIN
39 exit (0);
41 EOF
42 rc=$?
44 exit $rc