Making addresses from the address specified and given size in the child's address space and make it valid.

2012-04-05 Thread kota saikrishna
Hello, I am trying to inject code into the child process using ptrace utility. The function of the injecting code is to make addresses from the address specified and the size in the child's address space and make it valid(i.e to read and write ..). On my knowledge i tried to use mmap system call b

Checkpointing of simple programs in FreeBSD

2012-03-19 Thread kota saikrishna
I found that checkpointing and restart of a process is available for DragonFlyBSD. I need this feature for FreeBSD. How can I checkpoint simple programs in FreeBSD such that they can be restored and run from the checkpointed state? For example, can someone tell me the steps so that I can checkpoint

How to use pfind in freeBSD

2012-03-16 Thread kota saikrishna
I need to get process data structure using a pid. I found the pfind function which returns struct proc * but when i tried to use pfind function it is showing ---undefined reference to `pfind' Can any one suggest how to use pfind() function? ___ freebsd-