File tree Expand file tree Collapse file tree 2 files changed +13
-14
lines changed Expand file tree Collapse file tree 2 files changed +13
-14
lines changed Original file line number Diff line number Diff line change 8
8
; RUN: llvm-profgen --format=extbinary --perfscript=%S/Inputs/inline-noprobe2.perfscript --binary=%S/Inputs/inline-noprobe2.perfbin --output=%t --populate-profile-symbol-list=1
9
9
; RUN: llvm-profdata show -show-prof-sym-list -sample %t | FileCheck %s --check-prefix=CHECK-SYM-LIST
10
10
11
- ; CHECK-ARTIFICIAL-BRANCH: 3
12
- ; CHECK-ARTIFICIAL-BRANCH: 400540-400540:1
13
- ; CHECK-ARTIFICIAL-BRANCH: 400870-400870:2
14
- ; CHECK-ARTIFICIAL-BRANCH: 400875-4008bf:1
15
- ; CHECK-ARTIFICIAL-BRANCH: 2
16
- ; CHECK-ARTIFICIAL-BRANCH: 400870->400540:2
17
- ; CHECK-ARTIFICIAL-BRANCH: 4008bf->400870:2
11
+ ; CHECK-ARTIFICIAL-BRANCH: 0
12
+ ; CHECK-ARTIFICIAL-BRANCH: 0
18
13
19
14
; CHECK-SYM-LIST: Dump profile symbol list
20
15
; CHECK-SYM-LIST: main
78
73
;CHECK: 1: 5
79
74
;CHECK: 2: 5
80
75
;CHECK: 3: 5
81
- ;CHECK: main:820 :0
76
+ ;CHECK: main:486 :0
82
77
;CHECK: 0: 0
83
78
;CHECK: 3: 0
84
79
;CHECK: 4.1: 0
85
80
;CHECK: 4.3: 0
86
- ;CHECK: 5.1: 10
87
- ;CHECK: 5.3: 10
88
- ;CHECK: 6: 10
89
- ;CHECK: 6.1: 12
90
- ;CHECK: 6.3: 10
81
+ ;CHECK: 5.1: 6
82
+ ;CHECK: 5.3: 6
83
+ ;CHECK: 6: 6
84
+ ;CHECK: 6.1: 6
85
+ ;CHECK: 6.3: 6
91
86
;CHECK: 7: 0
92
87
;CHECK: 8: 0 quick_sort:1
93
88
;CHECK: 9: 0
Original file line number Diff line number Diff line change @@ -545,14 +545,18 @@ void ProfiledBinary::disassemble(const ELFObjectFileBase *Obj) {
545
545
// Register the text section.
546
546
TextSections.insert ({SectionOffset, SectSize});
547
547
548
+ StringRef SectionName = unwrapOrError (Section.getName (), FileName);
549
+
548
550
if (ShowDisassemblyOnly) {
549
- StringRef SectionName = unwrapOrError (Section.getName (), FileName);
550
551
outs () << " \n Disassembly of section " << SectionName;
551
552
outs () << " [" << format (" 0x%" PRIx64, Section.getAddress ()) << " , "
552
553
<< format (" 0x%" PRIx64, Section.getAddress () + SectSize)
553
554
<< " ]:\n\n " ;
554
555
}
555
556
557
+ if (SectionName == " .plt" )
558
+ continue ;
559
+
556
560
// Get the section data.
557
561
ArrayRef<uint8_t > Bytes =
558
562
arrayRefFromStringRef (unwrapOrError (Section.getContents (), FileName));
You can’t perform that action at this time.
0 commit comments