* Question about output for PAL_VM_TR_READ call
@ 2007-05-24 14:44 Christian Kandeler
2007-05-24 16:18 ` Luck, Tony
0 siblings, 1 reply; 2+ messages in thread
From: Christian Kandeler @ 2007-05-24 14:44 UTC (permalink / raw)
To: linux-ia64
Hello,
I'd like to know why in the tr_info function in arch/ia64/kernel/palinfo.c the
ppn and vpn values are left-shifted by 12 bits in the sprintf call. They are
supposed to be page numbers, but this shift turns them into byte addresses,
doesn't it?
Regards,
Christian Kandeler
^ permalink raw reply [flat|nested] 2+ messages in thread
* RE: Question about output for PAL_VM_TR_READ call
2007-05-24 14:44 Question about output for PAL_VM_TR_READ call Christian Kandeler
@ 2007-05-24 16:18 ` Luck, Tony
0 siblings, 0 replies; 2+ messages in thread
From: Luck, Tony @ 2007-05-24 16:18 UTC (permalink / raw)
To: linux-ia64
> I'd like to know why in the tr_info function in arch/ia64/kernel/palinfo.c the
> ppn and vpn values are left-shifted by 12 bits in the sprintf call. They are
> supposed to be page numbers, but this shift turns them into byte addresses,
> doesn't it?
Looks like a mistake ... 'ppn' and 'vpn' sound like they stand for physical and
virtual page number, but we are printing addresses.
Printing "page numbers" here might be confusing (in what pagesize units should
we compute the page number? Current complied in PAGE_SIZE for the kernel? Or
the "ps" for this entry?
It would be better to just change the tags to "phys" and "virt" and keep the
numeric field the same.
Any change raises a user-space API change issue though ... does anyone know
of any applications that look at the tr_info file? It seems highly improbable
(if someone had written code to parse this, perhaps they might have noticed
that this has been wrong since the dawn of time ... well at least since 2.4.0).
-Tony
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-05-24 16:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-24 14:44 Question about output for PAL_VM_TR_READ call Christian Kandeler
2007-05-24 16:18 ` Luck, Tony
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox