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}"
fbdev: omapfb: connector-analog-tv: remove support for platform dataDmitry Torokhov 2022-12-14fbdev: omapfb: panel-dpi: remove support for platform dataDmitry Torokhov 2022-12-14fbdev: omapfb: panel-nec-nl8048hl11: switch to using gpiod APIDmitry Torokhov 2022-12-14fbdev: omapfb: panel-tpo-td043mtea1: switch to using gpiod APIDmitry Torokhov 2022-12-14fbdev: omapfb: panel-dsi-cm: switch to using gpiod APIDmitry Torokhov 2022-12-14fbdev: omapfb: encoder-tfp410: switch to using gpiod APIDmitry Torokhov 2022-12-14fbdev: omapfb: panel-sony-acx565akm: switch to using gpiod APIDmitry Torokhov 2022-12-14fbdev: omapfb: panel-sony-acx565akm: remove support for platform dataDmitry Torokhov 2022-12-14fbdev: omapfb: connector-hdmi: switch to using gpiod APIDmitry Torokhov 2022-05-19video: fbdev: omapfb: simplify the return expression of nec_8048_connect()Minghao Chi 2022-03-23Merge tag 'for-5.18/fbdev-1' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds 2022-03-07video: fbdev: omapfb: Add missing of_node_put() in dvic_probe_ofMiaoqian Lin 2022-02-11video: fbdev: omapfb: panel-tpo-td043mtea1: Use sysfs_emit() instead of snpri...Jing Yao 2022-02-11video: fbdev: omapfb: panel-dsi-cm: Use sysfs_emit() instead of snprintf()Jing Yao 2022-02-09spi: make remove callback a void functionUwe Kleine-König 2022-01-29video: fbdev: omapfb: acx565akm: replace snprintf with sysfs_emitYang Guang 2022-01-29video: fbdev: omapfb: panel-tpo-td043mtea1: Make use of the helper function d...Cai Huoqing 2022-01-29video: fbdev: omapfb: panel-sharp-ls037v7dw01: Make use of the helper functio...Cai Huoqing 2022-01-29video: fbdev: omapfb: panel-lgphilips-lb035q02: Make use of the helper functi...Cai Huoqing 2021-02-22Merge tag 'backlight-next-5.12' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds 2021-02-12backlight/video: Use Platform getter/setter functionsJulia Lawall 2021-01-13video: omapfb2: Make standard and custom DSI command mode panel driver mutual...Sebastian Reichel 2020-10-17omapfb: connector-dvi: simplify the return expression of dvic_connect()Liu Shixin 2020-10-16omapfb: panel-sony-acx565akm: simplify the return expression of acx565akm_con...Qinglang Miao 2020-10-16omapfb: connector-hdmi: simplify the return expression of hdmic_connectQinglang Miao 2020-10-16omapfb: connector-analog-tv: simplify the return expression of tvc_connect()Qinglang Miao 2020-10-16omapfb: simplify the return expression of tpo_td043_connectLiu Shixin 2020-10-16omapfb: simplify the return expression of sharp_ls_connectLiu Shixin 2020-10-16omapfb: simplify the return expression of panel_dpi_connectLiu Shixin