Santos, Jose Renato G
2005-Oct-19 18:45 UTC
[Xen-devel] [PATCH] xenoprof for SMP domains: patch for linux-sparse tree
Attached is another patch for xenoprof 3) xenoprof-2.0-linux-2.6-sparse.patch: Contains oprofile architecture specific driver for Xen (to be used against linux sparse tree) Signed-off-by: Jose Renato Santos <jsantos@hpl.hp.com> _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Keir Fraser
2005-Oct-20 11:18 UTC
Re: [Xen-devel] [PATCH] xenoprof for SMP domains: patch for linux-sparse tree
On 19 Oct 2005, at 19:45, Santos, Jose Renato G wrote:> Attached is another patch for xenoprof > > 3) xenoprof-2.0-linux-2.6-sparse.patch: > Contains oprofile architecture specific driver for Xen (to be used > against linux sparse tree)A few comments on this one: 1. No need to define virq_to_phys(). bind_virq_to_irq() returns the irq number, so just store it somewhere convenient rather than defining a query function. 2. I just checked in a more flexible alternative to vm_map_xen_pages which may be useful in other situations in future. Please switch to using direct_kernel_remap_pfn_range(). 3. Please use Linux indentation style throughout. I see in some places someone used 2-space soft tabs for example. 4. Make profiling config options (oprofile/Kconfig) ''default n'', and do not add to default -xen0/-xenU configurations. You can add as a module to the -xen configurations if you like. I only pick on this patch because it''s the first one I looked at. :-) -- Keir _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Santos, Jose Renato G
2005-Oct-20 17:55 UTC
RE: [Xen-devel] [PATCH] xenoprof for SMP domains: patch for linux-sparse tree
Keir, Thanks for your feedback. I will work on the changes you suggested and send a revised patch Renato>> -----Original Message----- >> From: Keir Fraser [mailto:Keir.Fraser@cl.cam.ac.uk] >> Sent: Thursday, October 20, 2005 4:19 AM >> To: Santos, Jose Renato G >> Cc: Turner, Yoshio; G John Janakiraman; >> xen-devel@lists.xensource.com; Andrew Theurer >> Subject: Re: [Xen-devel] [PATCH] xenoprof for SMP domains: >> patch for linux-sparse tree >> >> >> >> On 19 Oct 2005, at 19:45, Santos, Jose Renato G wrote: >> >> > Attached is another patch for xenoprof >> > >> > 3) xenoprof-2.0-linux-2.6-sparse.patch: >> > Contains oprofile architecture specific driver for Xen (to be >> > used against linux sparse tree) >> >> A few comments on this one: >> 1. No need to define virq_to_phys(). bind_virq_to_irq() >> returns the >> irq number, so just store it somewhere convenient rather >> than defining >> a query function. >> 2. I just checked in a more flexible alternative to >> vm_map_xen_pages >> which may be useful in other situations in future. Please switch to >> using direct_kernel_remap_pfn_range(). >> 3. Please use Linux indentation style throughout. I see in >> some places >> someone used 2-space soft tabs for example. >> 4. Make profiling config options (oprofile/Kconfig) >> ''default n'', and >> do not add to default -xen0/-xenU configurations. You can add as a >> module to the -xen configurations if you like. >> >> I only pick on this patch because it''s the first one I looked at. :-) >> >> -- Keir >> >>_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel