|
From: Ragupathi <rag...@ya...> - 2006-07-18 21:30:13
|
Hi everyone,
I want to load valgring into the target embedded board, PPC with
montavista linux. the target board contains only 32 MB RAM. is there is a way to
reduce the size of valgrind binary below 10 MB .
Thanks
|
|
From: Nicholas N. <nj...@cs...> - 2006-07-19 00:06:10
|
On Tue, 18 Jul 2006, Ragupathi wrote: > I want to load valgring into the target embedded board, PPC with > montavista linux. the target board contains only 32 MB RAM. is there is a way to > reduce the size of valgrind binary below 10 MB . Probably. In the $INSTALL/lib/valgrind-$PLATFORM directory you'll see something like this: cachegrind* libcoregrind.a none* vgpreload_memcheck.so* callgrind* libvex.a vgpreload_core.so* helgrind* massif* vgpreload_helgrind.so* lackey* memcheck* vgpreload_massif.so* Each tool (cachegrind, memcheck, etc) is actually a separate binary. Delete the ones you don't need -- eg. if you only want to run Memcheck, you can delete cachegrind, callgrind, helgrind, lackey, massif, none, vgpreload_helgrind.so, vgpreload_massif.so. You can also delete libvex.a and libcoregrind.a. On my system that reduces the size of the $INSTALL directory from 30MB to 5MB. Nick ps: can anyone tell me why we install libvex.a and libcoregrind.a? They don't seem useful. |
|
From: Josef W. <Jos...@gm...> - 2006-07-19 00:47:29
|
On Wednesday 19 July 2006 02:06, Nicholas Nethercote wrote: > ps: can anyone tell me why we install libvex.a and libcoregrind.a? They > don't seem useful. They are needed for external tools to be compilable with a valgrind installation, together with the public header files and the valgrind.pc file. Distributions probably should put these into a valgrind-devel package. Back when callgrind was external, I requested the libs to be installed, as they are needed to create the static tool binary. For callgrind this is moot now, but installing them as part of a VG developer package IMHO is good practice. Josef |
|
From: Nicholas N. <nj...@cs...> - 2006-07-19 01:30:17
|
On Wed, 19 Jul 2006, Josef Weidendorfer wrote: >> ps: can anyone tell me why we install libvex.a and libcoregrind.a? They >> don't seem useful. > > They are needed for external tools to be compilable with a valgrind > installation, together with the public header files and the valgrind.pc > file. Ah, yes. Thanks. Nick |
|
From: Ragupathi <rag...@ya...> - 2006-07-19 16:23:14
|
Nicholas Nethercote <njn <at> csse.unimelb.edu.au> writes: > > On Wed, 19 Jul 2006, Josef Weidendorfer wrote: > > >> ps: can anyone tell me why we install libvex.a and libcoregrind.a? They > >> don't seem useful. > > > > They are needed for external tools to be compilable with a valgrind > > installation, together with the public header files and the valgrind.pc > > file. > > Ah, yes. Thanks. > > Nick > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > Hi, Thanks for the reply. http://www.valgrind.org/downloads/variants.html?pmk I downloaded the valgrind ppc version 2.2.0. when I compiled the code for target . In the lib directory I found lot of files other than what you mentioned in the above post. I need only to check the memory leak in my program on the target board, for me I think memory leak detection tool is enough in valgrind.these are the list of files other than what you mentioned default.supp glibc-2.3.supp libpthread.so.0 vg_inject.so vgskin_addrcheck.so vgskin_none.so glibc-2.1.supp h p2ps stage2 vgpreload_addrcheck.so vgskin_corecheck.so xfree-3.supp glibc-2.2.supp libpthread.so valgrind vgpreload_memcheck.so vgskin_memcheck.so xfree-4.supp may i know what are all the files i can eliminate..in this to run mem leak tool thanx |
|
From: Nicholas N. <nj...@cs...> - 2006-07-19 22:59:09
|
On Wed, 19 Jul 2006, Ragupathi wrote: > Hi, > Thanks for the reply. > http://www.valgrind.org/downloads/variants.html?pmk > > I downloaded the valgrind ppc version 2.2.0. when I compiled the code for > target . In the lib directory I found lot of files other than what you > mentioned in the above post. Don't use that version. Use the latest version, 3.2.0, it supports PPC32. My instructions are valid for 3.2.0. Nick |
|
From: Ragupathi <rag...@ya...> - 2006-07-20 19:57:52
|
Nicholas Nethercote <njn <at> csse.unimelb.edu.au> writes: > > On Wed, 19 Jul 2006, Ragupathi wrote: > > > Hi, > > Thanks for the reply. > > http://www.valgrind.org/downloads/variants.html?pmk > > > > I downloaded the valgrind ppc version 2.2.0. when I compiled the code for > > target . In the lib directory I found lot of files other than what you > > mentioned in the above post. > > Don't use that version. Use the latest version, 3.2.0, it supports PPC32. > My instructions are valid for 3.2.0. > > Nick > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > Hi, As with your help, I have loaded the valgrind in the target. but now I am facing one pblm. when I run valgrind it says "/homes/rduraisa/val_ppc2.4/lib/valgrind/stage2 file not found" actually I compiled valgrind using ./configure -- prefix="/homes/rduraisa/val_ppc2.4/ option. so I hope there is some linking error. I am not very used to ./configure options. so pls how to eliminate this error... thank you |
|
From: Tom H. <to...@co...> - 2006-07-20 22:18:04
|
In message <loo...@po...>
Ragupathi <rag...@ya...> wrote:
> As with your help, I have loaded the valgrind in the target. but now I am
> facing one pblm. when I run valgrind it
> says "/homes/rduraisa/val_ppc2.4/lib/valgrind/stage2 file not found"
> actually I compiled valgrind using ./configure --
> prefix="/homes/rduraisa/val_ppc2.4/ option. so I hope there is some linking
> error. I am not very used to ./configure options. so pls how to eliminate this
> error...
What version of valgrind are you using now? If you're using 3.2 like
Nick suggested then you shouldn't be getting that error as there is
no stage2 binary anymore.
If you think you're using 3.2, then you have a remnant of an older
version on your path - probably the valgrind program itself.
Tom
--
Tom Hughes (to...@co...)
http://www.compton.nu/
|
|
From: Dennis L. <pla...@pr...> - 2006-07-20 21:47:00
|
Am Donnerstag, den 20.07.2006, 19:57 +0000 schrieb Ragupathi: > Nicholas Nethercote <njn <at> csse.unimelb.edu.au> writes: > > > Hi, > As with your help, I have loaded the valgrind in the target. but now I am > facing one pblm. when I run valgrind it > says "/homes/rduraisa/val_ppc2.4/lib/valgrind/stage2 file not found" > actually I compiled valgrind using ./configure -- > prefix="/homes/rduraisa/val_ppc2.4/ option. so I hope there is some linking > error. I am not very used to ./configure options. so pls how to eliminate this > error... > thank you btw: does val_ppc2.4 mean you use valgrind 2.4 ? |
|
From: Nicholas N. <nj...@cs...> - 2006-07-20 23:49:26
|
On Thu, 20 Jul 2006, Dennis Lubert wrote: >> As with your help, I have loaded the valgrind in the target. but now I am >> facing one pblm. when I run valgrind it >> says "/homes/rduraisa/val_ppc2.4/lib/valgrind/stage2 file not found" >> actually I compiled valgrind using ./configure -- >> prefix="/homes/rduraisa/val_ppc2.4/ option. so I hope there is some linking >> error. I am not very used to ./configure options. so pls how to eliminate this >> error... >> thank you > > btw: does val_ppc2.4 mean you use valgrind 2.4 ? Yes... the "stage2" file doesn't exist in the later versions. If you haven't upgraded to 3.2.0 you will need to. If you have, it's possible that you've got an old version lying around and the two are getting mixed, in which case you should remove all traces of it and then reinstall 3.2.0. Nick |
|
From: Ragupathi <rag...@ya...> - 2006-07-21 14:57:39
|
Dennis Lubert <plasmahh <at> projectiwear.org> writes: > > > > > > > Hi, > > As with your help, I have loaded the valgrind in the target. but now I am > > facing one pblm. when I run valgrind it > > says "/homes/rduraisa/val_ppc2.4/lib/valgrind/stage2 file not found" > > actually I compiled valgrind using ./configure -- > > prefix="/homes/rduraisa/val_ppc2.4/ option. so I hope there is some linking > > error. I am not very used to ./configure options. so pls how to eliminate this > > error... > > thank you > > btw: does val_ppc2.4 mean you use valgrind 2.4 ? > > yea it is 2.4 ppc_32 version.... let me know how to link the library files |
|
From: Dennis L. <pla...@pr...> - 2006-07-23 16:39:41
|
Am Freitag, den 21.07.2006, 14:57 +0000 schrieb Ragupathi: > Dennis Lubert <plasmahh <at> projectiwear.org> writes: > yea it is 2.4 ppc_32 version.... > let me know how to link the library files Why dont you use 3.2 as suggested already multiple times? |
|
From: Ragupathi <rag...@ya...> - 2006-07-27 23:35:06
|
Tom Hughes <tom <at> compton.nu> writes: > > In message <loom.20060720T215224-879 <at> post.gmane.org> > Ragupathi <ragupathi_ece <at> yahoo.co.in> wrote: > > > As with your help, I have loaded the valgrind in the target. but now I am > > facing one pblm. when I run valgrind it > > says "/homes/rduraisa/val_ppc2.4/lib/valgrind/stage2 file not found" > > actually I compiled valgrind using ./configure -- > > prefix="/homes/rduraisa/val_ppc2.4/ option. so I hope there is some linking > > error. I am not very used to ./configure options. so pls how to eliminate this > > error... > > What version of valgrind are you using now? If you're using 3.2 like > Nick suggested then you shouldn't be getting that error as there is > no stage2 binary anymore. > > If you think you're using 3.2, then you have a remnant of an older > version on your path - probably the valgrind program itself. > > Tom > Hi Thankx for the replys, actually I did that for valgrind 3.2.0 also .when I loaded in the target board.it looks for memcheck tool. when I am compiling I used "./configure --prefix=/homes/rduraisa/val_ppc3.2.0/" so when i run in target it says memcheck file not found. pls help thanks... |