Merge branch 'perf/urgent' into perf/core
Pick up the latest fixes because upcoming uprobes changes will rely on it. Signed-off-by: Ingo Molnar <mingo@kernel.org>
This commit is contained in:
@@ -3016,7 +3016,8 @@ sub process {
|
||||
$herectx .= raw_line($linenr, $n) . "\n";
|
||||
}
|
||||
|
||||
if (($stmts =~ tr/;/;/) == 1) {
|
||||
if (($stmts =~ tr/;/;/) == 1 &&
|
||||
$stmts !~ /^\s*(if|while|for|switch)\b/) {
|
||||
WARN("SINGLE_STATEMENT_DO_WHILE_MACRO",
|
||||
"Single statement macros should not use a do {} while (0) loop\n" . "$herectx");
|
||||
}
|
||||
|
@@ -89,7 +89,7 @@ echo $code >> $T.s
|
||||
disas $T
|
||||
cat $T.dis >> $T.aa
|
||||
|
||||
faultline=`cat $T.dis | head -1 | cut -d":" -f2`
|
||||
faultline=`cat $T.dis | head -1 | cut -d":" -f2-`
|
||||
faultline=`echo "$faultline" | sed -e 's/\[/\\\[/g; s/\]/\\\]/g'`
|
||||
|
||||
cat $T.oo | sed -e "s/\($faultline\)/\*\1 <-- trapping instruction/g"
|
||||
|
@@ -1786,6 +1786,7 @@ sub dump_function($$) {
|
||||
$prototype =~ s/__init +//;
|
||||
$prototype =~ s/__init_or_module +//;
|
||||
$prototype =~ s/__must_check +//;
|
||||
$prototype =~ s/__weak +//;
|
||||
$prototype =~ s/^#\s*define\s+//; #ak added
|
||||
$prototype =~ s/__attribute__\s*\(\([a-z,]*\)\)//;
|
||||
|
||||
|
Reference in New Issue
Block a user