summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tapset/ChangeLog6
-rw-r--r--tapset/memory.stp18
2 files changed, 15 insertions, 9 deletions
diff --git a/tapset/ChangeLog b/tapset/ChangeLog
index 3baca192..b325a627 100644
--- a/tapset/ChangeLog
+++ b/tapset/ChangeLog
@@ -1,3 +1,9 @@
+2007-10-09 Zhaolei <zhaolei@cn.fujitsu.com>
+
+ From Cai Fei <caifei@cn.fujitsu.com>
+ * memory.stp (addr_to_node): Fix the compilation error of function
+ addr_to_node on IA64.
+
2007-10-05 Martin Hunt <hunt@redhat.com>
* aux_syscalls.stp: Put #ifdef CONFIG_COMPAT
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. */