Open
Conversation
This commit introduces a new configuration option, JUMP_LABEL_PATCH_LOG_SNAPSHOT, to enable snapshot logging of jump labels for debugging purposes. It includes the implementation of functions to append entries to a log and publish them via debugfs. The changes also modify the jump label transformation logic to utilize the new logging functionality, enhancing the debugging capabilities of the jump label mechanism in the RISC-V architecture.
This change reduces the maximum number of jump label entries from 65536 to 8192, optimizing memory usage for the jump label patch logging feature.
This commit adds export symbols for three new tracepoints: __tracepoint_sched_process_exec, __tracepoint_sched_process_fork, and __tracepoint_sched_switch, enhancing the tracing capabilities for process execution, forking, and context switching in the scheduler.
This commit enhances the RISC-V CPU feature patching function by appending jump label entries to the logging system during the patching process. It includes a loop that captures the new instructions being patched and logs them for debugging purposes, improving traceability and debugging capabilities in the architecture.
This commit modifies the RISC-V CPU feature patching function to ensure that the correct instructions are logged during the patching process. The change involves updating the source of the instruction data from the alternative pointer to the old pointer, enhancing the accuracy of the jump label snapshot logging. Additionally, the call to fix offsets has been moved to maintain proper functionality.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR supports logging and storing the jump label patch for offline binary analysis, including trace decoding.