[PATCH 5/6] kbuild: Use single pass kallsyms

2014-02-18 Thread Andi Kleen
From: Andi Kleen kallsyms currenly links the kernel upto three times (in addition to another one for modpost checks) Linking can be a quite slow operation, especially when the kernel has a lot of debug information (lots of IO), or Link Time Optimization is used. Final linking is also a non para

[PATCH 5/6] kbuild: Use single pass kallsyms

2014-02-14 Thread Andi Kleen
From: Andi Kleen kallsyms currenly links the kernel upto three times (in addition to another one for modpost checks) Linking can be a quite slow operation, especially when the kernel has a lot of debug information (lots of IO), or Link Time Optimization is used. Final linking is also a non para

Re: [PATCH 5/6] kbuild: Use single pass kallsyms

2014-02-08 Thread Markus Trippelsdorf
On 2014.02.08 at 08:01 -0800, Andi Kleen wrote: > > diff --git a/scripts/link-vmlinux.sh b/scripts/link-vmlinux.sh > > index 4c5435f420a6..06469556c580 100644 > > --- a/scripts/link-vmlinux.sh > > +++ b/scripts/link-vmlinux.sh > > @@ -213,7 +213,7 @@ if [ -n "${CONFIG_KALLSYMS}" ] ; then > > > >

Re: [PATCH 5/6] kbuild: Use single pass kallsyms

2014-02-08 Thread Andi Kleen
> diff --git a/scripts/link-vmlinux.sh b/scripts/link-vmlinux.sh > index 4c5435f420a6..06469556c580 100644 > --- a/scripts/link-vmlinux.sh > +++ b/scripts/link-vmlinux.sh > @@ -213,7 +213,7 @@ if [ -n "${CONFIG_KALLSYMS}" ] ; then > > info PATCHFILE vmlinux > OFF=$(${OBJDUMP} --sectio

Re: [PATCH 5/6] kbuild: Use single pass kallsyms

2014-02-08 Thread Markus Trippelsdorf
On 2014.02.08 at 08:50 +0100, Andi Kleen wrote: > -vmlinux_link "${kallsymso}" vmlinux > +vmlinux_link "${kallsymsso}" vmlinux > +if [ -n "${CONFIG_KALLSYMS}" ] ; then > + # Now regenerate the kallsyms table and patch it into the > + # previously linked file. We tell kallsyms to pad it > +

[PATCH 5/6] kbuild: Use single pass kallsyms

2014-02-07 Thread Andi Kleen
kallsyms currenly links the kernel upto three times (in addition to another one for modpost checks) Linking can be a quite slow operation, especially when the kernel has a lot of debug information (lots of IO), or Link Time Optimization is used. Final linking is also a non parallelizable bottlnec