aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/stackusage
blob: 56ef1ab670acc06700bf92fc322e0ae87831c511 (plain) (blame)
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}"
>/+2 2017-09-15kvm,powerpc: Serialize wq active checks in ops->vcpu_kickDavidlohr Bueso1-1/+1 2017-09-15kvm: Serialize wq active checks in kvm_vcpu_wake_up()Davidlohr Bueso1-1/+1 2017-09-15kvm,x86: Fix apf_task_wake_one() wq serializationDavidlohr Bueso1-1/+1 2017-09-15kvm,lapic: Justify use of swait_active()Davidlohr Bueso1-0/+4 2017-09-15kvm,async_pf: Use swq_has_sleeper()Davidlohr Bueso1-5/+1 2017-09-15sched/wait: Add swq_has_sleeper()Davidlohr Bueso1-2/+56 2017-09-15KVM: VMX: Do not BUG() on out-of-bounds guest IRQJan H. Schönherr1-2/+7 2017-09-15KVM: Don't accept obviously wrong gsi values via KVM_IRQFDJan H. Schönherr1-0/+2 2017-09-15nios2: time: Read timer in get_cycles only if initializedGuenter Roeck1-1/+4 2017-09-15nios2: add earlycon support to 3c120 devboard DTSTobias Klauser1-1/+2 2017-09-15kvm: nVMX: Don't allow L2 to access the hardware CR8Jim Mattson1-0/+5 2017-09-15Revert "PCI: Avoid race while enabling upstream bridges"Bjorn Helgaas1-11/+2 2017-09-14vfs: constify path argument to kernel_read_file_from_pathMimi Zohar3-3/+3 2017-09-15powerpc: Fix handling of alignment interrupt on dcbz instructionPaul Mackerras1-1/+1 2017-09-14firmware: delete in-kernel firmwareGreg Kroah-Hartman153-129170/+1 2017-09-14orangefs: Adjust three checks for null pointersMarkus Elfring2-3/+3 2017-09-14orangefs: Use kcalloc() in orangefs_prepare_cdm_array()Markus Elfring1-3/+1 2017-09-14orangefs: Delete error messages for a failed memory allocation in five functionsMarkus Elfring5-19/+6 2017-09-14orangefs: constify xattr_handler structureJulia Lawall1-1/+1 2017-09-14orangefs: don't call filemap_write_and_wait from fsyncJeff Layton1-4/+1 2017-09-14orangefs: off by ones in xattr size checksDan Carpenter1-3/+3 2017-09-14orangefs: documentation clean upMike Marshall1-10/+4 2017-09-14orangefs: react properly to posix_acl_update_mode's aftermath.Mike Marshall1-8/+21 2017-09-14orangefs: Don't clear SGID when inheriting ACLsJan Kara1-20/+28 2017-09-14sched/wait: Introduce wakeup boomark in wake_up_page_bitTim Chen3-1/+30 2017-09-14sched/wait: Break up long wake list walkTim Chen2-15/+64 2017-09-14KVM: trace events: update list of exit reasonsLadi Prosek1-1/+3 2017-09-14KVM: async_pf: Fix #DF due to inject "Page not Present" and "Page Ready" exce...Wanpeng Li1-9/+28 2017-09-14i2c: i2c-stm32f7: add driverPierre-Yves MORDRET3-0/+983 2017-09-14i2c: i2c-stm32f4: use generic definition of speed enumPierre-Yves MORDRET2-11/+27 2017-09-14dt-bindings: i2c-stm32: Document the STM32F7 I2C bindingsPierre-Yves MORDRET1-3/+26 2017-09-14KVM: X86: Don't block vCPU if there is pending exceptionWanpeng Li1-0/+3 2017-09-14KVM: SVM: Add irqchip_split() checks before enabling AVICSuravee Suthikulpanit1-5/+4 2017-09-14dmi: Mark all struct dmi_system_id instances constChristoph Hellwig48-52/+52 2017-09-13mm, page_owner: skip unnecessary stack_trace entriesPrakash Gupta1-1/+1 2017-09-13arm64: stacktrace: avoid listing stacktrace functions in stacktracePrakash Gupta1-5/+13 2017-09-13mm: treewide: remove GFP_TEMPORARY allocation flagMichal Hocko36-61/+57 2017-09-13IB/mlx4: fix sprintf format warningArnd Bergmann1-1/+1 2017-09-13fscache: fix fscache_objlist_show format processingArnd Bergmann1-1/+2 2017-09-13lib/test_bitmap.c: use ULL suffix for 64-bit constantsGeert Uytterhoeven1-4/+4 2017-09-13procfs: remove unused variableArnd Bergmann1-1/+0 2017-09-13drivers/media/cec/cec-adap.c: fix build with gcc-4.4.4Andrew Morton1-1/+4 2017-09-13idr: remove WARN_ON_ONCE() when trying to replace negative IDEric Biggers1-1/+1 2017-09-13i2c: altera: Add Altera I2C Controller driverThor Thayer4-0/+527