Skip to content

Commit bcf54da

Browse files
abhiShedgemeta-codesync[bot]
authored andcommitted
Update ARM neoverse v2 event for counting last level cache misses (#466)
Summary: Pull Request resolved: #466 Dynolog was using an incorrect ARM Neoverse V2 eventId to measure the system level L3 cache miss. We will now start using ll_cache_miss_rd (last-level cache miss for a read transaction) instead of l3d_cache_refill eventId. Reviewed By: Alston-Tang Differential Revision: D85590511 fbshipit-source-id: e3104b7c5eeae017e655ec288fdc753eb60a9e23
1 parent 4670523 commit bcf54da

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

hbt/src/perf_event/BuiltinMetrics.cpp

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1766,6 +1766,23 @@ void addArmCoreMetrics(std::shared_ptr<Metrics>& metrics) {
17661766
100'000'000,
17671767
System::Permissions{},
17681768
std::vector<std::string>{}));
1769+
1770+
metrics->add(
1771+
std::make_shared<MetricDesc>(
1772+
"HW_CORE_LL_CACHE_MISS_RD",
1773+
"Last level cache miss read",
1774+
"Counts the number of read transactions that a processor core requests from memory but are not found in the Last-Level cache (L3 cache).",
1775+
std::map<TOptCpuArch, EventRefs>{
1776+
{CpuArch::NEOVERSE_V2,
1777+
EventRefs{EventRef{
1778+
" ",
1779+
PmuType::armv8_pmuv3,
1780+
"ll_cache_miss_rd",
1781+
EventExtraAttr{},
1782+
{}}}}},
1783+
100'000'000,
1784+
System::Permissions{},
1785+
std::vector<std::string>{}));
17691786
}
17701787

17711788
void addIntelCoreMetrics(std::shared_ptr<Metrics>& metrics) {

0 commit comments

Comments
 (0)