-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(syscalls): Enably syscall recording for process mode, fix various…
… minor issues This commit enables syscall recording in process monitoring mode too. It was previouly restricted to only system monitoring mode for a reason lost to history, but it works perfectly well with processes too, so no reason to disable it. Minor fixes: - Attach "syscall events for location XXX" writer to location group of "location XXX". It was previously its own location group, but in that it case it just floats around somewhere, which seems less useful than having it directly by the executing process/cpu. - If 'all' syscalls are selected, initialize the size of the local -> global syscall calling context mapping to __NR_syscalls, which is one more than the highest defined syscall number. Previously it was initialized to the highest syscall number in syscall_filter, but in the 'all' case, that is empty. - Disable the syscall perf_event before finalizing the measurement. With how frequent syscalls are it is otherwise very easy to end up in endless loop kind of situation, where lo2s will never finish reading the buffer because there are always new events. - Always write syscall calling_context_leave's at end of trace. Some syscalls do not return (exit_group) and that just leaves the enter dangling in the thread, which appears in Vampir as if the syscall is ongoing until the end ot the trace. - If we lost events and receive a syscall exit for a syscall we have not got the enter for, but we are already in another syscall, atleast write the exit for the previous syscall.
- Loading branch information
Showing
8 changed files
with
74 additions
and
43 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
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
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