aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/stackusage
blob: 56ef1ab670acc06700bf92fc322e0ae87831c511 (plain) (blame)
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
34
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0

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}"
ar1-0/+6 2015-03-04ARM: socfpga: Correct SCU virtual mapping in socfpgaVince Bridgers1-1/+1 2015-03-04ARM: at91/dt: keep watchdog running in idle modeMichel Marti6-6/+0 2015-03-04dts: Documentation: AT91 Watchdog, explain what atmel,idle-halt property real...Sylvain Rochet1-0/+5 2015-03-04ARM: at91/defconfig: add at91rm9200 ethernet supportAlexandre Belloni1-0/+1 2015-03-04ARM: at91/defconfig: remove CONFIG_SYSFS_DEPRECATEDAnthony Harivel1-2/+0 2015-03-04ARM: at91/dt: at91sam9260: fix usart pinctrlJonas Andersson1-2/+2 2015-03-03ARM: at91/dt: sama5d4: add missing alias for i2c0Nicolas Ferre1-0/+1 2015-03-03ARM: at91/dt: at91sam9263: Fixup sram1 device tree nodeAlexander Stein1-1/+1 2015-03-03ARM: at91: pm: fix SRAM allocationAlexandre Belloni1-12/+10 2015-03-03ARM: at91: pm: fix at91rm9200 standbyAlexandre Belloni1-1/+1 2015-03-03pm: at91: Workaround DDRSDRC self-refresh bug with LPDDR1 memories.Peter Rosin2-6/+39 2015-03-03pm: at91: pm_slowclock: fix suspend/resume hang up in timeoutsSylvain Rochet1-29/+4 2015-03-03Linux 4.0-rc2v4.0-rc2Linus Torvalds1-1/+1 2015-03-03drm/i915: Fix modeset state confusion in the load detect codeDaniel Vetter1-0/+1 2015-03-01locking/rtmutex: Set state back to running on errorSebastian Andrzej Siewior1-0/+1 2015-02-28mm: add missing __PAGETABLE_{PUD,PMD}_FOLDED definesKirill A. Shutemov6-0/+10 2015-02-28mm: page_alloc: revert inadvertent !__GFP_FS retry behavior changeJohannes Weiner1-1/+8 2015-02-28kernel/sys.c: fix UNAME26 for 4.0Jon DeVree1-1/+2 2015-02-28mm: memcontrol: use "max" instead of "infinity" in control knobsJohannes Weiner2-8/+8 2015-02-28zram: use proper type to update max_used_pagesJoonsoo Kim1-1/+1 2015-02-28drivers/rtc/rtc-ds1685.c: fix conditional in ds1685_rtc_sysfs_time_regs_{show...Joshua Kinard1-2/+2 2015-02-28nilfs2: fix potential memory overrun on inodeRyusuke Konishi1-3/+44