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}"
td>2008-11-18block: make add_partition() return pointer to hd_structTejun Heo 2008-10-21[PATCH] kill the rest of struct file propagation in block ioctlsAl Viro 2008-10-21[PATCH] get rid of struct file use in blkdev_ioctl() BLKBSZSETAl Viro 2008-10-21[PATCH] get rid of blkdev_locked_ioctl()Al Viro 2008-10-21[PATCH] get rid of blkdev_driver_ioctl()Al Viro 2008-10-21[PATCH] end of methods switch: remove the old onesAl Viro 2008-10-21[PATCH] beginning of methods conversionAl Viro 2008-10-21[PATCH] introduce __blkdev_driver_ioctl()Al Viro 2008-10-09block: make partition array dynamicTejun Heo 2008-10-09block: introduce partition 0Tejun Heo 2008-10-09block: fix disk->part[] dereferencing raceTejun Heo 2008-10-09block: don't depend on consecutive minor spaceTejun Heo 2008-10-09block: make variable and argument names more consistentTejun Heo 2008-10-09block: update add_partition() error handlingTejun Heo 2008-10-09block: allow deleting zero length partitionTejun Heo 2008-10-09Allow elevators to sort/merge discard requestsDavid Woodhouse 2008-10-09Add BLKDISCARD ioctl to allow userspace to discard sectorsDavid Woodhouse 2008-07-25block/ioctl.c and fs/partition/check.c: check value returned by add_partition()Abdel Benamrouche 2007-10-10compat_ioctl: move common block ioctls to compat_blkdev_ioctlArnd Bergmann 2007-05-07mm: remove destroy_dirty_buffers from invalidate_bdev()Peter Zijlstra 2007-02-20[PATCH] lockdep: annotate BLKPG_DEL_PARTITIONPeter Zijlstra 2007-02-10[PARTITION]: Add whole_disk attribute.Fabio Massimo Di Nitto 2006-12-08[PATCH] struct path: convert blockJosef Sipek 2006-12-08[PATCH] remove the old bd_mutex lockdep annotationPeter Zijlstra 2006-10-03[PATCH] dm: export blkdev_driver_ioctlAlasdair G Kergon 2006-07-14[PATCH] lockdep: annotate the BLKPG_DEL_PARTITION ioctlArjan van de Ven