Overview
Any reason why that should be in the spec? ARM6 is nowhere enabled.
Why not simply deactivate armv6 build there? The build error does not look like this is really an ARM6 specific build failure, but rather a version/include file mismatch. Disabling ARM6 in the package say it is impossible to use this for ARM6 in general. Disabling the build says its impossible in this case.
https://github.com/linux-rdma/perftest/commit/b24eb133412c502ed9badbf6082d4d0c6661a09d
Only support for armv7 has been added, but not armv6. Otherwise, I find no indication that armv6 is supported by perftest.
It should be easy enough to implement.
I found this somewhere in google:
+static inline cycles_t get_cycles(void)
+{
+ u32 val;
+
+ asm volatile ("mrc p15, 0, %0, c15, c12, 1" : "=r" (val));
+
+ return val;
+}
I don't know any arm assembly but this looks like it could be right ;)
@NMoreyChaisemartin: review reminder