xorg tracing requests
nicola.manica at gmail.com
Mon May 28 05:49:32 PDT 2007
Hi, I'm a student on Computer Science, and I need an help. For my
experiments I need to trace the requests which arrive to the X server. I
need to know where is the right point when the server schedule the requests.
After the study of the 7.2 version code I try to put my function in that
1. create a client:
I put it in xorg-server/os/connection.c:
static ClientPtr AllocNewConnection (XtransConnInfo trans_conn, int fd,
2 .activation of a task(client):
while (clientsReadable.fds_bits [i])
int client_priority, client_index;
curclient = ffs (clientsReadable.fds_bits[i]) - 1;
client_index = /* raphael: modified */
ConnectionTranslation[curclient + (i * (sizeof(fd_mask) * 8))];
3. schedule and deschedule the request of a client
I think that this two call are in the correct place..
4. deactivation of the task(client)
I put it before the break statement on the loop in the dispatch function:
if (result <= 0)
if (result < 0)
Is it the correct way to trace the requests?
Thanks a lot
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the xorg