kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* Pause a process execution from external program
@ 2019-06-13  7:43 Pintu Agarwal
  2019-06-13  7:52 ` Shyam Saini
  2019-06-13 15:21 ` Elias Kouskoumvekakis
  0 siblings, 2 replies; 7+ messages in thread
From: Pintu Agarwal @ 2019-06-13  7:43 UTC (permalink / raw)
  To: kernelnewbies, open list, pedro

Hi All,
I was just wondering if this is possible in the Linux world.
My requirement is:
For some reason, I want to halt/pause the execution (for some
specified time) of a running process/thread (at some location),
without modified the source, may be by firing some events/signals from
an another external program, by specifying the address location or a
line number.

Is this possible ?
May be by using some system call, or other mechanism using the process PID.
Assume that its a debugging system with all root privileges.

Basically, its just like how "gdb" is able to set the break-point in a
program, and able to stop its execution exactly at that location.
I am wondering what mechanism "gdb" uses to do this?
I tried to check here, but could find the exact place, where this is handled:
https://github.com/bminor/binutils-gdb/blob/master/gdb/breakpoint.c

Unfortunately, I cannot use "gdb", but I wanted to borrow this
mechanism only to serve my purpose.

If anyone is aware, please let me know.
I will share my findings here, after I get some useful results of my
experimentation.

Thank you for your help!


Regards,
Pintu

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-06-17 12:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-13  7:43 Pause a process execution from external program Pintu Agarwal
2019-06-13  7:52 ` Shyam Saini
2019-06-13 14:53   ` Pintu Agarwal
2019-06-13 19:43   ` Valdis Klētnieks
2019-06-17 12:20     ` Pintu Agarwal
2019-06-13 15:21 ` Elias Kouskoumvekakis
2019-06-17 12:19   ` Pintu Agarwal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).