WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] [LINUX] xenoprof: use alloc_vm_area inste

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [LINUX] xenoprof: use alloc_vm_area instead of get_vm_area. The former
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 01 Sep 2006 16:50:12 +0000
Delivery-date: Fri, 01 Sep 2006 09:50:31 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID 3e6325b73474b3764573178152503af27a914ab8
# Parent  329ad7bbc7ec43959e2669ff153f8073325d17be
[LINUX] xenoprof: use alloc_vm_area instead of get_vm_area. The former
is exported to modules.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
---
 linux-2.6-xen-sparse/arch/i386/oprofile/xenoprof.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff -r 329ad7bbc7ec -r 3e6325b73474 
linux-2.6-xen-sparse/arch/i386/oprofile/xenoprof.c
--- a/linux-2.6-xen-sparse/arch/i386/oprofile/xenoprof.c        Fri Sep 01 
13:52:04 2006 +0100
+++ b/linux-2.6-xen-sparse/arch/i386/oprofile/xenoprof.c        Fri Sep 01 
16:11:51 2006 +0100
@@ -26,6 +26,7 @@
 #include <xen/evtchn.h>
 #include "op_counter.h"
 
+#include <xen/driver_util.h>
 #include <xen/interface/xen.h>
 #include <xen/interface/xenoprof.h>
 #include <../../../drivers/oprofile/cpu_buffer.h>
@@ -396,7 +397,7 @@ static int xenoprof_set_passive(int * p_
 
                npages = (passive_domains[i].bufsize * passive_domains[i].nbuf 
- 1) / PAGE_SIZE + 1;
 
-               area = get_vm_area(npages * PAGE_SIZE, VM_IOREMAP);
+               area = alloc_vm_area(npages * PAGE_SIZE);
                if (area == NULL) {
                        ret = -ENOMEM;
                        goto out;
@@ -502,7 +503,7 @@ int __init oprofile_arch_init(struct opr
 
                npages = (init.bufsize * nbuf - 1) / PAGE_SIZE + 1;
 
-               area = get_vm_area(npages * PAGE_SIZE, VM_IOREMAP);
+               area = alloc_vm_area(npages * PAGE_SIZE);
                if (area == NULL) {
                        ret = -ENOMEM;
                        goto out;

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [LINUX] xenoprof: use alloc_vm_area instead of get_vm_area. The former, Xen patchbot-unstable <=