# HG changeset patch
# User vhanquez@xxxxxxxxxxxxxxxxxxxxxxx
# Node ID 635678c0fccc1e97443602a2b316e9174dc14fa5
# Parent bcbe322d80d9ec60c3d5b549d40f33c155c85b87
add the hypercall_page to xenctx knowledge.
Signed-off-by: Vincent Hanquez <vincent@xxxxxxxxxxxxx>
diff -r bcbe322d80d9 -r 635678c0fccc tools/xentrace/xenctx.c
--- a/tools/xentrace/xenctx.c Tue Jan 31 16:32:24 2006
+++ b/tools/xentrace/xenctx.c Tue Jan 31 17:31:39 2006
@@ -53,7 +53,7 @@
struct symbol *next;
} *symbol_table = NULL;
-size_t kernel_stext, kernel_etext, kernel_sinittext, kernel_einittext;
+size_t kernel_stext, kernel_etext, kernel_sinittext, kernel_einittext,
kernel_hypercallpage;
int is_kernel_text(size_t addr)
{
@@ -67,6 +67,9 @@
if (addr >= kernel_stext &&
addr <= kernel_etext)
+ return 1;
+ if (addr >= kernel_hypercallpage &&
+ addr <= kernel_hypercallpage + 4096)
return 1;
if (addr >= kernel_sinittext &&
addr <= kernel_einittext)
@@ -184,6 +187,8 @@
kernel_sinittext = symbol->address;
else if (strcmp(symbol->name, "_einittext") == 0)
kernel_einittext = symbol->address;
+ else if (strcmp(symbol->name, "hypercall_page") == 0)
+ kernel_hypercallpage = symbol->address;
}
fclose(f);
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|