On Wed, 29 Aug 2018 10:44:23 +0100I'll change it to 0.9.1 if there's another version of the patch (it was introduced in 0.9, but 0.9.1 has a necessary bug fix)
Robert Walker <robert.walker@xxxxxxx> wrote:
This patch adds support for generating instruction samples from trace of...
AArch32 programs using the A32 and T32 instruction sets.
T32 has variable 2 or 4 byte instruction size, so the conversion between
addresses and instruction counts requires extra information from the trace
decoder, requiring version 0.9.1 of OpenCSD. A check for the new struct
member has been added to the feature check for OpenCSD.
Signed-off-by: Robert Walker <robert.walker@xxxxxxx>
---
+++ b/tools/build/feature/test-libopencsd.c0.9 != 0.9.1 in the above commit text: which is it?
@@ -3,6 +3,13 @@
int main(void)
{
+ /*
+ * Requires ocsd_generic_trace_elem.num_instr_range introduced in
+ * OpenCSD 0.9
The intention is to fail the feature detection check if the older version is installed - perf will still compile, but without the CoreSight trace support.+ */This breaks building against older versions of OpenCSD, right?
+ ocsd_generic_trace_elem elem;
+ (void)elem.num_instr_range;
+
(void)ocsd_get_version();Why don't we maintain building against older versions of the library,
and use the version information to make the decision on whether to use
the new feature being introduced in this patch?
Regards
Thanks,
Kim