Skip to contentSkip to conversation

codiff new features

DISCUSSION Arnaldo Carvalho de Melo 1 participant 1 message Mar 3, 2009

lore
Share & tools
lore
#0 lore raw

Hi,

This is just to let you know about some new features in codiff:

commit dc5592b84424025171bf6b12d4660de5cfef76a3

Author: Arnaldo Carvalho de Melo <[email protected]>
Date:   Tue Mar 3 10:55:25 2009 -0300

codiff: Detect changes in padding and the number of holes/bit_holes

$ codiff -V /tmp/pahole.old build/pahole
/home/acme/git/pahole/pahole.c:
struct tag | +0
padding: +2
refcnt
removed: uint16_t /* 56( 0) 2( 0) */
recursivity_level
from: uint16_t /* 58( 0) 2( 0) */
to: uint16_t /* 56( 0) 2(15) */
visited
added: uint16_t /* 56(15) 2( 1) */
1 struct changed

Size is the same, but now we have padding (2 bytes).

commit 585075767171d52240457eaed58e3d1eb4823f7d

Author: Arnaldo Carvalho de Melo <[email protected]>
Date:   Tue Mar 3 10:31:14 2009 -0300

codiff: improve detection removal and addition of members in structs

Consider this case:

$ codiff -V /tmp/pahole.old build/pahole
/home/acme/git/pahole/pahole.c:
struct tag | +0
refcnt
removed: uint16_t /* 56( 0) 2( 0) */
recursivity_level
from: uint16_t /* 58( 0) 2( 0) */
to: uint16_t /* 56( 0) 2(15) */
used
added: uint16_t /* 56(15) 2( 1) */
1 struct changed

The number of members is the same and so is the size of the struct, but 'refcnt' was removed (in fact renamed to used) and 'used' was added.

- Arnaldo
--
To unsubscribe from this list: send the line "unsubscribe dwarves" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html