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}"
h?id=7f49294282c49ef426ed05eb4959728524ba140c'>audit: clean simple fsnotify implementationRichard Guy Briggs 2015-04-22Merge branch 'upstream' of git://git.infradead.org/users/pcmoore/auditLinus Torvalds 2015-02-23audit: consolidate handling of mm->exe_fileDavidlohr Bueso 2015-01-23audit: replace getname()/putname() hacks with reference countersPaul Moore 2014-09-23audit: reduce scope of audit_log_fcapsRichard Guy Briggs 2014-03-20audit: Use struct net not pid_t to remember the network namespce to reply inEric W. Biederman 2014-03-20audit: Audit proc/<pid>/cmdline aka proctitleWilliam Roberts 2014-01-14audit: Convert int limit uses to u32Joe Perches 2014-01-13audit: listen in all network namespacesRichard Guy Briggs 2014-01-13audit: fix netlink portid naming and typesRichard Guy Briggs 2013-11-05audit: call audit_bprm() only once to add AUDIT_EXECVE informationRichard Guy Briggs 2013-11-05audit: move audit_aux_data_execve contents into audit_context unionRichard Guy Briggs 2013-07-09audit: fix mq_open and mq_unlink to add the MQ root as a hidden parent audit_...Jeff Layton 2013-05-11Merge git://git.infradead.org/users/eparis/auditLinus Torvalds 2013-04-30audit: fix event coverage of AUDIT_ANOM_LINKEric Paris 2013-04-29audit: remove unnecessary #if CONFIG_AUDITGao feng 2013-04-29audit: remove duplicate export of audit_enabledGao feng 2013-04-12audit: remove duplicate export of audit_enabledGao feng 2012-10-12audit: optimize audit_compare_dname_pathJeff Layton 2012-10-12audit: remove dirlen argument to audit_compare_dname_pathJeff Layton 2012-10-12audit: set the name_len in audit_inode for parent lookupsJeff Layton 2012-09-18userns: Convert audit to work with user namespaces enabledEric W. Biederman 2012-09-17audit: Add typespecific uid and gid comparatorsEric W. Biederman 2012-01-17audit: remove AUDIT_SETUP_CONTEXT as it isn't usedEric Paris 2010-10-30audit: make functions staticStephen Hemminger 2010-07-28Audit: split audit watch KconfigEric Paris 2010-07-28audit: do not get and put just to free a watchEric Paris 2010-07-28Audit: clean up the audit_watch splitEric Paris 2009-06-24Fix rule eviction order for AUDIT_DIRAl Viro 2009-06-23Audit: move audit_get_nd completely into audit_watchEric Paris 2009-06-23audit: seperate audit inode watches into a subfileEric Paris 2009-01-04fixing audit rule ordering mess, part 1Al Viro 2008-04-28[PATCH 1/2] audit: move extern declarations to audit.hHarvey Harrison 2008-04-19SELinux: use new audit hooks, remove redundant exportsAhmed S. Darwish 2007-10-21[PATCH] audit: watching subtreesAl Viro 2007-07-16Audit: add TTY input auditingMiloslav Trmac 2007-05-11[PATCH] audit signal recipientsAmy Griffis 2006-09-11[PATCH] audit: AUDIT_PERM supportAl Viro