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}"
rring to housekeeping cpumaskFrederic Weisbecker 2021-11-24sched/scs: Reset task stack state in bringup_cpu()Mark Rutland 2021-08-10cpu/hotplug: Add debug printks for hotplug callback failuresDongli Zhang 2021-08-10cpu/hotplug: Use DEVICE_ATTR_*() macroYueHaibing 2021-08-10cpu/hotplug: Eliminate all kernel-doc warningsRandy Dunlap 2021-08-10cpu/hotplug: Fix kernel doc warnings for __cpuhp_setup_state_cpuslocked()Baokun Li 2021-06-29Merge tag 'smp-urgent-2021-06-29' of git://git.kernel.org/pub/scm/linux/kerne...Linus Torvalds 2021-06-21cpu/hotplug: Cure the cpusets trainwreckThomas Gleixner 2021-05-25cpu/hotplug: Simplify access to percpu cpuhp_stateYuan ZhaoXiong 2021-04-21cpumask/hotplug: Fix cpu_dying() state trackingPeter Zijlstra 2021-04-16cpumask: Introduce DYING maskPeter Zijlstra 2021-03-06cpu/hotplug: Add cpuhp_invoke_callback_range()Vincent Donnefort 2021-03-06cpu/hotplug: CPUHP_BRINGUP_CPU failure exceptionVincent Donnefort 2021-03-06cpu/hotplug: Allowing to reset fail injectionVincent Donnefort 2021-01-06cpu/hotplug: Add lockdep_is_cpus_held()Frederic Weisbecker 2020-12-14Merge tag 'sched-core-2020-12-14' of git://git.kernel.org/pub/scm/linux/kerne...Linus Torvalds 2020-11-27kernel/cpu: add arch override for clear_tasks_mm_cpumask() mm handlingNicholas Piggin 2020-11-10sched/hotplug: Consolidate task migration on CPU unplugThomas Gleixner 2020-06-03Merge tag 'sched-core-2020-06-02' of git://git.kernel.org/pub/scm/linux/kerne...Linus Torvalds 2020-05-07cpu/hotplug: Remove __freeze_secondary_cpus()Qais Yousef 2020-05-07cpu/hotplug: Remove disable_nonboot_cpus()Qais Yousef 2020-04-30sched/core: Fix illegal RCU from offline CPUsPeter Zijlstra 2020-04-27cpu/hotplug: Fix a typo in comment "broadacasted"->"broadcasted"Ethon Paul 2020-03-30Merge tag 'smp-core-2020-03-30' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds 2020-03-28cpu/hotplug: Ignore pm_wakeup_pending() for disable_nonboot_cpus()Thomas Gleixner 2020-03-25cpu/hotplug: Hide cpu_up/down()Qais Yousef 2020-03-25cpu/hotplug: Move bringup of secondary CPUs out of smp_init()Qais Yousef 2020-03-25cpu/hotplug: Provide bringup_hibernate_cpu()Qais Yousef 2020-03-25cpu/hotplug: Create a new function to shutdown nonboot cpusQais Yousef 2020-03-25cpu/hotplug: Add new {add,remove}_cpu() functionsQais Yousef 2020-02-11locking/percpu-rwsem, lockdep: Make percpu-rwsem use its own lockdep_mapPeter Zijlstra