Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1210355

[PATCH v3 0/4] scripts: add stack{usage,delta} scripts

From Rasmus Villemoes <linux@rasmusvillemoes.dk>
Newsgroups linux.kernel
Subject [PATCH v3 0/4] scripts: add stack{usage,delta} scripts
Date 2015-08-20 12:00 +0200
Message-ID <pZuNA-1gR-5@gated-at.bofh.it> (permalink)
References <pZuNA-1gR-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed, Aug 19 2015, Michal Marek <mmarek@suse.cz> wrote:

> Do you plan any new iterations, or is this final despite the [RFC]?
> If it's final, I will apply it.

It's final, modulo a few typos I spotted. I took the opportunity to
fix those and send with a PATCH prefix.

===

The current checkstack.pl script has a few problems, stemming from the
overly simplistic attempt at parsing objdump output with regular
expressions. Since gcc 4.6 introduced the -fstack-usage option, we can
now get the exact stack use instead of resorting to ad hoc methods.

This introduces two small scripts. One for running make with KCFLAGS
set to -fstack-usage, followed by collecting the generated .su files
in a single output file. Another for taking two such output files and
computing the changes in stack use.

2/4 and 3/4 may be too small by themselves; they can easily be
squashed into 1/4.

v2: Use KCFLAGS instead of EXTRA_CFLAGS. A few more details in commit
messages. Simpler option handling in stackusage. Removed accidental
leftover debug prints.

v3: Fix a few typos.

Rasmus Villemoes (4):
  scripts: add stackusage script
  .gitignore: add *.su pattern
  kbuild: remove *.su files generated by -fstack-usage
  scripts: add stackdelta script

 .gitignore         |  1 +
 Makefile           |  1 +
 scripts/stackdelta | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 scripts/stackusage | 33 ++++++++++++++++++++++++++++++
 4 files changed, 94 insertions(+)
 create mode 100755 scripts/stackdelta
 create mode 100755 scripts/stackusage

-- 
2.1.3

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH v3 0/4] scripts: add stack{usage,delta} scripts Rasmus Villemoes <linux@rasmusvillemoes.dk> - 2015-08-20 12:00 +0200
  [PATCH v3 3/4] kbuild: remove *.su files generated by -fstack-usage Rasmus Villemoes <linux@rasmusvillemoes.dk> - 2015-08-20 12:00 +0200
  [PATCH v3 2/4] .gitignore: add *.su pattern Rasmus Villemoes <linux@rasmusvillemoes.dk> - 2015-08-20 12:00 +0200
  [PATCH v3 4/4] scripts: add stackdelta script Rasmus Villemoes <linux@rasmusvillemoes.dk> - 2015-08-20 12:00 +0200
  Re: [PATCH v3 0/4] scripts: add stack{usage,delta} scripts Michal Marek <mmarek@suse.cz> - 2015-08-28 17:10 +0200

csiph-web