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}"
id=cbe409f68380ac8b8f11a52086f8e5364ed07aea'>iio: dac: ad5686: add AD5695R to ad5686_chip_info_tblKübrich, Andreas 2026-01-30iio: chemical: scd4x: fix reported channel endiannessFiona Klute 2026-01-30iio: adc: at91-sama5d2_adc: Fix potential use-after-free in sama5d2_adc driverPei Xiao 2026-01-30iio: adc: ad9467: fix ad9434 vref maskTomas Melin 2026-01-30iio: accel: iis328dq: fix gain valuesMarkus Koeniger 2026-01-30iio: adc: ad7280a: handle spi_setup() errors in probe()Pavel Zhigulin 2026-01-30iio: imu: st_lsm6dsx: fix iio_chan_spec for sensors without event detectionFrancesco Lavra 2026-01-11iio: adc: ti_am335x_adc: Limit step_avg to valid range for gcc complainsPei Xiao 2026-01-11iio: imu: st_lsm6dsx: Fix measurement unit for odr struct memberFrancesco Lavra 2025-12-07iio: adc: rtq6056: Correct the sign bit indexChiYuan Huang 2025-12-07iio: adc: ad7280a: fix ad7280_store_balance_timer()David Lechner 2025-12-07iio: accel: fix ADXL355 startup race conditionValek Andrej 2025-12-07iio: accel: bmc150: Fix irq assumption regressionLinus Walleij 2025-12-07iio:common:ssp_sensors: Fix an error handling path ssp_probe()Christophe JAILLET 2025-12-07iio: imu: st_lsm6dsx: fix array size for st_lsm6dsx_settings fieldsFrancesco Lavra 2025-12-07iio: st_lsm6dsx: Fixed calibrated timestamp calculationMario Tesi