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}"
>Minjie Du 2023-08-18ntb: Remove error checking for debugfs_create_dir()Wang Ming 2023-07-08ntb: hw: amd: Fix debugfs_create_dir error checkingAnup Sharma 2023-07-08ntb: intel: Remove redundant pci_clear_masterCai Huoqing 2023-07-08ntb: epf: Remove redundant pci_clear_masterCai Huoqing 2023-07-08ntb_hw_amd: Remove redundant pci_clear_masterCai Huoqing 2023-07-08ntb: idt: drop redundant pci_enable_pcie_error_reporting()Bjorn Helgaas 2023-07-08NTB: ntb_tool: Add check for devm_kcallocJiasheng Jiang 2023-07-08NTB: ntb_transport: fix possible memory leak while device_register() failsYang Yingliang 2023-07-08ntb: intel: Fix error handling in intel_ntb_pci_driver_init()Yuan Can 2023-07-08NTB: amd: Fix error handling in amd_ntb_pci_driver_init()Yuan Can 2023-07-08ntb: idt: Fix error handling in idt_pci_driver_init()Yuan Can 2023-04-03driver core: class: remove struct class_interface * from callbacksGreg Kroah-Hartman 2022-08-09NTB: epf: Allow more flexibility in the memory BAR map methodFrank Li 2022-08-09ntb: intel: add GNR support for Intel PCIe gen5 NTBDave Jiang 2022-08-09NTB: ntb_tool: uninitialized heap data in tool_fn_write()Dan Carpenter 2022-08-09ntb: idt: fix clang -Wformat warningsJustin Stitt 2022-01-28ntb: intel: fix port config status offset for SPRDave Jiang 2022-01-23NTB/msi: Use struct_size() helper in devm_kzalloc()Gustavo A. R. Silva 2022-01-17Merge tag 'ntb-5.17' of git://github.com/jonmason/ntbLinus Torvalds 2022-01-11ntb_hw_switchtec: Fix a minor issue in config_req_id_table()Kelvin Cao 2022-01-11ntb_hw_switchtec: Remove code for disabling ID protectionKelvin Cao 2022-01-11ntb_hw_switchtec: Update the way of getting VEP instance IDKelvin Cao 2022-01-11ntb_hw_switchtec: AND with the part_map for a valid tpart_vecJeremy Pallotta 2022-01-11ntb_hw_switchtec: Fix bug with more than 32 partitionsWesley Sheng 2022-01-11ntb_hw_switchtec: Fix pff ioread to read into mmio_part_cfg_allJeremy Pallotta 2022-01-11ntb_hw_switchtec: fix the spelling of "its"Randy Dunlap 2022-01-11NTB/msi: Fix ntbm_msi_request_threaded_irq() kernel-doc commentYang Li 2022-01-11ntb_hw_amd: Add NTB PCI ID for new gen CPUSanjay R Mehta 2021-12-16NTB/msi: Convert to msi_on_each_desc()Thomas Gleixner 2021-09-07Merge tag 'ntb-5.15' of git://github.com/jonmason/ntbLinus Torvalds 2021-09-05NTB: switch from 'pci_' to 'dma_' APIChristophe JAILLET 2021-09-05ntb: ntb_pingpong: remove redundant initialization of variables msg_data and ...Colin Ian King 2021-09-04NTB: perf: Fix an error code in perf_setup_inbuf()Yang Li 2021-09-04NTB: Fix an error code in ntb_msit_probe()Yang Li 2021-09-04ntb: intel: remove invalid email address in header commentDave Jiang