Adding sysctl varaible into kernel.
Hi,
Does anybody know how to add sysctl variable into kernel ? Maybe there is some function or I should change the kernel source?
Signature · 2 lines
Pozdrawiam, Jan Opacki
Hi,
Does anybody know how to add sysctl variable into kernel ? Maybe there is some function or I should change the kernel source?
Regards,
apacz
Quoted 6 lines · authn
Hi,
Does anybody know how to add sysctl variable into kernel ? Maybe there is some function or I should change the kernel source?Regards,
apacz
register_sysctl_table is the function you are looking for.
Signature · 8 lines
/*************************************************** *Neil Horman *Software Engineer *Red Hat, Inc. *[email protected] *gpg keyid: 1024D / 0x92A74FA1 *http://pgp.mit.edu ***************************************************/
Forcing a core dump
In reply to authnHello:
Is it possible to force a running program to generate a core dump. My
problem is that I have a program that, from time to time, it freezes and I want to know what's going on.
Thanks,
Darío
-
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: Forcing a core dump
Quoted 4 lines · Darío Mariani
Hello:
Is it possible to force a running program to generate a core dump. My
problem is that I have a program that, from time to time, it freezes and I want to know what's going on.
Others may correct me if I'm wrong, however if you issue a SIGSTOP or SIGKILL
most programs will coredump will they not? You have to enable core dumping in your environment using ulimit -c (number in KB).
Plus you should be able to attach gdb if its been compiled with debugging
symbols, and even if it hasn't you will still get some debug control.
Signature · 5 lines
-EB - To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: Forcing a core dump
In reply to Darío MarianiQuoted 3 lines
Is it possible to force a running program to generate a core dump. My
problem is that I have a program that, from time to time, it freezes and I want to know what's going on.
If it's still attached to its terminal, Control-\ usually works. Failing that, try kill -QUIT <pid_of_your_program>.
Steven Smith,
[email protected].
Signature · 2 lines
One day, I'm going to get an Alice-bot to answer all my email for me, and see how long it takes people to notice.
Re: Forcing a core dump
In reply to Darío MarianiOn Fri, 2004-08-20 13:12:37 -0300, Darío Mariani <[email protected]> wrote in message <[email protected]>:
Quoted 4 lines
Hello:
Is it possible to force a running program to generate a core dump. My
problem is that I have a program that, from time to time, it freezes and I want to know what's going on.
SIGABRT is ment to do exactly that. However, "ulimit" must allow for the core to be created and core dumps won't work with multi-threaded programs (I heared rumors that this was changed in 2.6.x).
Also, in cases of a freeze, attaching a debugger (gdb) might help as much:
$ gdb /path/to/your/program `pidof program`
MfG, JBG
Signature · 4 lines
Jan-Benedict Glaw [email protected] . +49-172-7608481 _ O _ "Eine Freie Meinung in einem Freien Kopf | Gegen Zensur | Gegen Krieg _ _ O fuer einen Freien Staat voll Freier Bürger" | im Internet! | im Irak! O O O ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));