[CLASSES]: Stop using bitfields in struct function
sizeof(struct function) stay the same and we shrink the code a bit: [acme@newtoy pahole]$ codiff build/libclasses.so.orig build/libclasses.so /home/acme/pahole/classes.c: struct function | +0 1 struct changed function__new | -41 function__declared_inline | -6 2 functions changed, 47 bytes removed [acme@newtoy pahole]$ Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
This commit is contained in:
parent
c4fa14e2ad
commit
d607b0e2fa
|
@ -171,8 +171,8 @@ struct function {
|
|||
const char *name;
|
||||
size_t cu_total_size_inline_expansions;
|
||||
uint16_t cu_total_nr_inline_expansions;
|
||||
uint8_t inlined:2;
|
||||
uint8_t external:1;
|
||||
uint8_t inlined; /* two bits used */
|
||||
uint8_t external; /* one bit used */
|
||||
/* fields used by tools */
|
||||
struct list_head tool_node;
|
||||
void *priv;
|
||||
|
|
Loading…
Reference in New Issue