On Sun, Oct 23, 2011 at 1:34 PM, sri <[email protected]> wrote: > No, uname did not show anything. > Is there any way to get the kernel preemption mode, programatically? > > Thanks, > --Sri > > On Fri, Oct 21, 2011 at 6:41 PM, Daniel Baluta <[email protected]> > wrote: >> >> On Fri, Oct 21, 2011 at 2:28 PM, sri <[email protected]> wrote: >> > Hi, >> > >> > Am using kernel 2.6.18-195(centos 5.5). >> > My kernel configs have CONFIG_PREEMPT_NONE=7 and >> > "CONFIG_PREEMPT_VOLUNTERY >> > is not set". >> > How to check that preemption is really in place? >> > Is there any way to check my kernel is configured with what preemption >> > levels? >> >> Hmm, uname -a? I'm sure its in /sys somewhere.
Remember /sys is part of the official ABI. Also, you see what your config look like for sure by looking at /proc/config.gz (that file is virtual, but shows the contents of how your config file was at compile time for the running kernel. Greg _______________________________________________ Kernelnewbies mailing list [email protected] http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
