Add support for JUMP_LABEL batch-mode feature for ARM64 #352
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
ARM64 added support for JUMP_LABEL batch-mode feature. This commit adds support for it and addresses #351
How Has This Been Tested?
Run it under Raspberry Pi 4 (under ALT Linux - thanks to @vt-alt ). I run it for couple of hours under the following condition:
screen 1: run the command
while true; do echo 1 > /sys/kernel/debug/tracing/events/enable && echo 0 > /sys/kernel/debug/tracing/events/enable; done
which enforces JUMP_LABEL batch modescreen 2: run the command
while true; do sysctl lkrg.trigger=1; sleep 1; done
to enforce integrity validation.More comprehensive tests are probably needed. However, it seems like that current logic works (at least for now).