Re: Not using the dynamic parameter kstack_depth_to_print?

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

 



On 12-02-08 05:40, Peter Teoh wrote:

Under /proc/sys/kernel there exists a parameters called kstack_depth_to_print. But I also see that a lot of other files (as listed below) not using this parameter directly from procfs.

Am I mistaken in my analysis?

./kernel/sysctl.c:
                .procname       = "kstack_depth_to_print",
                .data           = &kstack_depth_to_print,

Note that this bit is inside an "#if defined(CONFIG_X86)" block meaning that only the the one(s) below arch/x86 are related:

./arch/x86/kernel/traps_64.c:
int kstack_depth_to_print = 12;
        for(i=0; i < kstack_depth_to_print; i++) {
        kstack_depth_to_print = simple_strtoul(s,NULL,0);

./arch/x86/kernel/traps_32.c:
int kstack_depth_to_print = 24;
        for(i = 0; i < kstack_depth_to_print; i++) {
        kstack_depth_to_print = simple_strtoul(s, NULL, 0);

These do use the sysctl set value. Note that this sysctl works by just directly changing the global variable kstack_depth_to_print. That 12/24 you see is just an initial value.

Rene.

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at 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