tst.newprobes.ksh (178477) | tst.newprobes.ksh (249367) |
---|---|
1#!/bin/ksh -p 2# 3# CDDL HEADER START 4# 5# The contents of this file are subject to the terms of the 6# Common Development and Distribution License (the "License"). 7# You may not use this file except in compliance with the License. 8# --- 10 unchanged lines hidden (view full) --- 19# 20# CDDL HEADER END 21# 22 23# 24# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 25# Use is subject to license terms. 26# | 1#!/bin/ksh -p 2# 3# CDDL HEADER START 4# 5# The contents of this file are subject to the terms of the 6# Common Development and Distribution License (the "License"). 7# You may not use this file except in compliance with the License. 8# --- 10 unchanged lines hidden (view full) --- 19# 20# CDDL HEADER END 21# 22 23# 24# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 25# Use is subject to license terms. 26# |
27# ident "%Z%%M% %I% %E% SMI" | 27 |
28# | 28# |
29# Copyright (c) 2012 by Delphix. All rights reserved. 30# |
|
29 30if [ $# != 1 ]; then 31 echo expected one argument: '<'dtrace-path'>' 32 exit 2 33fi 34 35dtrace=$1 36 --- 7 unchanged lines hidden (view full) --- 44/i++ > 5/ 45{ 46 exit(0); 47} 48 49tick-1s 50/(i % 2) == 0/ 51{ | 31 32if [ $# != 1 ]; then 33 echo expected one argument: '<'dtrace-path'>' 34 exit 2 35fi 36 37dtrace=$1 38 --- 7 unchanged lines hidden (view full) --- 46/i++ > 5/ 47{ 48 exit(0); 49} 50 51tick-1s 52/(i % 2) == 0/ 53{ |
52 system("dtrace -c date -ln 'pid\$target::main:entry' >/dev/null"); | 54 system("dtrace -c date -n 'pid\$target::main:entry' >/dev/null"); |
53} 54 55tick-1s 56/(i % 2) == 1/ 57{ | 55} 56 57tick-1s 58/(i % 2) == 1/ 59{ |
58 system("dtrace -c date -ln 'pid\$target::main:return' >/dev/null"); | 60 system("dtrace -c date -n 'pid\$target::main:return' >/dev/null"); |
59} 60EOF 61 62exit $status | 61} 62EOF 63 64exit $status |