Conversation
Signed-off-by: Amjad Alsharafi <26300843+Amjad50@users.noreply.github.com>
For some reason the stack trace produced is not accurate Signed-off-by: Amjad Alsharafi <26300843+Amjad50@users.noreply.github.com>
Signed-off-by: Amjad Alsharafi <26300843+Amjad50@users.noreply.github.com>
Signed-off-by: Amjad Alsharafi <26300843+Amjad50@users.noreply.github.com>
Signed-off-by: Amjad Alsharafi <26300843+Amjad50@users.noreply.github.com>
Updated deprecated option in `.vscode/launch.json` for debugging. Signed-off-by: Amjad Alsharafi <26300843+Amjad50@users.noreply.github.com>
The issue was that we were getting the `vma_base` from the sections and not the segments. Its just a small change, but massive impact Signed-off-by: Amjad Alsharafi <26300843+Amjad50@users.noreply.github.com>
…hing programs This now works really nicely, just a few improvements to performance, but other than that, this is so good. Signed-off-by: Amjad Alsharafi <26300843+Amjad50@users.noreply.github.com>
Closed
Amjad50
enabled auto-merge
July 27, 2025 04:41
Amjad50
disabled auto-merge
July 27, 2025 04:43
Signed-off-by: Amjad Alsharafi <26300843+Amjad50@users.noreply.github.com>
Signed-off-by: Amjad Alsharafi <26300843+Amjad50@users.noreply.github.com>
Signed-off-by: Amjad Alsharafi <26300843+Amjad50@users.noreply.github.com>
Leaking is safe :D Signed-off-by: Amjad Alsharafi <26300843+Amjad50@users.noreply.github.com>
Signed-off-by: Amjad Alsharafi <26300843+Amjad50@users.noreply.github.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add profiling support for the kernel through qemu and qmp protocl
This works by attacking to
qmpsocket and fetching the current stack by usinggdbcommands through qemu.Then we get a
stack.foldedfile where we can generate flamegraph with or use it in https://www.speedscope.app/This now will make profiling and optimizing the OS so much simpler
Related issue
this kinda implements userspace profiling as well, but I don't like it so much so I won't make it finished)Changes
xtask profilecommand where it will attach to./qmp-socketthat was created byxtask --profile runand givesa summary or
stack.folded(with-oparameter)xtaskrun as--releaseby default because tracing require a bit of performance.rustChecklist