e04145d08b77ade206d51c2367bebfc06f3e87f8eschrock/*
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrock * CDDL HEADER START
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrock *
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrock * The contents of this file are subject to the terms of the
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrock * Common Development and Distribution License (the "License").
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrock * You may not use this file except in compliance with the License.
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrock *
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrock * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrock * or http://www.opensolaris.org/os/licensing.
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrock * See the License for the specific language governing permissions
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrock * and limitations under the License.
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrock *
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrock * When distributing Covered Code, include this CDDL HEADER in each
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrock * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrock * If applicable, add the following below this CDDL HEADER, with the
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrock * fields enclosed by brackets "[]" replaced with your own identifying
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrock * information: Portions Copyright [yyyy] [name of copyright owner]
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrock *
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrock * CDDL HEADER END
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrock */
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrock/*
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrock * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrock * Use is subject to license terms.
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrock */
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrock
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrock#pragma ident "%Z%%M% %I% %E% SMI"
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrock
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrock#pragma D option quiet
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrock
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrockBEGIN
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrock{
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrock $1 + 0; /* make sure pid is referenced */
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrock
bd0f52d78d701efcad2c460df61b45677d041c35jhaslam /*
bd0f52d78d701efcad2c460df61b45677d041c35jhaslam * Wait no more than five seconds for the sysevent to be posted
bd0f52d78d701efcad2c460df61b45677d041c35jhaslam */
bd0f52d78d701efcad2c460df61b45677d041c35jhaslam timeout = timestamp + 5000000000;
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrock}
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrock
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrocksysevent:::post
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrock/args[0]->ec_name != "channel_dtest"/
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrock{
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrock printf("unexpected channel name (%s)\n", args[0]->ec_name);
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrock exit(1);
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrock}
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrock
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrocksysevent:::post
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrock/strstr(args[1]->se_publisher, "vendor_dtest") == NULL/
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrock{
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrock printf("missing vendor name from publisher (%s)\n",
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrock args[1]->se_publisher);
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrock exit(1);
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrock}
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrock
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrocksysevent:::post
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrock/strstr(args[1]->se_publisher, "publisher_dtest") == NULL/
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrock{
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrock printf("missing publisher name from publisher (%s)\n",
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrock args[1]->se_publisher);
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrock exit(1);
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrock}
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrock
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrocksysevent:::post
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrock/args[1]->se_class != "class_dtest"/
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrock{
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrock printf("unexpected class name (%s)\n", args[1]->se_class);
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrock exit(1);
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrock}
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrock
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrocksysevent:::post
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrock/args[1]->se_subclass != "subclass_dtest"/
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrock{
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrock printf("unexpected subclass name (%s)\n", args[1]->se_subclass);
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrock exit(1);
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrock}
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrock
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrocksysevent:::post
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrock{
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrock exit(0);
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrock}
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrock
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrockprofile:::tick-8
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrock/timestamp > timeout/
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrock{
bd0f52d78d701efcad2c460df61b45677d041c35jhaslam printf("timed out\n");
bd0f52d78d701efcad2c460df61b45677d041c35jhaslam exit(1);
e04145d08b77ade206d51c2367bebfc06f3e87f8eschrock}