diff options
author | John Garry <[email protected]> | 2023-08-07 11:16:31 +0000 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2023-08-21 09:57:05 -0300 |
commit | 7298e876075eea8d2e782bf846ab0b4721afac92 (patch) | |
tree | 4c5b50abe5e22929030cae9c3ae12c672cdd3cec /tools/perf/scripts/python/gecko.py | |
parent | 64917f4df048a0649ea7901c2321f020e71e6f24 (diff) |
perf jevents: Raise exception for no definition of a arch std event
Recently Ilkka reported that the JSONs for the AmpereOne arm64-based
platform included a dud event which referenced a non-existent arch std
event [0].
Previously in the times of jevents.c, we would raise an exception for this.
This is still invalid, even though the current code just ignores such an
event.
Re-introduce code to raise an exception for when no definition exists to
help catch as many invalid JSONs as possible.
[0] https://lore.kernel.org/linux-perf-users/[email protected]/
Reviewed-by: Ian Rogers <[email protected]>
Signed-off-by: John Garry <[email protected]>
Tested-by: Ilkka Koskinen <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/gecko.py')
0 files changed, 0 insertions, 0 deletions