|
From: Marc S. <mar...@es...> - 2013-10-03 12:19:34
|
Hi! I'm new using Valgrind out of Linux. I'm working in a project on Android and I'm trying to instrument "com.android.mms" or Mms.apk. I tried using "am start" but am only sends a signal to Zygote so valgrind will never trace the new process. I read that Valgrind has ARM support, so I guess that someone knows hot to do it. Any hint or help will be grateful! Thanks -- Marc Sampé Gascó Estudiant de Enginyeria Informàtica ( UPC ) |
|
From: Vasily G. <vas...@gm...> - 2013-10-05 17:07:54
|
Mr. Sampe, Did you try flag --trace-children=yes? Vasily On Thu, Oct 3, 2013 at 4:19 PM, Marc Sampé <mar...@es...> wrote: > Hi! > > I'm new using Valgrind out of Linux. I'm working in a project on Android and > I'm trying to instrument "com.android.mms" or Mms.apk. > > I tried using "am start" but am only sends a signal to Zygote so valgrind > will never trace the new process. > > I read that Valgrind has ARM support, so I guess that someone knows hot to > do it. > > Any hint or help will be grateful! > > Thanks > > -- > Marc Sampé Gascó > Estudiant de Enginyeria Informàtica ( UPC ) > > ------------------------------------------------------------------------------ > October Webinars: Code for Performance > Free Intel webinars can help you accelerate application performance. > Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most > from > the latest Intel processors and coprocessors. See abstracts and register > > http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk > _______________________________________________ > Valgrind-users mailing list > Val...@li... > https://lists.sourceforge.net/lists/listinfo/valgrind-users > -- Best Regards, Vasily |
|
From: Marc S. <mar...@gm...> - 2013-10-05 17:32:33
|
Yep. "am start" sends a signal via socket to zygote, so there's no children to follow. 2013/10/5 Vasily Golubev <vas...@gm...> > Mr. Sampe, > > Did you try flag --trace-children=yes? > > Vasily > > On Thu, Oct 3, 2013 at 4:19 PM, Marc Sampé <mar...@es...> > wrote: > > Hi! > > > > I'm new using Valgrind out of Linux. I'm working in a project on Android > and > > I'm trying to instrument "com.android.mms" or Mms.apk. > > > > I tried using "am start" but am only sends a signal to Zygote so valgrind > > will never trace the new process. > > > > I read that Valgrind has ARM support, so I guess that someone knows hot > to > > do it. > > > > Any hint or help will be grateful! > > > > Thanks > > > > -- > > Marc Sampé Gascó > > Estudiant de Enginyeria Informàtica ( UPC ) > > > > > ------------------------------------------------------------------------------ > > October Webinars: Code for Performance > > Free Intel webinars can help you accelerate application performance. > > Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most > > from > > the latest Intel processors and coprocessors. See abstracts and register > > > > > http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk > > _______________________________________________ > > Valgrind-users mailing list > > Val...@li... > > https://lists.sourceforge.net/lists/listinfo/valgrind-users > > > > > > -- > Best Regards, > Vasily > > > ------------------------------------------------------------------------------ > October Webinars: Code for Performance > Free Intel webinars can help you accelerate application performance. > Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most > from > the latest Intel processors and coprocessors. See abstracts and register > > http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk > _______________________________________________ > Valgrind-users mailing list > Val...@li... > https://lists.sourceforge.net/lists/listinfo/valgrind-users > -- Marc |
|
From: Matthew M. <mat...@th...> - 2013-10-06 12:21:11
|
Is it not possible to restart zygote with zalgrind? I'm trying to debug an app using the NDK. I don't know if the NDK library is loaded and executed in the zygote process? If so I guess I have a similar problem. In the init.rc file on android zygote is started as: service zygote /system/bin/app_process -Xzygote /system/bin --zygote --start-system-server I suppose that could be changed to start zygote by valgrind instead? This would run valgrind for all apps though. Matthew. On 5 Oct 2013, at 18:32, Marc Sampé <mar...@gm...> wrote: > Yep. "am start" sends a signal via socket to zygote, so there's no children to follow. > > > 2013/10/5 Vasily Golubev <vas...@gm...> > Mr. Sampe, > > Did you try flag --trace-children=yes? > > Vasily > > On Thu, Oct 3, 2013 at 4:19 PM, Marc Sampé <mar...@es...> wrote: > > Hi! > > > > I'm new using Valgrind out of Linux. I'm working in a project on Android and > > I'm trying to instrument "com.android.mms" or Mms.apk. > > > > I tried using "am start" but am only sends a signal to Zygote so valgrind > > will never trace the new process. > > > > I read that Valgrind has ARM support, so I guess that someone knows hot to > > do it. > > > > Any hint or help will be grateful! > > > > Thanks > > > > -- > > Marc Sampé Gascó > > Estudiant de Enginyeria Informàtica ( UPC ) > > > > ------------------------------------------------------------------------------ > > October Webinars: Code for Performance > > Free Intel webinars can help you accelerate application performance. > > Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most > > from > > the latest Intel processors and coprocessors. See abstracts and register > > > http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk > > _______________________________________________ > > Valgrind-users mailing list > > Val...@li... > > https://lists.sourceforge.net/lists/listinfo/valgrind-users > > > > > > -- > Best Regards, > Vasily > > ------------------------------------------------------------------------------ > October Webinars: Code for Performance > Free Intel webinars can help you accelerate application performance. > Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from > the latest Intel processors and coprocessors. See abstracts and register > > http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk > _______________________________________________ > Valgrind-users mailing list > Val...@li... > https://lists.sourceforge.net/lists/listinfo/valgrind-users > > > > -- > Marc > ------------------------------------------------------------------------------ > October Webinars: Code for Performance > Free Intel webinars can help you accelerate application performance. > Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from > the latest Intel processors and coprocessors. See abstracts and register > > http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk_______________________________________________ > Valgrind-users mailing list > Val...@li... > https://lists.sourceforge.net/lists/listinfo/valgrind-users |
|
From: Marc S. <mar...@gm...> - 2013-10-06 19:25:12
|
I'm trying this with PIN and Valgrind but doesnt work: http://stackoverflow.com/questions/9123124/how-to-start-an-android-app-with-valgrind 2013/10/6 Matthew Mitchell <mat...@th...> > Is it not possible to restart zygote with zalgrind? I'm trying to debug an > app using the NDK. I don't know if the NDK library is loaded and executed > in the zygote process? If so I guess I have a similar problem. > > In the init.rc file on android zygote is started as: > > service zygote /system/bin/app_process -Xzygote /system/bin --zygote > --start-system-server > > I suppose that could be changed to start zygote by valgrind instead? This > would run valgrind for all apps though. > > Matthew. > > > On 5 Oct 2013, at 18:32, Marc Sampé <mar...@gm...> wrote: > > > Yep. "am start" sends a signal via socket to zygote, so there's no > children to follow. > > > > > > 2013/10/5 Vasily Golubev <vas...@gm...> > > Mr. Sampe, > > > > Did you try flag --trace-children=yes? > > > > Vasily > > > > On Thu, Oct 3, 2013 at 4:19 PM, Marc Sampé <mar...@es...> > wrote: > > > Hi! > > > > > > I'm new using Valgrind out of Linux. I'm working in a project on > Android and > > > I'm trying to instrument "com.android.mms" or Mms.apk. > > > > > > I tried using "am start" but am only sends a signal to Zygote so > valgrind > > > will never trace the new process. > > > > > > I read that Valgrind has ARM support, so I guess that someone knows > hot to > > > do it. > > > > > > Any hint or help will be grateful! > > > > > > Thanks > > > > > > -- > > > Marc Sampé Gascó > > > Estudiant de Enginyeria Informàtica ( UPC ) > > > > > > > ------------------------------------------------------------------------------ > > > October Webinars: Code for Performance > > > Free Intel webinars can help you accelerate application performance. > > > Explore tips for MPI, OpenMP, advanced profiling, and more. Get the > most > > > from > > > the latest Intel processors and coprocessors. See abstracts and > register > > > > > http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk > > > _______________________________________________ > > > Valgrind-users mailing list > > > Val...@li... > > > https://lists.sourceforge.net/lists/listinfo/valgrind-users > > > > > > > > > > > -- > > Best Regards, > > Vasily > > > > > ------------------------------------------------------------------------------ > > October Webinars: Code for Performance > > Free Intel webinars can help you accelerate application performance. > > Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most > from > > the latest Intel processors and coprocessors. See abstracts and register > > > > > http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk > > _______________________________________________ > > Valgrind-users mailing list > > Val...@li... > > https://lists.sourceforge.net/lists/listinfo/valgrind-users > > > > > > > > -- > > Marc > > > ------------------------------------------------------------------------------ > > October Webinars: Code for Performance > > Free Intel webinars can help you accelerate application performance. > > Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most > from > > the latest Intel processors and coprocessors. See abstracts and register > > > > > http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk_______________________________________________ > > Valgrind-users mailing list > > Val...@li... > > https://lists.sourceforge.net/lists/listinfo/valgrind-users > > -- Marc |