scripts: add inline_func.sh to print the inlined functions
authorWu Zhangjin <wuzhangjin@gmail.com>
Mon, 10 Jan 2011 17:01:31 +0000 (01:01 +0800)
committerWu Zhangjin <wuzhangjin@gmail.com>
Mon, 6 Jun 2011 12:32:29 +0000 (20:32 +0800)
commite91b39db8da181a651f0fbe532aca0fff6d709a9
tree5409a9c9a12e73a5b2707542251a45d104ee59a1
parentf0ac9a23f429c932010c4b105092785c98cb7e4b
scripts: add inline_func.sh to print the inlined functions

This tool works with MEASURE_INLINES=y and MIPS_DISABLE_WERROR=y to
prints the inlined functions in order of called times, to get the
position of those functions, please use ctags or cscope.

Note: For powerpc, MIPS_DISABLE_WERROR=y should be replaced with
PPC_DISABLE_WERROR=y, for the other archs, please find their way to
disable -Werror, otherwise you may be impossible to get the full inline
statistic.

Usage(e.g. MIPS cross compiling):

$ make ARCH=mips CROSS_COMPILE=mipsel-unknown-linux-uclibc- -j2 2>typescript
$ scripts/inline_func.sh

Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com>
scripts/inline_func.sh [new file with mode: 0755]