From 07523279f520de766a60f63b8300dd0d49a430be Mon Sep 17 00:00:00 2001 From: zhaolei Date: Tue, 9 Oct 2007 00:33:19 +0000 Subject: 2007-10-09 Zhaolei From Cai Fei * memory.stp (addr_to_node): Fix the compilation error of function addr_to_node on IA64. --- tapset/memory.stp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'tapset/memory.stp') diff --git a/tapset/memory.stp b/tapset/memory.stp index db17ca4c..630e8984 100644 --- a/tapset/memory.stp +++ b/tapset/memory.stp @@ -48,16 +48,16 @@ probe vm.pagefault.return = kernel.function("__handle_mm_fault@mm/memory.c").ret /* Return which node the given address belongs to in a NUMA system */ function addr_to_node:long(addr:long) /* pure */ %{ - int nid; - int pfn = __pa(THIS->addr) >> PAGE_SHIFT; - for_each_online_node(nid) - if ( node_start_pfn(nid) <= pfn && - pfn < (node_start_pfn(nid) + - NODE_DATA(nid)->node_spanned_pages) ) - { + int nid; + int pfn = __pa(THIS->addr) >> PAGE_SHIFT; + for_each_online_node(nid) + if ( NODE_DATA(nid)->node_start_pfn <= pfn && + pfn < (NODE_DATA(nid)->node_start_pfn + + NODE_DATA(nid)->node_spanned_pages) ) + { THIS->__retvalue = nid; - break; - } + break; + } %} /* Return whether a page to be copied is a zero page. */ -- cgit