1706f2543Smrg/* Copyright (c) 2005-2006, Oracle and/or its affiliates. All rights reserved. 2706f2543Smrg * 3706f2543Smrg * Permission is hereby granted, free of charge, to any person obtaining a 4706f2543Smrg * copy of this software and associated documentation files (the "Software"), 5706f2543Smrg * to deal in the Software without restriction, including without limitation 6706f2543Smrg * the rights to use, copy, modify, merge, publish, distribute, sublicense, 7706f2543Smrg * and/or sell copies of the Software, and to permit persons to whom the 8706f2543Smrg * Software is furnished to do so, subject to the following conditions: 9706f2543Smrg * 10706f2543Smrg * The above copyright notice and this permission notice (including the next 11706f2543Smrg * paragraph) shall be included in all copies or substantial portions of the 12706f2543Smrg * Software. 13706f2543Smrg * 14706f2543Smrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15706f2543Smrg * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16706f2543Smrg * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 17706f2543Smrg * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 18706f2543Smrg * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 19706f2543Smrg * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 20706f2543Smrg * DEALINGS IN THE SOFTWARE. 21706f2543Smrg */ 22706f2543Smrg 23706f2543Smrg/* 24706f2543Smrg * Xserver dtrace provider definition 25706f2543Smrg */ 26706f2543Smrg#ifdef __APPLE__ 27706f2543Smrg#define string char * 28706f2543Smrg#define pid_t uint32_t 29706f2543Smrg#define zoneid_t uint32_t 30706f2543Smrg#else 31706f2543Smrg#include <sys/types.h> 32706f2543Smrg#endif 33706f2543Smrg 34706f2543Smrgprovider Xserver { 35706f2543Smrg /* reqType, data, length, client id, request buffer */ 36706f2543Smrg probe request__start(string, uint8_t, uint16_t, int, void *); 37706f2543Smrg /* reqType, data, sequence, client id, result */ 38706f2543Smrg probe request__done(string, uint8_t, uint32_t, int, int); 39706f2543Smrg /* client id, client fd */ 40706f2543Smrg probe client__connect(int, int); 41706f2543Smrg /* client id, client address, client pid, client zone id */ 42706f2543Smrg probe client__auth(int, string, pid_t, zoneid_t); 43706f2543Smrg /* client id */ 44706f2543Smrg probe client__disconnect(int); 45706f2543Smrg /* resource id, resource type, value, resource type name */ 46706f2543Smrg probe resource__alloc(uint32_t, uint32_t, void *, string); 47706f2543Smrg /* resource id, resource type, value, resource type name */ 48706f2543Smrg probe resource__free(uint32_t, uint32_t, void *, string); 49706f2543Smrg /* client id, event type, event* */ 50706f2543Smrg probe send__event(int, uint8_t, void *); 51706f2543Smrg}; 52706f2543Smrg 53706f2543Smrg#pragma D attributes Unstable/Unstable/Common provider Xserver provider 54706f2543Smrg#pragma D attributes Private/Private/Unknown provider Xserver module 55706f2543Smrg#pragma D attributes Private/Private/Unknown provider Xserver function 56706f2543Smrg#pragma D attributes Unstable/Unstable/Common provider Xserver name 57706f2543Smrg#pragma D attributes Unstable/Unstable/Common provider Xserver args 58706f2543Smrg 59