diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2008-02-07 18:03:04 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-17 11:40:46 -0400 |
commit | 28d23128814dca9b90f04739b12f967f4248c584 (patch) | |
tree | 13ddc8ea51fcfb5168bab5ec536bc1f11a44888c /arch/x86/ia32/sys_ia32.c | |
parent | 52b387197beb5c89f734f057553fdf7d417b448c (diff) |
x86: reducing debuginfo size by removing unneeded includes
I found it strange that the struct sk_buff definition was found
inside the DWARF debugging sections in the generated object, so I verified
and found that there is no need for the files that bring struct sk_buff
definition into this file and verified also that sk_buff is not brought
in indirectly too, thru other headers.
I went on and removed many other unneeded includes and the end
result is:
[acme@doppio net-2.6]$ l /tmp/sys_ia32.o.before /tmp/sys_ia32.o.after
-rw-rw-r-- 1 acme acme 185240 2008-02-06 19:19 /tmp/sys_ia32.o.after
-rw-rw-r-- 1 acme acme 248328 2008-02-06 19:00 /tmp/sys_ia32.o.before
Almost 64KB only on this object file!
There were no other side effects from this change:
[acme@doppio net-2.6]$ objcopy -j "text" /tmp/sys_ia32.o.before /tmp/text.before
[acme@doppio net-2.6]$ objcopy -j "text" /tmp/sys_ia32.o.after /tmp/text.after
[acme@doppio net-2.6]$ md5sum /tmp/text.before /tmp/text.after
b7ac9b17942add68494e698e4f965d36 /tmp/text.before
b7ac9b17942add68494e698e4f965d36 /tmp/text.after
One of the complaints about using tools such as systemtap is
that one has to install the huge kernel-debuginfo package:
[acme@doppio net-2.6]$ rpm -q --qf "%{size}\n" kernel-rt-debuginfo
471737710
543867594
[acme@doppio net-2.6]$
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/ia32/sys_ia32.c')
-rw-r--r-- | arch/x86/ia32/sys_ia32.c | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/arch/x86/ia32/sys_ia32.c b/arch/x86/ia32/sys_ia32.c index abf71d26fc2a..44d931f08414 100644 --- a/arch/x86/ia32/sys_ia32.c +++ b/arch/x86/ia32/sys_ia32.c | |||
@@ -26,51 +26,27 @@ | |||
26 | #include <linux/file.h> | 26 | #include <linux/file.h> |
27 | #include <linux/signal.h> | 27 | #include <linux/signal.h> |
28 | #include <linux/syscalls.h> | 28 | #include <linux/syscalls.h> |
29 | #include <linux/resource.h> | ||
30 | #include <linux/times.h> | 29 | #include <linux/times.h> |
31 | #include <linux/utsname.h> | 30 | #include <linux/utsname.h> |
32 | #include <linux/smp.h> | ||
33 | #include <linux/smp_lock.h> | 31 | #include <linux/smp_lock.h> |
34 | #include <linux/sem.h> | ||
35 | #include <linux/msg.h> | ||
36 | #include <linux/mm.h> | 32 | #include <linux/mm.h> |
37 | #include <linux/shm.h> | ||
38 | #include <linux/slab.h> | ||
39 | #include <linux/uio.h> | 33 | #include <linux/uio.h> |
40 | #include <linux/nfs_fs.h> | ||
41 | #include <linux/quota.h> | ||
42 | #include <linux/module.h> | ||
43 | #include <linux/sunrpc/svc.h> | ||
44 | #include <linux/nfsd/nfsd.h> | ||
45 | #include <linux/nfsd/cache.h> | ||
46 | #include <linux/nfsd/xdr.h> | ||
47 | #include <linux/nfsd/syscall.h> | ||
48 | #include <linux/poll.h> | 34 | #include <linux/poll.h> |
49 | #include <linux/personality.h> | 35 | #include <linux/personality.h> |
50 | #include <linux/stat.h> | 36 | #include <linux/stat.h> |
51 | #include <linux/ipc.h> | ||
52 | #include <linux/rwsem.h> | 37 | #include <linux/rwsem.h> |
53 | #include <linux/binfmts.h> | ||
54 | #include <linux/init.h> | ||
55 | #include <linux/aio_abi.h> | ||
56 | #include <linux/aio.h> | ||
57 | #include <linux/compat.h> | 38 | #include <linux/compat.h> |
58 | #include <linux/vfs.h> | 39 | #include <linux/vfs.h> |
59 | #include <linux/ptrace.h> | 40 | #include <linux/ptrace.h> |
60 | #include <linux/highuid.h> | 41 | #include <linux/highuid.h> |
61 | #include <linux/vmalloc.h> | ||
62 | #include <linux/fsnotify.h> | ||
63 | #include <linux/sysctl.h> | 42 | #include <linux/sysctl.h> |
64 | #include <asm/mman.h> | 43 | #include <asm/mman.h> |
65 | #include <asm/types.h> | 44 | #include <asm/types.h> |
66 | #include <asm/uaccess.h> | 45 | #include <asm/uaccess.h> |
67 | #include <asm/semaphore.h> | 46 | #include <asm/semaphore.h> |
68 | #include <asm/atomic.h> | 47 | #include <asm/atomic.h> |
69 | #include <asm/ldt.h> | ||
70 | |||
71 | #include <net/scm.h> | ||
72 | #include <net/sock.h> | ||
73 | #include <asm/ia32.h> | 48 | #include <asm/ia32.h> |
49 | #include <asm/vgtod.h> | ||
74 | 50 | ||
75 | #define AA(__x) ((unsigned long)(__x)) | 51 | #define AA(__x) ((unsigned long)(__x)) |
76 | 52 | ||