https://github.com/torvalds/linux
Revision 9a949a98596c45763299158b9018f3491e3cbf99 authored by Linus Torvalds on 25 June 2016, 13:49:32 UTC, committed by Linus Torvalds on 25 June 2016, 13:49:32 UTC
Pull x86 kprobe fix from Thomas Gleixner:
 "A single fix clearing the TF bit when a fault is single stepped"

* 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  kprobes/x86: Clear TF bit in fault on single-stepping
2 parent s 57801c1 + dcfc472
Raw File
Tip revision: 9a949a98596c45763299158b9018f3491e3cbf99 authored by Linus Torvalds on 25 June 2016, 13:49:32 UTC
Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Tip revision: 9a949a9
profile2linkerlist.pl
#!/usr/bin/perl

#
# 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