Re: reading from /proc/kcore

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

    I will be writing a kernel loadable module which will save the kernel
state. It will not be done form userland. I am working on this project
called kernel state visualization, where I need to save the kernel state
and then parse it to give information like dentries, inodes, etc in text
or HTML pages.
    Thanks for pointing me to swsup2. I will have a look at it.

regards,

Sabyasachi Pradhan

On Fri, 18 Nov 2005, Jan Hudec wrote:

> On Thu, Nov 17, 2005 at 19:58:27 -0500, Sabyasachi Pradhan wrote:
> >          I need to save the current state of the kernel. For this I am
> > reading the /proc/kcore file. As my understanding goes /proc/kcore gives
> > the whole memory of the system and is dynamic. Is it possible to use a
> > kernel lock mechanism like BKL so that when reading from this file, the
> > file doesnt change ? Any comments on this approach or any new suggestions
> > will be appretiated.
>
> You are joking, right? You want to save kernel state from userland?
>
> Anyway, why do you want to save the state?
>
> There is already code, that saves kernel state -- swsusp2. Have you looked at
> it?
>
> --
> 						 Jan 'Bulb' Hudec <bulb@xxxxxx>
>

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux