[Crash-utility] Difference in vtop with and without PAE ?

Olivier Daudel olivier.daudel at u-paris10.fr
Fri Jul 7 17:31:47 UTC 2006


Hello,
 
1) I think, there is a difference in vtop when PAE is not configured and
is configured (kernel 2.6.11)
Any reason ? 
 
 
I use a very simple program
 
#include <stdio.h>
#include <stdlib.h>
int var12=12;
main()
{
        printf("@var12 : %p\n", &var12);
        pause();
}
 
 
 
 
***************PAE not configured**************
 
[root at fedora4 ~]# ./essai &
[1] 3196
[root at fedora4 ~]# @var12 : 0x80495a8
 
[root at fedora4 ~]# crash -s
crash> set 3196
[.]
crash> vtop 0x80495a8
VIRTUAL   PHYSICAL
80495a8   1e28c5a8
 
PAGE DIRECTORY: dda2f000
  PGD: dda2f080 => 1f0a7067
  PMD: dda2f080 => 1f0a7067
  PTE: 1f0a7124 => 1e28c067
 PAGE: 1e28c000 <----------------------------
 
[...]
 
PAGE is the physical address of the page
 
***************PAE configured ******************
 
[root at fedora4 ~]# ./essai &
[2] 7268
[root at fedora4 ~]# @var12 : 0x80495a8
 
[root at fedora4 ~]# crash -s
crash> set 7268
[.]
crash> vtop 0x80495a8
VIRTUAL   PHYSICAL
80495a8   6d925a8 
 
PAGE DIRECTORY: dfe08560
  PGD: dfe08560 => 1b223001
  PMD: 1b223200 => 187bf067
  PTE: 187bf248 => 6d92067
 PAGE:  6d925a8 <----------------------------------
 
[...]
 
PAGE is really the physical adress of var12
 
 
 
 
2) Also an option should be nice in rd to see hexadecimal without the
ascii part
 
With PAE on, if i want du see the 4 references in the PGD, i am not
really interested
in the ascii part ?
 
crash> rd -64 df7e2b60 4
df7e2b60:  000000001b086001 000000001c932001   .`....... ......
df7e2b70:  000000001f991001 0000000000004001   ......... at ......
crash> rd -32 df7e2b60 8
df7e2b60:  1b086001 00000000 1c932001 00000000   .`....... ......
df7e2b70:  1f991001 00000000 00004001 00000000   ......... at ......
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/crash-utility/attachments/20060707/67b2276b/attachment.htm>


More information about the Crash-utility mailing list