From: mulyadi.santosa@gmail.com (Mulyadi Santosa)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Softlock OOPS dump
Date: Mon, 6 Feb 2012 14:45:56 +0700 [thread overview]
Message-ID: <CAGdaadZ6ooQZLJCA9ZHGBAMFEr6texABG7mXJUO-KEE5WoWifQ@mail.gmail.com> (raw)
In-Reply-To: <CACsJYqrBtvLYM0dHLhM1WVyn_+W4t9DBBuk03kAw70+DpW4kyg@mail.gmail.com>
Hi....
On Mon, Feb 6, 2012 at 14:13, devendra rawat
<devendra.rawat.singh@gmail.com> wrote:
>
> Hi All,
>
> I am having a PPC system running Windriver linux. System is restarting
> because of watchdog.
> System was restated because no scheduling took place for 15.7 seconds. I
> want to figure out which function/ISR/routine
> was the kernel executing when this softlockup happened and at what place was
> the execution going. The NIP (next instruction pointer) reg. is not giving
> the
> symbol name as the "switch" module that created the problem was dynamically
> loaded.
Not sure if it will help much, but in x86, there is /sys entries that
help you to determine the logical memory address of module in virtual
memory after it's loaded. Check this out:
$ grep '' /sys/module/cpufreq_conservative/sections/*
/sys/module/cpufreq_conservative/sections/.bss:0xf83e332c
/sys/module/cpufreq_conservative/sections/.data:0xf83e2fa0
/sys/module/cpufreq_conservative/sections/.exit.text:0xf83e2bbc
/sys/module/cpufreq_conservative/sections/.gnu.linkonce.this_module:0xf83e31e0
/sys/module/cpufreq_conservative/sections/.init.text:0xf83e6000
/sys/module/cpufreq_conservative/sections/.rodata.str1.1:0xf83e2bd5
/sys/module/cpufreq_conservative/sections/.strtab:0xf83e6888
/sys/module/cpufreq_conservative/sections/.symtab:0xf83e6058
/sys/module/cpufreq_conservative/sections/.text:0xf83e2000
So, if you had an address, you could compare it with the above
addresses that mention the start of each sections of ELF structure in
the module. What you found is likely the offset. I am sure you can get
the idea and continue on your own at this point :)
--
regards,
Mulyadi Santosa
Freelance Linux trainer and consultant
blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com
next prev parent reply other threads:[~2012-02-06 7:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-06 7:13 Softlock OOPS dump devendra rawat
2012-02-06 7:45 ` Mulyadi Santosa [this message]
2012-02-07 3:07 ` Fredrick
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAGdaadZ6ooQZLJCA9ZHGBAMFEr6texABG7mXJUO-KEE5WoWifQ@mail.gmail.com \
--to=mulyadi.santosa@gmail.com \
--cc=kernelnewbies@lists.kernelnewbies.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).