|
From: gangadhara r. c. <mee...@gm...> - 2021-06-01 04:47:04
|
Hi, I am working on network routers where there will be multiple protocols running as different processes. if i want to attach the valgrind for more than one process at the same time what is the command/option to use. Thank you. Thanks, Gangadhar |
|
From: John R. <jr...@bi...> - 2021-06-01 05:22:12
|
if i want to attach the valgrind for more than one process at the same time what is the command/option to use. There is no such command or option. Each valgrind tool applies to only one process. The closest you can come is to invoke each process using a (separate) valgrind tool. |
|
From: gangadhara r. c. <mee...@gm...> - 2021-06-01 11:31:08
|
Thank you John for your quick response. So I have to invoke separate valgrind command for each process for which I want to check the process memory. Thanks, Gangadhar On Tue, Jun 1, 2021 at 10:53 AM John Reiser <jr...@bi...> wrote: > if i want to attach the valgrind for more than one process at the same > time what is the command/option to use. > > There is no such command or option. Each valgrind tool applies to only > one process. > The closest you can come is to invoke each process using a (separate) > valgrind tool. > > > _______________________________________________ > Valgrind-users mailing list > Val...@li... > https://lists.sourceforge.net/lists/listinfo/valgrind-users > |
|
From: John C. <joh...@ta...> - 2021-06-01 05:30:50
|
If a script or something fires off all processes, you can use
--trace-children=yes to grind the child processes as well.
You can also ...
--trace-children-skip=patt1,patt2,... specifies a list of executables
that --trace-children=yes should not trace
into
--trace-children-skip-by-arg=patt1,patt2,... same as
--trace-children-skip=
but check the argv[] entries for children,
rather
than the exe name, to make a follow/no-follow
decision
On Tue, Jun 1, 2021 at 4:47 PM gangadhara reddy chavva <
mee...@gm...> wrote:
> Hi,
>
> I am working on network routers where there will be multiple protocols
> running as different processes. if i want to attach the valgrind for more
> than one process at the same time what is the command/option to use.
>
> Thank you.
>
> Thanks,
> Gangadhar
> _______________________________________________
> Valgrind-users mailing list
> Val...@li...
> https://lists.sourceforge.net/lists/listinfo/valgrind-users
>
--
John Carter
Phone : (64)(3) 358 6639
Tait Electronics
PO Box 1645 Christchurch
New Zealand
--
This Communication is Confidential. We only send and receive email on the
basis of the terms set out at www.taitradio.com/email_disclaimer
<http://www.taitradio.com/email_disclaimer>
|
|
From: Paul F. <pj...@wa...> - 2021-06-01 09:47:12
|
> On 1 Jun 2021, at 06:46, gangadhara reddy chavva <mee...@gm...> wrote: > > Hi, > > I am working on network routers where there will be multiple protocols running as different processes. if i want to attach the valgrind for more than one process at the same time what is the command/option to use. Hi Valgrind does not “attach” to a process, in the same way that debuggers like GDB do using the ptrace syscall. When Valgrind runs, there is only one process - the Valgrind tool. The guest application “runs” on a virtual machine within Valgrind. And this can only be done by starting the guest application. Transferring an already running process image into Valgrind (to be able to “attach”) would be fraught with serious problems (for instance, memcheck would not have the history of allocations and the init state of memory, DRD and Helgrind would not have the history of mutex locking). As already mentioned, it is possible to have Valgrind instrument child processes. A+ Paul |
|
From: gangadhara r. c. <mee...@gm...> - 2021-06-01 11:34:20
|
Thank you Paul for your detailed response which gives a clear understanding of valgrind. Thanks, Gangadhar On Tue, Jun 1, 2021 at 3:18 PM Paul Floyd <pj...@wa...> wrote: > > > > On 1 Jun 2021, at 06:46, gangadhara reddy chavva < > mee...@gm...> wrote: > > > > Hi, > > > > I am working on network routers where there will be multiple protocols > running as different processes. if i want to attach the valgrind for more > than one process at the same time what is the command/option to use. > > > Hi > > Valgrind does not “attach” to a process, in the same way that debuggers > like GDB do using the ptrace syscall. > > When Valgrind runs, there is only one process - the Valgrind tool. The > guest application “runs” on a virtual machine within Valgrind. And this can > only be done by starting the guest application. Transferring an already > running process image into Valgrind (to be able to “attach”) would be > fraught with serious problems (for instance, memcheck would not have the > history of allocations and the init state of memory, DRD and Helgrind would > not have the history of mutex locking). > > As already mentioned, it is possible to have Valgrind instrument child > processes. > > A+ > Paul > > > > _______________________________________________ > Valgrind-users mailing list > Val...@li... > https://lists.sourceforge.net/lists/listinfo/valgrind-users > |