mirror of
https://github.com/torvalds/linux.git
synced 2024-12-28 22:02:28 +00:00
29e2eb2a9e
OpenCSD version v0.14.0 adds in a new output element. This is represented by a new value in the generic element type enum, which must be added to the handling code in perf cs-etm-decoder to prevent build errors due to build options on the perf project. This element is not currently used by the perf decoder. Perf build feature test updated to require a minimum of 0.14.0 Tested on Linux 5.7-rc3. Signed-off-by: Mike Leach <mike.leach@linaro.org> Reviewed-by: Leo Yan <leo.yan@linaro.org> Reviewed-by: Mathieu Poirier <mathieu.poirier@linaro.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Suzuki Poulouse <suzuki.poulose@arm.com> Cc: coresight@lists.linaro.org Cc: linux-arm-kernel@lists.infradead.org Link: http://lore.kernel.org/lkml/20200501143615.1180-1-mike.leach@linaro.org 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) | (14 << 8) | (0))
|
|
#if !defined(OCSD_VER_NUM) || (OCSD_VER_NUM < OCSD_MIN_VER)
|
|
#error "OpenCSD >= 0.14.0 is required"
|
|
#endif
|
|
|
|
int main(void)
|
|
{
|
|
(void)ocsd_get_version();
|
|
return 0;
|
|
}
|