Files
allwpilib/upstream_utils/benchmark_patches/0001-Add-roboRIO-benchmark-support.patch

23 lines
808 B
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Joseph Eng <91924258+KangarooKoala@users.noreply.github.com>
Date: Wed, 25 Jun 2025 17:39:54 -0700
Subject: [PATCH 1/2] Add roboRIO benchmark support
---
src/sysinfo.cc | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/sysinfo.cc b/src/sysinfo.cc
index 3977772bfede4971379b157b5478abe7bdad21f7..ec52119ad73aca9c4667855e2f2fdbf4d22ced77 100644
--- a/src/sysinfo.cc
+++ b/src/sysinfo.cc
@@ -441,6 +441,8 @@ std::vector<CPUInfo::CacheInfo> GetCacheSizes() {
return GetCacheSizesQNX();
#elif defined(BENCHMARK_OS_QURT) || defined(__EMSCRIPTEN__)
return std::vector<CPUInfo::CacheInfo>();
+#elif defined(__WPILIB_ROBORIO__)
+ return std::vector<CPUInfo::CacheInfo>();
#else
return GetCacheSizesFromKVFS();
#endif