mirror of
https://github.com/torvalds/linux.git
synced 2024-11-26 14:12:06 +00:00
2dbba30fd6
Since commit d927ef5004
("perf cs-etm: Add exception level consistency
check"), the exception that was added to Perf will be triggered unless
the following bugfix from OpenCSD is present:
- _Version 1.2.1_:
- __Bugfix__:
ETM4x / ETE - output of context elements to client can in some
circumstances be delayed until after subsequent atoms have been
processed leading to incorrect memory decode access via the client
callbacks. Fixed to flush context elements immediately they are
committed.
Rather than remove the assert and silently fail, just increase the
minimum version requirement to avoid hard to debug issues and
regressions.
Reviewed-by: Ian Rogers <irogers@google.com>
Signed-off-by: James Clark <james.clark@arm.com>
Tested-by: Leo Yan <leo.yan@linaro.org>
Cc: John Garry <john.g.garry@oracle.com>
Cc: Mike Leach <mike.leach@linaro.org>
Cc: Will Deacon <will@kernel.org>
Cc: linux-arm-kernel@lists.infradead.org
Link: https://lore.kernel.org/r/20230901133716.677499-1-james.clark@arm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
17 lines
374 B
C
17 lines
374 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 ((1 << 16) | (2 << 8) | (1))
|
|
#if !defined(OCSD_VER_NUM) || (OCSD_VER_NUM < OCSD_MIN_VER)
|
|
#error "OpenCSD >= 1.2.1 is required"
|
|
#endif
|
|
|
|
int main(void)
|
|
{
|
|
(void)ocsd_get_version();
|
|
return 0;
|
|
}
|