Commit d01f9534 authored by faith's avatar faith
Browse files

Debugging code for client-side copy elimination.

parent 13d0f427
......@@ -369,6 +369,12 @@ ReadRequestFromClient(client)
if ((gotnow > 0) && (oci->bufptr != oci->buffer)) {
#ifdef XF86SMT
if (oci->smt) {
#if 0
ErrorF("ARevert gotnow=%d, needed = %d, size = %d,"
" bufptr = %p, buffer = %p\n",
gotnow, needed, oci->size,
oci->bufptr, oci->buffer);
#endif
if (RevertSmtBuffer(oci, gotnow, needed)) {
YieldControlDeath();
return -1;
......@@ -383,7 +389,10 @@ ReadRequestFromClient(client)
#ifdef XF86SMT
if (oci->smt) {
#if 0
ErrorF("**********HERE %p %p\n", oci->buffer, oci->bufptr);
ErrorF("BRevert gotnow=%d, needed = %d, size = %d,"
" bufptr = %p, buffer = %p\n",
gotnow, needed, oci->size,
oci->bufptr, oci->buffer);
#endif
if (RevertSmtBuffer(oci, gotnow, needed)) {
YieldControlDeath();
......@@ -615,6 +624,18 @@ ReadRequestFromClient(client)
#if 0
ErrorF("Returns %d (gotnow = %d, bufcnt = %d, bufptr = %p)\n",
needed, gotnow, oci->bufcnt, oci->bufptr);
#endif
#if 0
{
int i;
unsigned char *p = oci->bufptr;
ErrorF("%4d (%p):", needed, p);
for (i = 0; i < (needed < 16 ? needed : 16); i++, ++p) {
ErrorF(" %02x", *p);
}
ErrorF("\n");
}
#endif
return needed;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment