summaryrefslogtreecommitdiff
path: root/scripts/stackusage
blob: 8cf26640ef8a989a7d667bb6fad67f1afaea9336 (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
#!/bin/sh

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}"
a 2025-07-21btrfs: switch RCU helper versions to btrfs_info()David Sterba 2025-07-21btrfs: switch RCU helper versions to btrfs_warn()David Sterba 2025-07-21btrfs: switch RCU helper versions to btrfs_err()David Sterba 2025-07-21btrfs: zoned: reserve data_reloc block group on mountJohannes Thumshirn 2025-07-21btrfs: use refcount_t type for the extent buffer reference counterFilipe Manana 2025-07-21btrfs: zoned: use filesystem size not disk size for reclaim decisionJohannes Thumshirn 2025-06-19btrfs: zoned: fix alloc_offset calculation for partly conventional block groupsJohannes Thumshirn 2025-05-15btrfs: convert the buffer_radix to an xarrayJosef Bacik 2025-05-15btrfs: convert ASSERT(0) with handled errors to DEBUG_WARN()David Sterba 2025-05-15btrfs: rename remaining exported extent map functionsFilipe Manana 2025-05-15btrfs: rename functions to allocate and free extent mapsFilipe Manana 2025-04-17btrfs: zoned: skip reporting zone for new block groupNaohiro Aota 2025-04-17btrfs: zoned: return EIO on RAID1 block group write pointer mismatchJohannes Thumshirn 2025-03-18btrfs: zoned: fix zone finishing with missing devicesJohannes Thumshirn 2025-03-18btrfs: zoned: fix zone activation with missing devicesJohannes Thumshirn 2025-03-18btrfs: zoned: exit btrfs_can_activate_zone if BTRFS_FS_NEED_ZONE_FINISH is setJohannes Thumshirn 2025-01-13btrfs: zoned: reclaim unused zone by zone resettingNaohiro Aota 2025-01-09Merge tag 'for-6.13-rc6-tag' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds 2025-01-06btrfs: zoned: calculate max_extent_size properly on non-zoned setupChristoph Hellwig 2024-11-18Merge tag 'for-6.13/block-20241118' of git://git.kernel.dk/linuxLinus Torvalds 2024-11-13btrfs: validate queue limitsChristoph Hellwig 2024-11-11btrfs: fix a typo in btrfs_use_zone_appendChristoph Hellwig 2024-11-11btrfs: correct typos in multiple comments across various filesShen Lichuan 2024-10-29block: add a bdev_limits helperChristoph Hellwig 2024-10-09btrfs: zoned: fix missing RCU locking in error message when loading zone infoFilipe Manana 2024-09-10btrfs: use btrfs_path auto free in zoned.cLeo Martins 2024-09-10btrfs: constify more pointer parametersDavid Sterba 2024-09-02btrfs: zoned: handle broken write pointer on zonesNaohiro Aota 2024-07-19btrfs: change BTRFS_MOUNT_* flags to 64bit typeQu Wenruo 2024-07-11btrfs: introduce new "rescue=ignoremetacsums" mount optionQu Wenruo 2024-07-11btrfs: switch btrfs_ordered_extent::inode to struct btrfs_inodeDavid Sterba 2024-07-11btrfs: pass a btrfs_inode to is_data_inode()David Sterba 2024-07-11btrfs: constify pointer parameters where applicableDavid Sterba 2024-07-11btrfs: remove extent_map::block_start memberQu Wenruo 2024-07-11btrfs: simplify range parameters of btrfs_wait_ordered_roots()David Sterba 2024-07-11btrfs: use for-local variables that shadow function variablesDavid Sterba 2024-07-11btrfs: zoned: make btrfs_get_dev_zone() staticFilipe Manana