[OpenBIOS] [PATCH v3 3/5] Pretty-print reg property

Tarl Neustaedter tarl-b2 at tarl.net
Sun Dec 5 03:08:34 CET 2010


On 2010-12-4 8:54 AM, Andreas Färber wrote:
> [...]
> Just wondering, what does /virtual-memory at 0,0 contain?
> /virtual-memory is where I saw "available" and "translations" properties on 
> a Sun Fire V480.

Yup. In a recent (sun4v, T5240) system:

{0} ok cd /virtual-memory
{0} ok .properties
translations             00 00 00 00 00 00 20 00 00 00 00 00 00 9f e0 00 ...
existing                 00000000 00000000 00000800 00000000
                          fffff800 00000000 00000800 00000000
available                fffff800 00000000 000007fc 00000000
                          00000001 00000000 000007ff 00000000
                          00000000 ffff0000 00000000 0000e000
                          00000000 00000000 00000000 f0000000
                          00000000 fe99e000 00000000 00002000
                          00000000 fe986000 00000000 00012000
                          00000000 fe89c000 00000000 00090000
                          00000000 f2200000 00000000 0c688000
page-size                00002000
name                     virtual-memory
{0} ok

The translations property is usually *huge*, and we (sun at oracle) don't 
pretty-print it. It gets dumped out as a byte-array and we stop printing 
anything after the 16th byte. On the rare occasion we need to look at the 
values inside, we dump the property itself:

{0} ok " translations" get-property
fff47fe0 168 0 {0} ok drop dump
           \/  1  2  3  4  5  6  7   8  9  a  b  c  d  e  f  v123456789abcdef
fff47fe0  00 00 00 00 00 00 20 00  00 00 00 00 00 9f e0 00  ...... .......`.
fff47ff0  80 00 00 00 0e 40 27 40  00 00 00 00 f0 00 00 00  .....@'@....p...
fff48000  00 00 00 00 00 40 00 00  80 00 00 00 0e 00 07 50  ..... at .........P
fff48010  00 00 00 00 fe 88 80 00  00 00 00 00 00 00 a0 00  ....~......... .
fff48020  80 00 00 0f ff 98 87 50  00 00 00 00 fe 89 20 00  .......P....~. .
fff48030  00 00 00 00 00 00 a0 00  80 00 00 0f ff 99 47 50  ...... .......GP
fff48040  00 00 00 00 fe 92 c0 00  00 00 00 00 00 05 a0 00  ....~. at ....... .
fff48050  80 00 00 0f ff 89 67 50  00 00 00 00 fe 99 80 00  ......gP....~...
fff48060  00 00 00 00 00 00 20 00  80 00 00 0f ff 98 67 50  ...... .......gP
fff48070  00 00 00 00 fe 99 a0 00  00 00 00 00 00 00 40 00  ....~. ....... at .
fff48080  80 00 00 0f ff 9a 07 50  00 00 00 00 fe 9a 00 00  .......P....~...
fff48090  00 00 00 00 00 01 20 00  80 00 00 0f ff 9a 47 50  ...... .......GP
fff480a0  00 00 00 00 fe 9b 20 00  00 00 00 00 00 08 00 00  ....~. .........
fff480b0  80 00 00 0f ff 90 07 50  00 00 00 00 fe a3 20 00  .......P....~# .
fff480c0  00 00 00 00 00 38 e0 00  80 00 00 0f ff 9b 67 50  .....8`.......gP
fff480d0  00 00 00 00 fe dc 00 00  00 00 00 00 00 24 00 00  ....~\.......$..
fff480e0  80 00 00 0f ff d9 27 50  00 00 00 00 ff f0 00 00  .....Y'P.....p..
fff480f0  00 00 00 00 00 04 00 00  80 00 00 0f ff d4 47 50  .............TGP
fff48100  00 00 00 00 ff f4 40 00  00 00 00 00 00 00 c0 00  .....t at .......@.
fff48110  80 00 00 0f ff d8 47 50  00 00 00 00 ff f5 00 00  .....XGP.....u..
fff48120  00 00 00 00 00 02 00 00  80 00 00 0f ff fd 27 50  .............}'P
fff48130  00 00 00 00 ff f7 00 00  00 00 00 00 00 01 00 00  .....w..........
  More [<space>,<cr>,q,n,p,c] ?

More commonly, we simply swear at the property when we have to do a "prtconf 
-pv" from Solaris, which prints every property of every node - and often more 
than half the resulting output is this property by itself.




More information about the OpenBIOS mailing list