]> xenbits.xensource.com Git - xen.git/commit
xen/trace: Fix trace metadata page count calculation (revert fbf96e6)
authorGeorge Dunlap <george.dunlap@citrix.com>
Fri, 30 Sep 2016 14:42:56 +0000 (15:42 +0100)
committerGeorge Dunlap <george.dunlap@citrix.com>
Tue, 11 Oct 2016 13:23:52 +0000 (14:23 +0100)
commit71b8b46111219a2f83f4f9ae06ac5409744ea86e
tree559851ecd471be82ddea5fff3865ee09295089dd
parent68dc7185cbffab34211c77339874f2ea517990fd
xen/trace: Fix trace metadata page count calculation (revert fbf96e6)

Changeset fbf96e6, "xentrace: correct formula to calculate
t_info_pages", broke the trace metadata page count calculation, by
mistaking t_info_first_offset as denominated in bytes, when in fact it
is denominated in words (uint32_t).

Effectively revert that change, and put a comment there to reduce the
chance that someone will make that mistake in the future.

Reviewed-by: Igor Druzhinin <igor.druzhinin@citrix.com>
Tested-by: Igor Druzhinin <igor.druzhinin@citrix.com>
Signed-off-by: George Dunlap <george.dunlap@citrix.com>
xen/common/trace.c