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}"
lude/asm/kvm_emulate.h?id=60e21a0ef54cd836b9eb22c7cb396989b5b11648&follow=1'>arm64: KVM: Take S1 walks into account when determining S2 write faultsWill Deacon1-5/+6 2016-10-21drm/omap: Set rotation property initial value to BIT(DRM_ROTATE_0) insted of 0Ville Syrjälä2-3/+5 2016-10-21drm/atmel-hlcdc: Use per-plane rotation propertyVille Syrjälä1-17/+20 2016-10-21drm/arm: Use per-plane rotation propertyVille Syrjälä1-8/+5 2016-10-21drm: Add support for optional per-plane rotation propertyVille Syrjälä5-3/+49 2016-10-21drm/atomic: Reject attempts to use multiple rotation angles at onceVille Syrjälä1-0/+2 2016-10-21drm: Add drm_rotation_90_or_270()Ville Syrjälä10-33/+28 2016-10-21PCI: designware-plat: Update author email addressJoao Pinto1-1/+1 2016-10-21dma-buf/sync_file: hold reference to fence when creating sync_fileGustavo Padovan1-1/+1 2016-10-21drm/virtio: kconfig: Fixup white space.Peter Griffin1-3/+3 2016-10-21drm/fence: release fence reference when canceling eventGustavo Padovan1-0/+4 2016-10-21kernel/irq: Export irq_set_parent()Sudip Mukherjee1-0/+1 2016-10-21target/tcm_fc: use CPU affinity for responsesHannes Reinecke1-1/+1 2016-10-21target/tcm_fc: Update debugging statements to match libfc usageHannes Reinecke1-11/+26 2016-10-21target/tcm_fc: return detailed error in ft_sess_create()Hannes Reinecke1-2/+3 2016-10-21target/tcm_fc: print command pointer in debug messageHannes Reinecke1-1/+1 2016-10-21target: fix potential race window in target_sess_cmd_list_waiting()Hannes Reinecke1-4/+8 2016-10-21watchdog: wdat_wdt: Ping the watchdog on resumeMika Westerberg1-0/+4 2016-10-20Revert "clocksource/drivers/timer_sun5i: Replace code by clocksource_mmio_init"Chen-Yu Tsai1-2/+14 2016-10-20clocksource: Add J-Core timer/clocksource driverRich Felker4-0/+261