From owner-freebsd-questions Mon Nov 6 00:15:45 1995 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id AAA12933 for questions-outgoing; Mon, 6 Nov 1995 00:15:45 -0800 Received: from ccslinux.dlsu.edu.ph (root@linux1.dlsu.edu.ph [165.220.8.15]) by freefall.freebsd.org (8.6.12/8.6.6) with SMTP id AAA12920 for ; Mon, 6 Nov 1995 00:15:31 -0800 Received: by ccslinux.dlsu.edu.ph (Linux Smail3.1.28.1 #13) Sender: owner-questions@FreeBSD.org Precedence: bulk id m0tCMUV-000A5RC; Mon, 6 Nov 95 16:01 GMT+0800 Date: Mon, 6 Nov 1995 16:01:14 +48000 From: Gavin Lim Subject: /proc filesystem To: questions@FreeBSD.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Hello guys! We're trying to save a process's state into a file. This would include the proc structure, user structure, kernel stack, text, data, and stack regions of the process. Is it possible to do this through the /proc filesystem? If so, how do you program /proc? What are the file formats? What do the files (e.g. mem, status, regs, ctl, ...) stand for? What references can you recommend? Another option we thought about is through the generation of a core file. Does the core file contain the entire process state? Any other suggestions saving the process state? We'd really appreciate all the help you can give us. Thanks! Please answer... :-( ============================================================================== Gavin Lim Gavin@linux1.dlsu.edu.ph ==============================================================================