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