1*2769Sahl /* 2*2769Sahl * CDDL HEADER START 3*2769Sahl * 4*2769Sahl * The contents of this file are subject to the terms of the 5*2769Sahl * Common Development and Distribution License (the "License"). 6*2769Sahl * You may not use this file except in compliance with the License. 7*2769Sahl * 8*2769Sahl * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*2769Sahl * or http://www.opensolaris.org/os/licensing. 10*2769Sahl * See the License for the specific language governing permissions 11*2769Sahl * and limitations under the License. 12*2769Sahl * 13*2769Sahl * When distributing Covered Code, include this CDDL HEADER in each 14*2769Sahl * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*2769Sahl * If applicable, add the following below this CDDL HEADER, with the 16*2769Sahl * fields enclosed by brackets "[]" replaced with your own identifying 17*2769Sahl * information: Portions Copyright [yyyy] [name of copyright owner] 18*2769Sahl * 19*2769Sahl * CDDL HEADER END 20*2769Sahl */ 21*2769Sahl 22*2769Sahl /* 23*2769Sahl * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 24*2769Sahl * Use is subject to license terms. 25*2769Sahl */ 26*2769Sahl 27*2769Sahl #pragma ident "%Z%%M% %I% %E% SMI" 28*2769Sahl 29*2769Sahl #pragma D option bufsize=1000 30*2769Sahl #pragma D option bufpolicy=ring 31*2769Sahl #pragma D option statusrate=10ms 32*2769Sahl 33*2769Sahl fbt::: 34*2769Sahl { 35*2769Sahl on = (timestamp / 1000000000) & 1; 36*2769Sahl } 37*2769Sahl 38*2769Sahl fbt::: 39*2769Sahl /on/ 40*2769Sahl { 41*2769Sahl trace(htons(0x1122)); 42*2769Sahl } 43*2769Sahl 44*2769Sahl fbt::: 45*2769Sahl /on/ 46*2769Sahl { 47*2769Sahl trace(htonl(0x11223344)); 48*2769Sahl } 49*2769Sahl 50*2769Sahl fbt::: 51*2769Sahl /on/ 52*2769Sahl { 53*2769Sahl trace(htonll(0x1122334455667788)); 54*2769Sahl } 55*2769Sahl 56*2769Sahl fbt::: 57*2769Sahl /on/ 58*2769Sahl { 59*2769Sahl trace(ntohs(0x1122)); 60*2769Sahl } 61*2769Sahl 62*2769Sahl fbt::: 63*2769Sahl /on/ 64*2769Sahl { 65*2769Sahl trace(ntohl(0x11223344)); 66*2769Sahl } 67*2769Sahl 68*2769Sahl fbt::: 69*2769Sahl /on/ 70*2769Sahl { 71*2769Sahl trace(ntohll(0x1122334455667788)); 72*2769Sahl } 73*2769Sahl 74*2769Sahl tick-1sec 75*2769Sahl /n++ == 10/ 76*2769Sahl { 77*2769Sahl exit(0); 78*2769Sahl } 79