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}"
td>Change table chaining layoutJens Axboe 2007-10-20include/asm-*/system.h: remove unused set_rmb(), set_wmb() macrosStefan Richter 2007-10-19forbid asm/bitops.h direct inclusionJiri Slaby 2007-10-19remove unused flush_tlb_pgtablesBenjamin Herrenschmidt 2007-10-18bitops: introduce lock opsNick Piggin 2007-10-17Remove dma_cache_(wback|inv|wback_inv) functionsRalf Baechle 2007-10-17remove include/asm-*/ipc.hAdrian Bunk 2007-10-17remove strict ansi check from __u64 in asm/types.hOlaf Hering 2007-10-17kill DECLARE_MUTEX_LOCKEDChristoph Hellwig 2007-10-03Binfmt_flat: Add minimum support for the Blackfin relocationsBernd Schmidt 2007-07-31remove unused TIF_NOTIFY_RESUME flagStephane Eranian 2007-07-22take declarations of enable_irq() et.al. to linux/interrupt.hAl Viro 2007-07-19arch: personality independent stack topPeter Zijlstra 2007-07-17fbdev: detect primary display deviceAntonino A. Daplas 2007-07-17fbdev: move arch-specific bits to their respective subdirectoriesAntonino A. Daplas 2007-07-17Add __GFP_MOVABLE for callers to flag allocations from high memory that may b...Mel Gorman 2007-07-16dma-mapping: prevent dma dependent code from linking on !HAS_DMA archsDan Williams 2007-07-16h8300 entry.S updateYoshinori Sato 2007-07-16h8300: enable arbitary speed tty port setupAlan Cox 2007-07-11PCI: Use a weak symbol for the empty version of pcibios_add_platform_entries()Michael Ellerman 2007-07-10lots-of-architectures: enable arbitary speed tty supportAlan Cox 2007-06-01h8300 trival patchesYoshinori Sato 2007-05-15h8300 atomic.h updateYoshinori Sato 2007-05-11Consolidate asm/poll.hStephen Rothwell 2007-05-11h8300 syscall updateYoshinori Sato 2007-05-08Remove tas()Jeff Dike 2007-05-08Clean up mostly unused IOSPACE macrosDavid Gibson 2007-05-08move die notifier handling to common codeChristoph Hellwig