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}"
>userfaultfd: wp: apply _PAGE_UFFD_WP bitPeter Xu 2020-04-07userfaultfd: wp: add UFFDIO_COPY_MODE_WPAndrea Arcangeli 2020-04-02hugetlbfs: use i_mmap_rwsem for more pmd sharing synchronizationMike Kravetz 2019-12-01mm: fix typos in comments when calling __SetPageUptodate()Wei Yang 2019-12-01userfaultfd: wrap the common dst_vma check into an inlined functionWei Yang 2019-12-01userfaultfd: remove unnecessary WARN_ON() in __mcopy_atomic_hugetlb()Wei Yang 2019-12-01userfaultfd: use vma_pagesize for all huge page size calculationWei Yang 2019-12-01hugetlb: remove unused hstate in hugetlb_fault_mutex_hash()Wei Yang 2019-12-01hugetlbfs: hugetlb_fault_mutex_hash() cleanupMike Kravetz