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}"
tro/kernel/commit/drivers/net/wireless/ath/ath9k/eeprom.c?id=939ad86de538d23533d2f9dd43f80725789d43ba'>ath9k_hw: the eep_map is used only for AR9280 PCI card ini fixupSenthil Balasubramanian 2009-10-07atheros: move bus ops to ath_commonLuis R. Rodriguez 2009-08-28ath9k: Fix read buffer overflowRoel Kluin 2009-08-14ath9k: Split eeprom.c into manageable piecesSujith 2009-08-14ath9k: Remove a few DEBUG mesagesSujith 2009-08-14ath9k: Try to fix whitespace damageSujith 2009-08-14ath9k: Cleanup function return typesSujith 2009-08-04ath9k: fix compile warning on ath9k_hw_AR9287_check_eeprom()Luis R. Rodriguez 2009-08-04ath9k: add initial hardware support for ar9271Luis R. Rodriguez 2009-08-04ath9k: Remove _t postfix for ar9287_eeprom structureLuis R. Rodriguez 2009-08-04ath9k: describe hw initialization betterLuis R. Rodriguez 2009-07-30Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linvil...David S. Miller 2009-07-30Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/ne...David S. Miller 2009-07-27ath9k: Add support for AR9287 based chipsets.Vivek Natarajan 2009-07-27ath9k: Read outside array boundsRoel Kluin 2009-07-24ath9k: RX stucks during heavy traffic in HT40 mode.Senthil Balasubramanian 2009-07-10drivers/net/wireless/ath/ath9k: Remove unnecessary semicolonsJoe Perches 2009-05-11ath9k: Cleanup ineffective return valuesVasanthakumar Thiagarajan 2009-04-22atheros: put atheros wireless drivers into ath/Luis R. Rodriguez