First import
[xorg_rtime.git] / xorg-server-1.4 / dix / Xserver.d
blobe4c9b832082a181b582a5972a8cc9a4465183f2a
1 /* Copyright 2005-2006 Sun Microsystems, Inc. All rights reserved.
3 * Permission is hereby granted, free of charge, to any person obtaining a
4 * copy of this software and associated documentation files (the
5 * "Software"), to deal in the Software without restriction, including
6 * without limitation the rights to use, copy, modify, merge, publish,
7 * distribute, and/or sell copies of the Software, and to permit persons
8 * to whom the Software is furnished to do so, provided that the above
9 * copyright notice(s) and this permission notice appear in all copies of
10 * the Software and that both the above copyright notice(s) and this
11 * permission notice appear in supporting documentation.
13 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
14 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
15 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
16 * OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
17 * HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
18 * INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
19 * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
20 * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
21 * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
23 * Except as contained in this notice, the name of a copyright holder
24 * shall not be used in advertising or otherwise to promote the sale, use
25 * or other dealings in this Software without prior written authorization
26 * of the copyright holder.
30 * Xserver dtrace provider definition
33 #include <sys/types.h>
35 provider Xserver {
36 /* reqType, data, length, client id, request buffer */
37 probe request__start(string, uint8_t, uint16_t, int, void *);
38 /* reqType, data, sequence, client id, result */
39 probe request__done(string, uint8_t, uint32_t, int, int);
40 /* client id, client fd */
41 probe client__connect(int, int);
42 /* client id, client address, client pid, client zone id */
43 probe client__auth(int, string, pid_t, zoneid_t);
44 /* client id */
45 probe client__disconnect(int);
46 /* resource id, resource type, value, resource type name */
47 probe resource__alloc(uint32_t, uint32_t, void *, string);
48 /* resource id, resource type, value, resource type name */
49 probe resource__free(uint32_t, uint32_t, void *, string);
50 /* client id, event type, event* */
51 probe send__event(int, uint8_t, void *);
54 #pragma D attributes Unstable/Unstable/Common provider Xserver provider
55 #pragma D attributes Private/Private/Unknown provider Xserver module
56 #pragma D attributes Private/Private/Unknown provider Xserver function
57 #pragma D attributes Unstable/Unstable/Common provider Xserver name
58 #pragma D attributes Unstable/Unstable/Common provider Xserver args