Amitabha Roy
2007-Jun-07 03:34 UTC
[Xen-devel] [PATCH] Add callgraph support to Xenoprofile
Hi This patch implements backtrace support in Xenoprofile. It''s been reviewed by Renato. I''ve tested it out successfully on xen x86_32 and x86_64. I''ve added stubs for the backtrace for ia64 to ensure that it compiles ok but havent been able to test that out. However, I believe there shouldn''t be any problems. Thanks -Amitabha _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Keir Fraser
2007-Jun-07 09:01 UTC
Re: [Xen-devel] [PATCH] Add callgraph support to Xenoprofile
On 7/6/07 04:34, "Amitabha Roy" <amitabha.roy@gmail.com> wrote:> This patch implements backtrace support in Xenoprofile. It''s been > reviewed by Renato. I''ve tested it out successfully on xen x86_32 and > x86_64. I''ve added stubs for the backtrace for ia64 to ensure that it > compiles ok but havent been able to test that out. However, I believe > there shouldn''t be any problems.Coding style is all over the shop. Where does CONFIG_FRAME_POINTER get used? I''m not sure that FRAME_POINTER needs to be a top-level option -- it''s only necessary for Xen build isn''t it? -- Keir _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Amitabha Roy
2007-Jun-07 09:20 UTC
Re: [Xen-devel] [PATCH] Add callgraph support to Xenoprofile
Hi Keir Coding style is likely because I''ve preserved the formatting of the original files (esp. of backtrace.c from Linux for simple diffs). There isnt a consistent style across the files that I could follow. CONFIG_FRAME_POINTER gets used in config/StdGNU.mk. I simply followed whatever was done for XEN_TARGET_X86_PAE. However unlike the PAE case I haven''t ensured that frame pointers are turned on both in the kernel and Xen. If you want I can move all the frame pointer related stuff into xen/Rules.mk. -Amitabha On 6/7/07, Keir Fraser <keir@xensource.com> wrote:> On 7/6/07 04:34, "Amitabha Roy" <amitabha.roy@gmail.com> wrote: > > > This patch implements backtrace support in Xenoprofile. It''s been > > reviewed by Renato. I''ve tested it out successfully on xen x86_32 and > > x86_64. I''ve added stubs for the backtrace for ia64 to ensure that it > > compiles ok but havent been able to test that out. However, I believe > > there shouldn''t be any problems. > > Coding style is all over the shop. Where does CONFIG_FRAME_POINTER get used? > I''m not sure that FRAME_POINTER needs to be a top-level option -- it''s only > necessary for Xen build isn''t it? > > -- Keir > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Keir Fraser
2007-Jun-07 09:30 UTC
Re: [Xen-devel] [PATCH] Add callgraph support to Xenoprofile
On 7/6/07 10:20, "Amitabha Roy" <amitabha.roy@gmail.com> wrote:> Coding style is likely because I''ve preserved the formatting of the > original files (esp. of backtrace.c from Linux for simple diffs). > There isnt a consistent style across the files that I could follow.Linux-derived files follow Linux style (this will apply to many of the files under arch/x86/oprofile). Xen-specific files follow Xen style as in e.g., page_alloc.c, xmalloc.c, xenoprof.c). If any of the files you edit don''t follow this, please fix them first, and send a separate patch as a prerequisite for your own.> CONFIG_FRAME_POINTER gets used in config/StdGNU.mk. > I simply followed whatever was done for XEN_TARGET_X86_PAE. However > unlike the PAE case I haven''t ensured that frame pointers are turned > on both in the kernel and Xen. If you want I can move all the frame > pointer related stuff into xen/Rules.mk.Yes, please. Call the option frame_pointer, in line with other Xen-specific options which are also lower case. -- Keir _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Amitabha Roy
2007-Jun-07 11:45 UTC
Re: [Xen-devel] [PATCH] Add callgraph support to Xenoprofile
I''ve moved the frame pointer code into the xen specific makefile. I''ve also fixed the per file inconsistencies. I noticed that some files already have a few inconsistencies within themselves in places other than my code. Perhaps you could accept this patch and I can send a separate one later fixing those ? One of the suggestions I had from Renato was to minimize any diffs of files based off linux versions so that pulling in updates will be easier. So I can look into those on a case by case basis with him. -Amitabha On 6/7/07, Keir Fraser <keir@xensource.com> wrote:> On 7/6/07 10:20, "Amitabha Roy" <amitabha.roy@gmail.com> wrote: > > > Coding style is likely because I''ve preserved the formatting of the > > original files (esp. of backtrace.c from Linux for simple diffs). > > There isnt a consistent style across the files that I could follow. > > Linux-derived files follow Linux style (this will apply to many of the files > under arch/x86/oprofile). Xen-specific files follow Xen style as in e.g., > page_alloc.c, xmalloc.c, xenoprof.c). > > If any of the files you edit don''t follow this, please fix them first, and > send a separate patch as a prerequisite for your own. > > > CONFIG_FRAME_POINTER gets used in config/StdGNU.mk. > > I simply followed whatever was done for XEN_TARGET_X86_PAE. However > > unlike the PAE case I haven''t ensured that frame pointers are turned > > on both in the kernel and Xen. If you want I can move all the frame > > pointer related stuff into xen/Rules.mk. > > Yes, please. Call the option frame_pointer, in line with other Xen-specific > options which are also lower case. > > -- Keir > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Amitabha Roy
2007-Jun-07 11:46 UTC
Re: [Xen-devel] [PATCH] Add callgraph support to Xenoprofile
Forgot to mention, the CONFIG_FRAME_POINTER is needed by the backtrace.c file I pulled from linux. On 6/7/07, Amitabha Roy <amitabha.roy@gmail.com> wrote:> I''ve moved the frame pointer code into the xen specific makefile. > I''ve also fixed the per file inconsistencies. I noticed that some > files already have a few inconsistencies within themselves in places > other than my code. > > Perhaps you could accept this patch and I can send a separate one > later fixing those ? > One of the suggestions I had from Renato was to minimize any diffs of > files based off linux versions so that pulling in updates will be > easier. So I can look into those on a case by case basis with him. > > -Amitabha > > > On 6/7/07, Keir Fraser <keir@xensource.com> wrote: > > On 7/6/07 10:20, "Amitabha Roy" <amitabha.roy@gmail.com> wrote: > > > > > Coding style is likely because I''ve preserved the formatting of the > > > original files (esp. of backtrace.c from Linux for simple diffs). > > > There isnt a consistent style across the files that I could follow. > > > > Linux-derived files follow Linux style (this will apply to many of the files > > under arch/x86/oprofile). Xen-specific files follow Xen style as in e.g., > > page_alloc.c, xmalloc.c, xenoprof.c). > > > > If any of the files you edit don''t follow this, please fix them first, and > > send a separate patch as a prerequisite for your own. > > > > > CONFIG_FRAME_POINTER gets used in config/StdGNU.mk. > > > I simply followed whatever was done for XEN_TARGET_X86_PAE. However > > > unlike the PAE case I haven''t ensured that frame pointers are turned > > > on both in the kernel and Xen. If you want I can move all the frame > > > pointer related stuff into xen/Rules.mk. > > > > Yes, please. Call the option frame_pointer, in line with other Xen-specific > > options which are also lower case. > > > > -- Keir > > > > > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel