1e04145d0Seschrock /*
2e04145d0Seschrock  * CDDL HEADER START
3e04145d0Seschrock  *
4e04145d0Seschrock  * The contents of this file are subject to the terms of the
5e04145d0Seschrock  * Common Development and Distribution License (the "License").
6e04145d0Seschrock  * You may not use this file except in compliance with the License.
7e04145d0Seschrock  *
8e04145d0Seschrock  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9e04145d0Seschrock  * or http://www.opensolaris.org/os/licensing.
10e04145d0Seschrock  * See the License for the specific language governing permissions
11e04145d0Seschrock  * and limitations under the License.
12e04145d0Seschrock  *
13e04145d0Seschrock  * When distributing Covered Code, include this CDDL HEADER in each
14e04145d0Seschrock  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15e04145d0Seschrock  * If applicable, add the following below this CDDL HEADER, with the
16e04145d0Seschrock  * fields enclosed by brackets "[]" replaced with your own identifying
17e04145d0Seschrock  * information: Portions Copyright [yyyy] [name of copyright owner]
18e04145d0Seschrock  *
19e04145d0Seschrock  * CDDL HEADER END
20e04145d0Seschrock  */
21e04145d0Seschrock /*
22e04145d0Seschrock  * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
23e04145d0Seschrock  * Use is subject to license terms.
24e04145d0Seschrock  */
25e04145d0Seschrock 
26e04145d0Seschrock #pragma D option quiet
27e04145d0Seschrock 
28e04145d0Seschrock BEGIN
29e04145d0Seschrock {
30e04145d0Seschrock 	$1 + 0;	/* make sure pid is referenced */
31e04145d0Seschrock 
32*bd0f52d7Sjhaslam 	/*
33*bd0f52d7Sjhaslam 	 * Wait no more than a five seconds for the sysevent to be posted
34*bd0f52d7Sjhaslam 	 */
35*bd0f52d7Sjhaslam 	timeout = timestamp + 5000000000;
36e04145d0Seschrock }
37e04145d0Seschrock 
38e04145d0Seschrock sysevent:::post
39e04145d0Seschrock /args[0]->ec_name != NULL/
40e04145d0Seschrock {
41e04145d0Seschrock 	printf("channel name is non-NULL (%s)\n",
42e04145d0Seschrock 	    args[0]->ec_name);
43e04145d0Seschrock 	exit(1);
44e04145d0Seschrock }
45e04145d0Seschrock 
46e04145d0Seschrock sysevent:::post
47e04145d0Seschrock /strstr(args[1]->se_publisher, "vendor_dtest") == NULL/
48e04145d0Seschrock {
49e04145d0Seschrock 	printf("missing vendor name from publisher (%s)\n",
50e04145d0Seschrock 	    args[1]->se_publisher);
51e04145d0Seschrock 	exit(1);
52e04145d0Seschrock }
53e04145d0Seschrock 
54e04145d0Seschrock sysevent:::post
55e04145d0Seschrock /strstr(args[1]->se_publisher, "publisher_dtest") == NULL/
56e04145d0Seschrock {
57e04145d0Seschrock 	printf("missing publisher name from publisher (%s)\n",
58e04145d0Seschrock 	    args[1]->se_publisher);
59e04145d0Seschrock 	exit(1);
60e04145d0Seschrock }
61e04145d0Seschrock 
62e04145d0Seschrock sysevent:::post
63e04145d0Seschrock /args[1]->se_class != "class_dtest"/
64e04145d0Seschrock {
65e04145d0Seschrock 	printf("unexpected class name (%s)\n", args[1]->se_class);
66e04145d0Seschrock 	exit(1);
67e04145d0Seschrock }
68e04145d0Seschrock 
69e04145d0Seschrock sysevent:::post
70e04145d0Seschrock /args[1]->se_subclass != "subclass_dtest"/
71e04145d0Seschrock {
72e04145d0Seschrock 	printf("unexpected subclass name (%s)\n", args[1]->se_subclass);
73e04145d0Seschrock 	exit(1);
74e04145d0Seschrock }
75e04145d0Seschrock 
76e04145d0Seschrock sysevent:::post
77e04145d0Seschrock {
78e04145d0Seschrock 	exit(0);
79e04145d0Seschrock }
80e04145d0Seschrock 
81e04145d0Seschrock profile:::tick-8
82e04145d0Seschrock /timestamp > timeout/
83e04145d0Seschrock {
84*bd0f52d7Sjhaslam 	printf("timed out\n");
85*bd0f52d7Sjhaslam 	exit(1);
86e04145d0Seschrock }
87