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}"
f='/distro/kernel/commit/drivers/mailbox/imx-mailbox.c?h=linux-6.6.y&id=a5cb407a7af4d825bbf8c299db155dc58848ecc5'>mailbox: imx: support dual interruptsPeng Fan 2022-03-12mailbox: imx: extend irq to an arrayPeng Fan 2022-03-12mailbox: imx: add i.MX8 SECO MU supportFranck LENORMAND 2022-03-12mailbox: imx: introduce rxdb callbackPeng Fan 2022-03-12mailbox: imx: enlarge timeout while reading/writing messages to SCFWRanjani Vaidyanathan 2022-03-12mailbox: imx: fix crash in resume on i.mx8ulpRobin Gong 2022-03-12mailbox: imx: fix wakeup failure from freeze modeRobin Gong 2022-01-11mailbox: imx: Fix an IS_ERR() vs NULL bugDan Carpenter 2021-10-29mailbox: imx: support i.MX8ULP S4 MUPeng Fan 2021-06-26mailbox: imx: Avoid using val uninitialized in imx_mu_isr()Nathan Chancellor 2021-06-26mailbox: imx-mailbox: support i.MX8ULP MUPeng Fan 2021-06-26mailbox: imx: add xSR/xCR register arrayPeng Fan 2021-06-26mailbox: imx: replace the xTR/xRR array with single registerPeng Fan 2020-08-03mailbox: imx: Mark PM functions as __maybe_unusedNathan Chancellor 2020-06-07mailbox: imx: ONLY IPC MU needs IRQF_NO_SUSPEND flagAnson Huang 2020-06-07mailbox: imx: Add runtime PM callback to handle MU clocksAnson Huang 2020-06-07mailbox: imx: Add context save/restore for suspend/resumeDong Aisheng 2020-05-30mailbox: imx-mailbox: fix scu msg header size checkPeng Fan 2020-05-30mailbox: imx: Disable the clock on devm_mbox_controller_register() failureFabio Estevam 2020-05-30mailbox: imx: Fix return in imx_mu_scu_xlate()Dan Carpenter 2020-05-30mailbox: imx: Support runtime PMAnson Huang 2020-03-19mailbox: imx: add SCU MU supportPeng Fan 2020-03-19mailbox: imx: restructure code to make easy for new MUPeng Fan 2019-11-30mailbox: imx: add support for imx v1 muRichard Zhu 2019-11-30mailbox: imx: Clear the right interrupts at shutdownDaniel Baluta 2019-11-30mailbox: imx: Fix Tx doorbell shutdown pathDaniel Baluta 2019-07-10mailbox: imx: Clear GIEn bit at shutdownDaniel Baluta 2019-05-09mailbox: imx: use devm_platform_ioremap_resource() to simplify codeAnson Huang 2019-03-11mailbox: imx: keep MU irq working during suspend/resumeAnson Huang 2018-12-21mailbox: imx: Use device-managed registration APIThierry Reding 2018-08-15mailbox: Add support for i.MX messaging unitOleksij Rempel