-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rather than keeping a large-ish fixed-size array for every single process, use a longest prefix match that the BPF trie data structure provides, this has several benefits. - Searching is no longer linear the number of mappings; - The max numer of mappings is lifted, and now the total amount of mapping entries are shared among the processes, so processes that have few mappings will have few entries, while processes with lots of mappings can have more entries than the current maximum, allowing lightswitch to profile more applications; Future work =========== There are no counters in BPF or userspace in case of errors. There are a bunch of areas in the code that can panic, such as map operations that will fail if the maps are full. Test Plan ========= Added unit and integration tests, as well as ran this commit for several hours with many different processes without issues.
- Loading branch information
1 parent
d44df1e
commit 0a13d07
Showing
7 changed files
with
246 additions
and
79 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,4 @@ pub mod profile; | |
pub mod profiler; | ||
pub mod unwind_info; | ||
pub mod usym; | ||
pub mod util; |
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
Oops, something went wrong.