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}"
lue for each chipChih-Kang Chang 2022-04-12rtw88: 8821c: fix debugfs rssi valuePo-Hao Huang 2022-02-22rtw88: change rtw_info() to proper message levelPing-Ke Shih 2022-02-21rtw88: coex: Add WLAN MIMO power saving for Bluetooth gaming controllerChing-Te Ku 2022-01-31rtw88: rtw8821c: enable rfe 6 devicesPing-Ke Shih 2021-12-20rtw88: don't check CRC of VHT-SIG-B in 802.11ac signalChin-Yen Lee 2021-09-24rtw88: 8821c: correct 2.4G tx power for type 2/4 NICGuo-Feng Fan 2021-09-24rtw88: 8821c: support RFE type4 wifi NICGuo-Feng Fan 2021-09-21rtw88: upgrade rtw_regulatory mechanism and mappingZong-Zhe Yang 2021-04-21rtw88: 8821c: Don't set RX_FLAG_DECRYPTED if packet has no encryptionGuo-Feng Fan 2021-02-08rtw88: 8821c: support RFE type2 wifi NICGuo-Feng Fan 2021-02-08rtw88: 8821c: Correct CCK RSSIGuo-Feng Fan 2021-02-08rtw88: coex: 8821c: correct antenna switch functionGuo-Feng Fan 2021-01-14rtw88: 8821c: apply CCK PD level which calculates from dynamic mechanismVincent Fann 2020-12-02rtw88: coex: upgrade coexistence A2DP mechanismChing-Te Ku 2020-11-24rtw88: add CCK_PD debug logPing-Ke Shih 2020-11-10rtw88: coex: fixed some wrong register definition and settingChing-Te Ku 2020-09-07rtw88: fix compile warning: [-Wignored-qualifiers]Tzu-En Huang