https://github.com/torvalds/linux
Raw File
Tip revision: 508efc09cce9f1de8b1b5ae304bf913b12d832a6 authored by dependabot[bot] on 18 July 2024, 21:26:06 UTC
build(deps): bump idna from 3.4 to 3.7 in /drivers/gpu/drm/ci/xfails
Tip revision: 508efc0
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