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/arch/parisc?id=f6334f4ae9a4e962ba74b026e1d965dfdf8cbef8'>parisc: Revise gateway LWS calls to probe user read accessJohn David Anglin 2025-07-25parisc: Drop WARN_ON_ONCE() from flush_cache_vmapJohn David Anglin 2025-07-25parisc: Try to fixup kernel exception in bad_area_nosemaphore path of do_page...John David Anglin 2025-07-25parisc: Define and use set_pte_at()John David Anglin 2025-07-25parisc: Rename pte_needs_flush() to pte_needs_cache_flush() in cache.cJohn David Anglin 2025-07-25parisc: Check region is readable by user in raw_copy_from_user()John David Anglin 2025-07-25parisc: Update comments in make_insert_tlbJohn David Anglin 2025-07-25parisc: Makefile: explain that 64BIT requires both 32-bit and 64-bit compilersRandy Dunlap 2025-07-25parisc: Makefile: fix a typo in palo.confRandy Dunlap 2025-07-22tracing: Remove redundant config HAVE_FTRACE_MCOUNT_RECORDSteven Rostedt 2025-07-14parisc: ptrace: Use USER_REGSET_NOTE_TYPE() to specify regset note namesDave Martin 2025-07-08af_unix: Introduce SO_INQ.Kuniyuki Iwashima 2025-07-02fs: introduce file_getattr and file_setattr syscallsAndrey Albershteyn 2025-06-11mm: pgtable: fix pte_swp_exclusiveMagnus Lindholm 2025-06-07Merge tag 'kbuild-v6.16' of git://git.kernel.org/pub/scm/linux/kernel/git/mas...Linus Torvalds 2025-06-07arch: use always-$(KBUILD_BUILTIN) for vmlinux.ldsMasahiro Yamada 2025-06-01Merge tag 'parisc-for-6.16-rc1' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds 2025-05-31Merge tag 'mm-stable-2025-05-31-14-50' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds 2025-05-31parisc/unaligned: Fix hex output to show 8 hex charsHelge Deller 2025-05-28Merge tag 'net-next-6.16' of git://git.kernel.org/pub/scm/linux/kernel/git/ne...Linus Torvalds 2025-05-23af_unix: Introduce SO_PASSRIGHTS.Kuniyuki Iwashima 2025-05-20parisc: fix building with gcc-15Arnd Bergmann 2025-05-12crypto: Kconfig - make CRYPTO_MANAGER a hidden symbolEric Biggers 2025-05-12crypto: tcrypt - rename CRYPTO_TEST to CRYPTO_BENCHMARKEric Biggers 2025-05-11mm: pass mm down to pagetable_{pte,pmd}_ctorKevin Brodsky 2025-05-11syscall.h: introduce syscall_set_nr()Dmitry V. Levin 2025-05-11syscall.h: add syscall_set_arguments()Dmitry V. Levin 2025-05-11mm: introduce a common definition of mk_pte()Matthew Wilcox (Oracle) 2025-05-04parisc: Replace __ASSEMBLY__ with __ASSEMBLER__ in non-uapi headersThomas Huth 2025-05-04parisc: Replace __ASSEMBLY__ with __ASSEMBLER__ in uapi headersThomas Huth 2025-05-04Merge tag 'parisc-for-6.15-rc5' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds 2025-05-04parisc: Fix double SIGFPE crashHelge Deller 2025-04-04lib/crc: remove unnecessary prompt for CONFIG_CRC_T10DIFEric Biggers 2025-04-04lib/crc: remove unnecessary prompt for CONFIG_CRC_CCITTEric Biggers 2025-04-01Merge tag 'mm-stable-2025-03-30-16-52' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds 2025-03-29Merge tag 'parisc-for-6.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds 2025-03-28Merge tag 'drm-next-2025-03-28' of https://gitlab.freedesktop.org/drm/kernelLinus Torvalds 2025-03-27Merge tag 'asm-generic-6.15-2' of git://git.kernel.org/pub/scm/linux/kernel/g...Linus Torvalds 2025-03-26Merge tag 'net-next-6.15' of git://git.kernel.org/pub/scm/linux/kernel/git/ne...Linus Torvalds 2025-03-25Merge tag 'crc-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/eb...Linus Torvalds 2025-03-25net: Fix the devmem sock opts and msgs for pariscPranjal Shrivastava 2025-03-25Merge tag 'timers-vdso-2025-03-23' of git://git.kernel.org/pub/scm/linux/kern...Linus Torvalds