Skip to content

Commit 038facb

Browse files
openeuler-ci-botgitee-org
authored andcommitted
!209 [BOLT] Fix stuck for x86 linux kernel 5.10
From: @polaris_jiang Reviewed-by: @eastB233 Signed-off-by: @eastB233
2 parents b1b3b16 + 3d72e6b commit 038facb

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

bolt/lib/Rewrite/LinuxKernelRewriter.cpp

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,7 @@ class LinuxKernelRewriter final : public MetadataRewriter {
337337
/// Paravirtual instruction patch sites.
338338
Error readParaInstructions();
339339
Error rewriteParaInstructions();
340+
void processParaInstructionsPostCFG();
340341

341342
/// __bug_table section handling.
342343
Error readBugTable();
@@ -445,6 +446,7 @@ class LinuxKernelRewriter final : public MetadataRewriter {
445446
if (Error E = processORCPostCFG())
446447
return E;
447448

449+
processParaInstructionsPostCFG();
448450
processAltInstructionsPostCFG();
449451

450452
return Error::success();
@@ -1439,10 +1441,6 @@ Error LinuxKernelRewriter::readParaInstructions() {
14391441
}
14401442
}
14411443

1442-
// Disable output of functions with paravirtual instructions before the
1443-
// rewrite support is complete.
1444-
skipFunctionsWithAnnotation("ParaSite");
1445-
14461444
BC.outs() << "BOLT-INFO: parsed " << EntryID << " paravirtual patch sites\n";
14471445

14481446
return Error::success();
@@ -1465,6 +1463,12 @@ void LinuxKernelRewriter::skipFunctionsWithAnnotation(
14651463
}
14661464
}
14671465

1466+
void LinuxKernelRewriter::processParaInstructionsPostCFG() {
1467+
// Disable output of functions with paravirtual instructions before the
1468+
// rewrite support is complete.
1469+
skipFunctionsWithAnnotation("ParaSite");
1470+
}
1471+
14681472
Error LinuxKernelRewriter::rewriteParaInstructions() {
14691473
return Error::success();
14701474
}

0 commit comments

Comments
 (0)