tst.multibeginend.d revision 178476
1168054Sflz/* 2168054Sflz * CDDL HEADER START 3168054Sflz * 4168054Sflz * The contents of this file are subject to the terms of the 5168064Sflz * Common Development and Distribution License (the "License"). 6168064Sflz * You may not use this file except in compliance with the License. 7168064Sflz * 8168064Sflz * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9168064Sflz * or http://www.opensolaris.org/os/licensing. 10168064Sflz * See the License for the specific language governing permissions 11168064Sflz * and limitations under the License. 12168064Sflz * 13168064Sflz * When distributing Covered Code, include this CDDL HEADER in each 14168064Sflz * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15168064Sflz * If applicable, add the following below this CDDL HEADER, with the 16168064Sflz * fields enclosed by brackets "[]" replaced with your own identifying 17168064Sflz * information: Portions Copyright [yyyy] [name of copyright owner] 18168064Sflz * 19168054Sflz * CDDL HEADER END 20168054Sflz */ 21168064Sflz 22168054Sflz/* 23168188Sgabor * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 24168188Sgabor * Use is subject to license terms. 25168188Sgabor */ 26168263Sru 27168194Simp#pragma ident "%Z%%M% %I% %E% SMI" 28168188Sgabor 29168188Sgabor/* 30168188Sgabor * ASSERTION: 31168188Sgabor * Tests multiple END profile. 32168188Sgabor * 33168188Sgabor * SECTION: dtrace Provider 34168188Sgabor * 35168188Sgabor */ 36168202Sume 37168188Sgabor 38168188Sgabor#pragma D option quiet 39168202Sume 40168188SgaborEND 41168127Sdwmalone{ 42168054Sflz printf("End1 fired after exit\n"); 43168054Sflz} 44168054SflzEND 45168054Sflz{ 46168215Sache printf("End2 fired after exit\n"); 47168149Simp} 48168149SimpEND 49168179Sgabor{ 50168083Sjkim printf("End3 fired after exit\n"); 51168123Snetchild} 52168080SmlaierEND 53168195Sbenno{ 54168131Sbmah printf("End4 fired after exit\n"); 55168183Sgabor} 56168080Smlaier 57168150SrwatsonBEGIN 58168183Sgabor{ 59168149Simp printf("Begin fired first\n"); 60168150Srwatson} 61168263SruBEGIN 62168054Sflz{ 63168183Sgabor printf("Begin fired second\n"); 64168060Sdds} 65168108SrafanBEGIN 66168083Sjkim{ 67168153Simp printf("Begin fired third\n"); 68168080Smlaier} 69168149SimpBEGIN 70168127Sdwmalone{ 71168263Sru printf("Begin fired fourth\n"); 72168180Srwatson} 73168149SimpBEGIN 74168127Sdwmalone{ 75168054Sflz printf("Begin fired fifth\n"); 76168183Sgabor exit(0); 77168150Srwatson} 78168195Sbenno