]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
scripts: add stackdelta script
authorRasmus Villemoes <linux@rasmusvillemoes.dk>
Thu, 20 Aug 2015 09:53:30 +0000 (11:53 +0200)
committerMichal Marek <mmarek@suse.com>
Fri, 28 Aug 2015 15:04:40 +0000 (17:04 +0200)
commit5bbb9f753afe213aebc8dba30c7e2dbb73616b79
tree70fd497c25222ffd604de186925d02c8a8c12178
parentd523b255de60880304038006de5f93f2db612ad6
scripts: add stackdelta script

This adds a simple perl script for reading two files as produced by
the stackusage script and computing the changes in stack usage. For
example:

$ scripts/stackusage -o /tmp/old.su CC=gcc-4.7 -j8 fs/ext4/
$ scripts/stackusage -o /tmp/new.su CC=gcc-5.0 -j8 fs/ext4/
$ scripts/stackdelta /tmp/{old,new}.su | sort -k5,5g

shows that gcc 5.0 generally produces less stack-hungry code than gcc
4.7. Obviously, the script can also be used for measuring the effect
of commits, .config tweaks or whatnot.

Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Michal Marek <mmarek@suse.com>
scripts/stackdelta [new file with mode: 0755]