diff options
author | Amir Ayupov <aaupov@fb.com> | 2024-07-18 21:01:40 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-18 21:01:40 -0700 |
commit | c905db67a05c4455548ea322c780a8d74380fd86 (patch) | |
tree | 5601c755aeb9a88bd1c854e0c3578b2c0a34c898 /bolt/test | |
parent | 6c3aa626b28d60411b14c593f3e0443cf37fc84d (diff) | |
download | llvm-c905db67a05c4455548ea322c780a8d74380fd86.zip llvm-c905db67a05c4455548ea322c780a8d74380fd86.tar.gz llvm-c905db67a05c4455548ea322c780a8d74380fd86.tar.bz2 |
[BOLT] Attach pseudo probes to blocks in YAML profile
Read pseudo probes in regular and BAT YAML profile generation, and
attach them to YAML profile basic blocks. This exposes GUID, probe id,
and probe type in profile for future use in stale profile matching.
Test Plan: updated pseudoprobe-decoding-inline.test
Reviewers: dcci, rafaelauler, ayermolo, maksfb
Reviewed By: rafaelauler
Pull Request: https://github.com/llvm/llvm-project/pull/99554
Diffstat (limited to 'bolt/test')
-rw-r--r-- | bolt/test/X86/pseudoprobe-decoding-inline.test | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bolt/test/X86/pseudoprobe-decoding-inline.test b/bolt/test/X86/pseudoprobe-decoding-inline.test index c32660c..924331e 100644 --- a/bolt/test/X86/pseudoprobe-decoding-inline.test +++ b/bolt/test/X86/pseudoprobe-decoding-inline.test @@ -13,12 +13,20 @@ # RUN: perf2bolt %t.bolt -p %t.preagg2 --pa -w %t.yaml2 -o %t.fdata2 # RUN: FileCheck --input-file %t.yaml2 %s --check-prefix CHECK-YAML # CHECK-YAML: name: bar +# CHECK-YAML: - bid: 0 +# CHECK-YAML: pseudo_probes: [ { guid: 0xE413754A191DB537, id: 1, type: 0 }, { guid: 0xE413754A191DB537, id: 4, type: 0 } ] # CHECK-YAML: guid: 0xE413754A191DB537 # CHECK-YAML: pseudo_probe_desc_hash: 0x10E852DA94 +# # CHECK-YAML: name: foo +# CHECK-YAML: - bid: 0 +# CHECK-YAML: pseudo_probes: [ { guid: 0x5CF8C24CDB18BDAC, id: 1, type: 0 }, { guid: 0x5CF8C24CDB18BDAC, id: 2, type: 0 } ] # CHECK-YAML: guid: 0x5CF8C24CDB18BDAC # CHECK-YAML: pseudo_probe_desc_hash: 0x200205A19C5B4 +# # CHECK-YAML: name: main +# CHECK-YAML: - bid: 0 +# CHECK-YAML: pseudo_probes: [ { guid: 0xDB956436E78DD5FA, id: 1, type: 0 }, { guid: 0x5CF8C24CDB18BDAC, id: 1, type: 0 }, { guid: 0x5CF8C24CDB18BDAC, id: 2, type: 0 } ] # CHECK-YAML: guid: 0xDB956436E78DD5FA # CHECK-YAML: pseudo_probe_desc_hash: 0x10000FFFFFFFF |