Skip to content

Commit 37bbe40

Browse files
AdithyaBaglodyAnas Nashif
authored andcommitted
tests: benchmark: Fixed build error from icx toolchain.
The error was generated by a piece of code that is not currently being used. This piece of code was kept to measure the overhead caused by the benchmarking code on x86. JIRA:ZEP-2160 Signed-off-by: Adithya Baglody <[email protected]>
1 parent de7fb4d commit 37bbe40

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/benchmarks/timing_info/src/thread_bench.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,12 @@ u64_t dummy_time;
5454
u64_t start_time;
5555
u64_t test_end_time;
5656

57-
#if CONFIG_X86
57+
/* Disable the overhead calculations, this is needed to calculate
58+
* the overhead created by the benchmarking code itself.
59+
*/
60+
#define DISABLE_OVERHEAD_MEASUREMENT
61+
62+
#if defined(CONFIG_X86) && !defined(DISABLE_OVERHEAD_MEASUREMENT)
5863
u32_t benchmarking_overhead_swap(void)
5964
{
6065

0 commit comments

Comments
 (0)