#!/usr/bin/perl # Read two files produced by the stackusage script, and show the # delta between them. # # Currently, only shows changes for functions listed in both files. We # could add an option to show also functions which have vanished or # appeared (which would often be due to gcc making other inlining # decisions). # # Another possible option would be a minimum absolute value for the # delta. # # A third possibility is for sorting by delta, but that can be # achieved by piping to sort -k5,5g. sub read_stack_usage_file { my %su; my $f = shift; open(my $fh, '<', $f) or die "cannot open $f: $!"; while (<$fh>) { chomp; my ($file, $func, $size, $type) = split; # Old versions of gcc (at least 4.7) have an annoying quirk in # that a (static) function whose name has been changed into # for example ext4_find_unwritten_pgoff.isra.11 will show up # in the .su file with a name of just "11". Since such a # numeric suffix is likely to change across different # commits/compilers/.configs or whatever else we're trying to # tweak, we can't really track those functions, so we just # silently skip them. # # Newer gcc (at least 5.0) report the full name, so again, # since the suffix is likely to change, we strip it. next if $func =~ m/^[0-9]+$/; $func =~ s/\..*$//; # Line numbers are likely to change; strip those. $file =~ s/:[0-9]+$//; $su{"${file}\t${func}"} = {size => $size, type => $type}; } close($fh); return \%su; } @ARGV == 2 or die "usage: $0 "; my $old = read_stack_usage_file($ARGV[0]); my $new = read_stack_usage_file($ARGV[1]); my @common = sort grep {exists $new->{$_}} keys %$old; for (@common) { my $x = $old->{$_}{size}; my $y = $new->{$_}{size}; my $delta = $y - $x; if ($delta) { printf "%s\t%d\t%d\t%+d\n", $_, $x, $y, $delta; } } te-remove'>logtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2017-02-06 14:16:23 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2017-02-06 14:16:23 -0800
commit396bf4cd835e62d70fad4a03a8963e61f19021f2 (patch)
tree79ac8f33554260fea1a8d43e6f8c4c5460115f45 /include/xen/arm
parentd5adbfcd5f7bcc6fa58a41c5c5ada0e5c826ce2c (diff)
parent7c2cf1c4615cc2f576d0604406cdf0065f00b83b (diff)
Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
Pull crypto fixes from Herbert Xu: - use-after-free in algif_aead - modular aesni regression when pcbc is modular but absent - bug causing IO page faults in ccp - double list add in ccp - NULL pointer dereference in qat (two patches) - panic in chcr - NULL pointer dereference in chcr - out-of-bound access in chcr * 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6: crypto: chcr - Fix key length for RFC4106 crypto: algif_aead - Fix kernel panic on list_del crypto: aesni - Fix failure when pcbc module is absent crypto: ccp - Fix double add when creating new DMA command crypto: ccp - Fix DMA operations when IOMMU is enabled crypto: chcr - Check device is allocated before use crypto: chcr - Fix panic on dma_unmap_sg crypto: qat - zero esram only for DH85x devices crypto: qat - fix bar discovery for c62x
Diffstat (limited to 'include/xen/arm')