19 lines
668 B
Diff
19 lines
668 B
Diff
Subject: work around kernel bug, disable lcc optimizations for create_perf_counters()
|
|
Bug: 131369
|
|
Tags: lcc
|
|
|
|
diff -rupN a/src/common/perf_counters.cc b/src/common/perf_counters.cc
|
|
--- a/src/common/perf_counters.cc 2021-09-01 14:46:23.755611248 +0300
|
|
+++ b/src/common/perf_counters.cc 2021-09-01 14:53:38.849337068 +0300
|
|
@@ -569,6 +569,10 @@ void PerfCountersBuilder::add_impl(
|
|
data.histogram = std::move(histogram);
|
|
}
|
|
|
|
+#if defined (__LCC__)
|
|
+__attribute__((noinline))
|
|
+__attribute__((optimize(2)))
|
|
+#endif
|
|
PerfCounters *PerfCountersBuilder::create_perf_counters()
|
|
{
|
|
PerfCounters::perf_counter_data_vec_t::const_iterator d = m_perf_counters->m_data.begin();
|