Skip to content
Snippets Groups Projects
  • Michael Buesch's avatar
    a7290ee0
    [PATCH] Uninline sys_mmap common code (reduce binary size) · a7290ee0
    Michael Buesch authored
    
    Remove the inlining of the new vs old mmap system call common code.  This
    reduces the size of the resulting vmlinux for defconfig as follows:
    
    mb@pc1:~/develop/git/linux-2.6$ size vmlinux.mmap*
       text    data     bss     dec     hex filename
    3303749  521524  186564 4011837  3d373d vmlinux.mmapinline
    3303557  521524  186564 4011645  3d367d vmlinux.mmapnoinline
    
    The new sys_mmap2() has also one function call overhead removed, now.
    (probably it was already optimized to a jmp before, but anyway...)
    
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    a7290ee0
    History
    [PATCH] Uninline sys_mmap common code (reduce binary size)
    Michael Buesch authored
    
    Remove the inlining of the new vs old mmap system call common code.  This
    reduces the size of the resulting vmlinux for defconfig as follows:
    
    mb@pc1:~/develop/git/linux-2.6$ size vmlinux.mmap*
       text    data     bss     dec     hex filename
    3303749  521524  186564 4011837  3d373d vmlinux.mmapinline
    3303557  521524  186564 4011645  3d367d vmlinux.mmapnoinline
    
    The new sys_mmap2() has also one function call overhead removed, now.
    (probably it was already optimized to a jmp before, but anyway...)
    
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
sys_i386.c 5.74 KiB