https://github.com/torvalds/linux
Revision 88b96088e94ec66f6c9015eee28cb9d053be69c0 authored by Rafael J. Wysocki on 05 July 2018, 10:47:16 UTC, committed by Rafael J. Wysocki on 05 July 2018, 10:47:16 UTC
Merge a PCI power management regression fix.

* pm-pci:
  PCI / ACPI / PM: Resume bridges w/o drivers on suspend-to-RAM
2 parent s 895b661 + 26112dd
Raw File
Tip revision: 88b96088e94ec66f6c9015eee28cb9d053be69c0 authored by Rafael J. Wysocki on 05 July 2018, 10:47:16 UTC
Merge branch 'pm-pci'
Tip revision: 88b9608
profile2linkerlist.pl
#!/usr/bin/env perl
# SPDX-License-Identifier: GPL-2.0

#
# Takes a (sorted) output of readprofile and turns it into a list suitable for
# linker scripts
#
# usage:
#	 readprofile | sort -rn | perl profile2linkerlist.pl > functionlist
#
use strict;

while (<>) {
  my $line = $_;

  $_ =~ /\W*[0-9]+\W*([a-zA-Z\_0-9]+)\W*[0-9]+/;

  print "*(.text.$1)\n"
      unless ($line =~ /unknown/) || ($line =~ /total/);
}
back to top