All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ed L Cashin <ecashin@uga.edu>
To: sparclinux@vger.kernel.org
Subject: Re: finding origin of dTLB miss
Date: Fri, 16 Jan 2004 20:29:56 +0000	[thread overview]
Message-ID: <87wu7rfxh7.fsf@uga.edu> (raw)
In-Reply-To: <87isjcg7g3.fsf@uga.edu>

Thanks very much for the helpful response.

"David S. Miller" <davem@redhat.com> writes:

...
> The userland memory maps have nothing to do with where this fault
> is occuring.  If TSTATE_PRIV is true, then absolutely the fault is occuring
> in the kernel somewhere.
>
> Also, the kernel and the user live in two seperate address spaces on sparc64.

AH!  I may have known that at some point, but I had definitely
regressed into i386 assumptions.

> Therefore, virtual address "X" means something totally different when in kernel
> mode than the same virtual address "X" means in user mode.  Comparing raw
> virtual addresses does not tell you if something is in the kernel or not, you must
> combine the state of TSTATE_PRIV and the virtual address to determine where
> something really is.
>
>> Ksymoops doesn't say anything helpful when I input the line, "TSTATE:
>> 0000000011009606 TPC: c2060000".  
>
> That number after "TPC" is not the program counter, it is the instruction
> itself.
>
> Get the real TPC value from regs->tpc at the time of the fault, the look
> up that instruction in the 'vmlinux' kernel image either using 'objdump'
> or 'gdb'.

Oh, thanks.  I didn't notice that get_fault_insn dereferences
regs->tpc.  

I was able to find the kernel code that is inducing the dTLB miss
using gdb.  :)

-- 
--Ed L Cashin            |   PGP public key:
  ecashin@uga.edu        |   http://noserose.net/e/pgp/


      parent reply	other threads:[~2004-01-16 20:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-15 22:42 finding origin of dTLB miss Ed L Cashin
2004-01-15 22:42 ` David S. Miller
2004-01-16 20:29 ` Ed L Cashin [this message]

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=87wu7rfxh7.fsf@uga.edu \
    --to=ecashin@uga.edu \
    --cc=sparclinux@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.