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}"
Karlsson 2024-01-24xsk: recycle buffer in case Rx queue was fullMaciej Fijalkowski 2023-12-07Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski 2023-12-05xsk: Skip polling event check for unbound socketYewon Choi 2023-11-29xsk: Add option to calculate TX checksum in SWStanislav Fomichev 2023-11-29xsk: Validate xsk_tx_metadata flagsStanislav Fomichev 2023-11-29xsk: Add TX timestamp and TX checksum offload supportStanislav Fomichev 2023-11-29xsk: Support tx_metadata_lenStanislav Fomichev 2023-10-24xsk: Avoid starving the xsk further down the listAlbert Huang 2023-10-17net, bpf: Add a warning if NAPI cb missed xdp_do_flush().Sebastian Andrzej Siewior 2023-10-01net: implement lockless SO_PRIORITYEric Dumazet 2023-09-15xsk: add multi-buffer support for sockets sharing umemTirthendu Sarkar 2023-08-30xsk: Fix xsk_build_skb() error: 'skb' dereferencing possible ERR_PTR()Tirthendu Sarkar 2023-08-10Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski 2023-08-09xsk: fix refcount underflow in error pathMagnus Karlsson 2023-08-03Merge tag 'for-netdev' of https://git.kernel.org/pub/scm/linux/kernel/git/bpf...Jakub Kicinski 2023-08-03Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski 2023-08-03net: move struct netdev_rx_queue out of netdevice.hJakub Kicinski 2023-07-29net: annotate data-races around sk->sk_markEric Dumazet 2023-07-19xsk: support mbuf on ZC RXMaciej Fijalkowski 2023-07-19xsk: add support for AF_XDP multi-buffer on Tx pathTirthendu Sarkar 2023-07-19xsk: introduce wrappers and helpers for supporting multi-buffer in Tx pathTirthendu Sarkar 2023-07-19xsk: add support for AF_XDP multi-buffer on Rx pathTirthendu Sarkar 2023-07-19xsk: move xdp_buff's data length check to xsk_rcv_checkTirthendu Sarkar 2023-07-19xsk: prepare both copy and zero-copy modes to co-existMaciej Fijalkowski 2023-07-19xsk: introduce XSK_USE_SG bind flag for xsk socketTirthendu Sarkar 2023-07-19xsk: prepare 'options' in xdp_desc for multi-buffer useTirthendu Sarkar 2023-07-04xsk: Honor SO_BINDTODEVICE on bindIlya Maximets 2023-06-24sock: Remove ->sendpage*() in favour of sendmsg(MSG_SPLICE_PAGES)David Howells 2023-03-25xsk: allow remap of fill and/or completion ringsNuno Gonçalves