From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavel Emelyanov Subject: Re: [PATCH 6/7] proc: Introduce the /proc//dump file Date: Sat, 23 Jul 2011 12:11:37 +0400 Message-ID: <4E2A8239.5060908@parallels.com> References: <4E204466.8010204@parallels.com> <4E204500.6040800@parallels.com> <20110721064408.GR3455@htj.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20110721064408.GR3455-Gd/HAXX7CRxy/B6EtB590w@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Tejun Heo Cc: Glauber Costa , Cyrill Gorcunov , Nathan Lynch , Linux Containers , Serge Hallyn , Daniel Lezcano List-Id: containers.vger.kernel.org On 07/21/2011 10:44 AM, Tejun Heo wrote: > Hello, > > On Fri, Jul 15, 2011 at 05:47:44PM +0400, Pavel Emelyanov wrote: >> An image read from file contains task's registers and information >> about its VM. Later this image can be execve-ed causing recreation >> of the previously read task state. >> >> The file format is my own, very simple. Introduced to make the code >> as simple as possible. Better file format (if any) is to be discussed. > > First of all, I don't really think we need to bake in process dumper > into the kernel. Neither do I :) I just didn't have better candidate in mind and wanted to discuss this part (see below). > Most of information dumped here is already available > through /proc and ptrace and we can add the missing pieces like the > suggested proc vma fds. Let's start with the simplest things. Can you suggest the best (from you pov) way for dumping all the registers, tls and the anonymous pages through the existing interfaces? Thanks, Pavel