-
Notifications
You must be signed in to change notification settings - Fork 427
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[record & replay] Tidy up
BCCWrapper
& perf profiler before adding …
…the `rr` sub-tree. (#1697) Summary: We implement a few cosmetic changes to BCC wrapper that support the record & replay effort: 1. We add method `CommonPerfBufferSetup` which will be shared between the recording & normal BCC wrapper impls. 2. We rename the vector of perf buffer specs to `perf_buffer_specs_` i.e. because its inherent name is confusing. 3. We return a status from `PollPerfBuffer` which will be useful for the replaying BCC wrapper. 4. We return BCC as a pointer from BCC wrapper to enable the eventual replaying BCC wrapper. 5. In the perf profiler, we change the data type for the perf buffer names to `std::string` to avoid creating new strings every time they are used. In response to code review comments, we will rebase #1693 onto this PR, and continue to split that PR into pieces and merge it gradually. Type of change: /kind feature Test Plan: Existing test coverage. --------- Signed-off-by: Pete Stevenson <[email protected]>
- Loading branch information
Pete Stevenson
authored
Sep 18, 2023
1 parent
56033f3
commit e48d522
Showing
4 changed files
with
87 additions
and
49 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