summaryrefslogtreecommitdiff
path: root/scripts/stackusage
blob: 56ef1ab670acc06700bf92fc322e0ae87831c511 (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
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}"
tcon?id=9141461d81717ef94b7d38a4b3581114ac1307db'>extcon: arizona: No need to switch back down HPDET rangesCharles Keepax 2014-01-07extcon: arizona: Fix race with microphone detection and removalCharles Keepax 2014-01-07extcon: arizona: Fix reset of HPDET after race with removalCharles Keepax 2014-01-07extcon: arizona: Add defines for microphone detection levelsCharles Keepax 2014-01-07extcon: palmas: Handle ID interrupt properly using USB_ID_INT_SRCGeorge Cherian 2014-01-07extcon: palmas: Added a new compatible type *ti,palmas-usb-vid*Kishon Vijay Abraham I 2014-01-07extcon: gpio: Request gpio pin before modifying its stateGuenter Roeck 2013-11-26extcon: remove freed groups caused the panic or warning in unregister flowWang, Xiaoming 2013-11-26extcon: arizona: Get pdata from arizona structure not deviceCharles Keepax 2013-09-26Merge tag 'extcon-next-for-3.13' of git://git.kernel.org/pub/scm/linux/kernel...Greg Kroah-Hartman 2013-09-27extcon: Simplify extcon_dev_register() prototype by removing unnecessary para...Chanwoo Choi 2013-09-27extcon: Change field type of 'dev' in extcon_dev structureChanwoo Choi 2013-09-27extcon: arizona: Don't require micbias to be shifted in pdataCharles Keepax 2013-09-27extcon: arizona: Correct typo in headphone detect range transitionsCharles Keepax 2013-09-27extcon: gpio: Add support for active-low presence to detect pinsGuenter Roeck 2013-09-27extcon: use dev_get_platdata()Jingoo Han 2013-09-27extcon: gpio: Use gpio driver/chip debounce if supportedGuenter Roeck 2013-09-27extcon: gpio: Do not unnecessarily initialize variablesGuenter Roeck 2013-09-27extcon: Remove casting the return value which is a void pointerJingoo Han 2013-09-27extcon: Fix indentation coding style to improve readabilityChanwoo Choi 2013-09-27extcon: max77693: Fix checkpatch warningSachin Kamat 2013-09-27extcon: arizona: Fix a typo in a commentSachin Kamat 2013-09-27extcon: arizona: Clear trig_sts bits on all pathsCharles Keepax 2013-09-27extcon: max8997: Fix checkpatch warningSachin Kamat 2013-09-26extcon: arizona: Fix up minor coding style to remove unnecessary bracesChanwoo Choi 2013-09-26extcon: class: Remove unnecessary extern declarationChanwoo Choi 2013-09-26extcon: Fix up 80 column coding style issuesChanwoo Choi 2013-09-03Merge tag 'driver-core-3.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel...Linus Torvalds 2013-08-05extcon: adc-jack: Use power efficient workqueueMark Brown 2013-08-05extcon: gpio: Use power efficient workqueue for debounceMark Brown 2013-08-05extcon: arizona: Use power efficient workqueueMark Brown 2013-08-05extcon: palmas: Option to disable ID/VBUS detection based on platformLaxman Dewangan 2013-08-05extcon: palams: add support for suspend/resumeLaxman Dewangan 2013-08-05extcon: palmas: enable ID_GND and ID_FLOAT detection alwaysLaxman Dewangan 2013-08-05extcon: palmas: remove assigning "edev.name" to palmasKishon Vijay Abraham I 2013-08-05extcon: Add an API to get extcon device from dt nodeKishon Vijay Abraham I 2013-07-25extcon: convert extcon_class to use dev_groupsGreg Kroah-Hartman 2013-07-03drivers: avoid format string in dev_set_nameKees Cook