-
Notifications
You must be signed in to change notification settings - Fork 588
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When using
PERF_RECORD_SWITCH
, allow ContextSwitchEvent initializat…
…ion to fail The tracee may have died unexpectedly or been killed. This commit allows the `cont_race` test to consistently pass when the test is run under all the following conditions: (a) kernel.perf_event_paranoid = 2 (b) kernel supports PERF_RECORD_SWITCH (Linux kernel >= 6.10) (c) syscallbuf is enabled (so here we're talking only about `cont_race` and NOT `cont_race-no-syscallbuf` which doesn't need switch events anyways) Without this commit, I noticed the occasional failure in (syscallbuf enabled) `cont_race`: [FATAL src/PerfCounterBuffers.cc:32:allocate() errno: EBADF] Can't allocate memory for PT DATA area
- Loading branch information
1 parent
3a5a49e
commit 346e355
Showing
5 changed files
with
30 additions
and
8 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