lkml.org 
[lkml]   [2014]   [May]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 3/8] list: Out of line INIT_LIST_HEAD and list_del
From
Date
On Fri, 2014-05-16 at 14:43 -0700, Andi Kleen wrote:
> From: Andi Kleen <ak@linux.intel.com>
>
> 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@linux.intel.com>
> ---

> +
> +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 ;)




\
 
 \ /
  Last update: 2014-05-17 02:41    [W:0.158 / U:0.528 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site