summaryrefslogtreecommitdiff
path: root/scripts/stackusage
blob: 8cf26640ef8a989a7d667bb6fad67f1afaea9336 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/sh

outfile=""
now=`date +%s`

while [ $# -gt 0 ]
do
    case "$1" in
        -o)
	    outfile="$2"
	    shift 2;;
	-h)
	    echo "usage: $0 [-o outfile] <make options/args>"
	    exit 0;;
	*)  break;;
    esac
done

if [ -z "$outfile" ]
then
    outfile=`mktemp --tmpdir stackusage.$$.XXXX`
fi

KCFLAGS="${KCFLAGS} -fstack-usage" make "$@"

# Prepend directory name to file names, remove column information,
# make file:line/function/size/type properly tab-separated.
find . -name '*.su' -newermt "@${now}" -print |                     \
    xargs perl -MFile::Basename -pe                                 \
        '$d = dirname($ARGV); s#([^:]+:[0-9]+):[0-9]+:#$d/$1\t#;' | \
    sort -k3,3nr > "${outfile}"

echo "$0: output written to ${outfile}"
ollerMiquel Raynal 2018-10-02dt-bindings/interrupt-controller: Update Marvell ICU bindingsMiquel Raynal 2018-10-02dt-bindings/interrupt-controller: Fix Marvell ICU length in the exampleMiquel Raynal 2018-10-02dt-bindings: irqchip: renesas-irqc: Document r8a7744 supportBiju Das 2018-10-02dt-bindings: irqchip: renesas-irqc: Document R-Car E3 supportGeert Uytterhoeven 2018-08-28dt-bindings: riscv,cpu-intc: Cleanups from a missed reviewPalmer Dabbelt 2018-08-26Merge branch 'irq-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/ker...Linus Torvalds 2018-08-24Merge tag 'irqchip-4.19-2' of git://git.kernel.org/pub/scm/linux/kernel/git/m...Thomas Gleixner 2018-08-20dt-bindings: irqchip: renesas-irqc: Document r8a774a1 supportFabrizio Castro 2018-08-19Merge tag 'riscv-for-linus-4.19-mw0' of git://git.kernel.org/pub/scm/linux/ke...Linus Torvalds 2018-08-18Merge tag 'tty-4.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gre...Linus Torvalds 2018-08-14Merge tag 'devicetree-for-4.19' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds 2018-08-13Merge branch 'irq-core-for-linus' of git://git.kernel.org/pub/scm/linux/kerne...Linus Torvalds 2018-08-13dt-bindings: interrupt-controller: SiFive Plaform Level Interrupt ControllerPalmer Dabbelt 2018-08-13dt-bindings: interrupt-controller: RISC-V local interrupt controllerPalmer Dabbelt 2018-07-25dt-bindings: remove 'interrupt-parent' from bindingsRob Herring 2018-07-19dt-bindings: irqchip: renesas-irqc: Document r8a77980 supportSergei Shtylyov 2018-07-19dt-bindings: irqchip: renesas-irqc: Document r8a77470 supportBiju Das 2018-07-19irqchip/ingenic: Add support for the JZ4725B SoCPaul Cercueil 2018-07-06dt-bindings: interrupt-controller: add binding for mt6765Mars Cheng 2018-06-26dt-bindings: Fix unbalanced quotation marksJonathan Neuschäfer