summaryrefslogtreecommitdiff
path: root/dix/extension.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2006-11-03 12:54:43 -0800
committerAlan Coopersmith <alan.coopersmith@sun.com>2006-11-03 12:54:43 -0800
commit49a26681b2bdd95ed65c425f1fa1441d2f092a6e (patch)
tree6aaa2377b67a5d1f1a7b1da6967ff4222339dd1b /dix/extension.c
parent037f23e6f8fbe6e6fc8e71ed21958fc553df72d0 (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.c14
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