mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
a7ee4d625e
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.10.0 of OpenCSD. A check for the OpenCSD library version has been added to the feature check for OpenCSD. Signed-off-by: Robert Walker <robert.walker@arm.com> Reviewed-by: Mathieu Poirier <mathieu.poirier@linaro.org> Tested-by: Leo Yan <leo.yan@linaro.org> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: coresight@lists.linaro.org Cc: linux-arm-kernel@lists.infradead.org Link: http://lkml.kernel.org/r/1543839526-30348-1-git-send-email-robert.walker@arm.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
17 lines
376 B
C
17 lines
376 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
#include <opencsd/c_api/opencsd_c_api.h>
|
|
|
|
/*
|
|
* Check OpenCSD library version is sufficient to provide required features
|
|
*/
|
|
#define OCSD_MIN_VER ((0 << 16) | (10 << 8) | (0))
|
|
#if !defined(OCSD_VER_NUM) || (OCSD_VER_NUM < OCSD_MIN_VER)
|
|
#error "OpenCSD >= 0.10.0 is required"
|
|
#endif
|
|
|
|
int main(void)
|
|
{
|
|
(void)ocsd_get_version();
|
|
return 0;
|
|
}
|