Re: [PATCH 3/8] list: Out of line INIT_LIST_HEAD and list_del

From: Eric Dumazet
Date: Fri May 16 2014 - 20:03:33 EST


On Fri, 2014-05-16 at 14:43 -0700, Andi Kleen wrote:
> From: Andi Kleen <ak@xxxxxxxxxxxxxxx>
>
> Out of lining these two inlines saves ~21k on my vmlinux
>
> 14152713 2003976 1507328 17664017 10d8811 vmlinux-before-list
> 14131431 2008136 1507328 17646895 10d452f vmlinux-list
>
> Signed-off-by: Andi Kleen <ak@xxxxxxxxxxxxxxx>
> ---

> +
> +void list_del(struct list_head *entry)
> +{
> + __list_del(entry->prev, entry->next);
> + entry->next = LIST_POISON1;
> + entry->prev = LIST_POISON2;
> +}
> +EXPORT_SYMBOL(list_del);

Have you tried :

CONFIG_DEBUG_LIST=y

Function will be doubly defined/exported then....

BTW, my vmlinux is more like

$ size vmlinux
text data bss dec hex filename
8233991 1743032 1904640 11881663 b54cbf vmlinux

Seems I beat you without even trying ;)


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/