diff options
author | Alan Coopersmith <alan.coopersmith@sun.com> | 2006-11-03 12:54:43 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@sun.com> | 2006-11-03 12:54:43 -0800 |
commit | 49a26681b2bdd95ed65c425f1fa1441d2f092a6e (patch) | |
tree | 6aaa2377b67a5d1f1a7b1da6967ff4222339dd1b /dix/extension.c | |
parent | 037f23e6f8fbe6e6fc8e71ed21958fc553df72d0 (diff) |
Add DTrace probe points for X server <-> client communications
See http://people.freedesktop.org/~alanc/dtrace/ for more details
Diffstat (limited to 'dix/extension.c')
-rw-r--r-- | dix/extension.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/dix/extension.c b/dix/extension.c index f58c73138..fe779b2be 100644 --- a/dix/extension.c +++ b/dix/extension.c @@ -482,3 +482,17 @@ RegisterScreenProc(char *name, ScreenPtr pScreen, ExtensionLookupProc proc) } return TRUE; } + +#ifdef XSERVER_DTRACE +void LoadExtensionNames(char **RequestNames) { + int i; + + for (i=0; i<NumExtensions; i++) { + int r = extensions[i]->base; + + if (RequestNames[r] == NULL) { + RequestNames[r] = strdup(extensions[i]->name); + } + } +} +#endif |