ia64/xen-unstable

changeset 8715:635678c0fccc

add the hypercall_page to xenctx knowledge.

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
author vhanquez@kneesa.uk.xensource.com
date Tue Jan 31 17:31:39 2006 +0000 (2006-01-31)
parents bcbe322d80d9
children 9ef5f0ec9df8
files tools/xentrace/xenctx.c
line diff
     1.1 --- a/tools/xentrace/xenctx.c	Tue Jan 31 17:32:24 2006 +0100
     1.2 +++ b/tools/xentrace/xenctx.c	Tue Jan 31 17:31:39 2006 +0000
     1.3 @@ -53,7 +53,7 @@ struct symbol {
     1.4      struct symbol *next;
     1.5  } *symbol_table = NULL;
     1.6  
     1.7 -size_t kernel_stext, kernel_etext, kernel_sinittext, kernel_einittext;
     1.8 +size_t kernel_stext, kernel_etext, kernel_sinittext, kernel_einittext, kernel_hypercallpage;
     1.9  
    1.10  int is_kernel_text(size_t addr)
    1.11  {
    1.12 @@ -68,6 +68,9 @@ int is_kernel_text(size_t addr)
    1.13      if (addr >= kernel_stext &&
    1.14          addr <= kernel_etext)
    1.15          return 1;
    1.16 +    if (addr >= kernel_hypercallpage &&
    1.17 +        addr <= kernel_hypercallpage + 4096)
    1.18 +        return 1;
    1.19      if (addr >= kernel_sinittext &&
    1.20          addr <= kernel_einittext)
    1.21          return 1;
    1.22 @@ -184,6 +187,8 @@ void read_symbol_table(const char *symta
    1.23              kernel_sinittext = symbol->address;
    1.24          else if (strcmp(symbol->name, "_einittext") == 0)
    1.25              kernel_einittext = symbol->address;
    1.26 +        else if (strcmp(symbol->name, "hypercall_page") == 0)
    1.27 +            kernel_hypercallpage = symbol->address;
    1.28      }
    1.29  
    1.30      fclose(f);