-
Notifications
You must be signed in to change notification settings - Fork 566
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
i#5505 kernel tracing: Delay syscall_idx marker after PT trace (#6935)
Delays outputting the TRACE_MARKER_TYPE_SYSCALL_IDX marker to the post-syscall callback (instead of the pre-syscall callback where it is output currently) where we also output the PT trace. Some drmemtrace derivations may interleave user-space and PT trace data, which means we want the PT trace to be read before the syscall_idx marker. If a signal interrupts the syscall, then the syscall_idx marker will be written to trace before the PT trace: we want to avoid this. Relaxes invariant checks related to the syscall_num marker before the syscall trace start marker for PT instr-only traces. In the case described above, there will be no syscall_num marker immediately before the syscall trace start. Added a comment noting the complexities of handling this case, which exist even without the ordering constraint described above. Verified on an Intel-PT hardware that the related tests pass: ``` The following tests passed: code_api|tool.drcacheoff.kernel.simple_SUDO code_api|tool.drcacheoff.kernel.opcode-mix_SUDO code_api|tool.drcacheoff.kernel.syscall-mix_SUDO code_api|tool.drcacheoff.kernel.invariant-checker_SUDO The following tests passed: code_api|client.drpttracer_SUDO-test ``` Issue: #5505
- Loading branch information
1 parent
db323a4
commit 8541566
Showing
3 changed files
with
120 additions
and
40 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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