Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

debugging/toy kernel shell commands #374

Closed
6 of 9 tasks
hawkw opened this issue Nov 29, 2022 · 3 comments
Closed
6 of 9 tasks

debugging/toy kernel shell commands #374

hawkw opened this issue Nov 29, 2022 · 3 comments
Labels
kind/enhancement New feature or request

Comments

@hawkw
Copy link
Owner

hawkw commented Nov 29, 2022

  • dump <STRUCTURE> --- prints fmt::Debug representations of kernel data structures
    • dump idt to dump the interrupt descriptor table (arch-specific on x86)
    • dump gdt to dump the GDT (similarly, x86-specific)
    • dump topo or dump topology to print CPU topology
    • dump heap to print heap metrics (and/or heap maps?)
    • dump memmap or something?
  • sleep <TIME> (or something) --- spawn a sleep task for that demo (so we can stop spawning demo sleep tasks by default)
  • something to probe PCI devices at an addr?
  • maybe a command to set breakpoints?
@hawkw hawkw added the kind/enhancement New feature or request label Nov 29, 2022
@hawkw hawkw mentioned this issue Nov 29, 2022
5 tasks
@hawkw
Copy link
Owner Author

hawkw commented Dec 2, 2022

bd2f195 and #375 added some simple dump commands, as well as a framework for defining shell commands.

@hawkw
Copy link
Owner Author

hawkw commented Dec 3, 2022

sleep <SECONDS> command added in #377

@hawkw
Copy link
Owner Author

hawkw commented Dec 24, 2022

I've implemented a bunch of these, so I'm gonna call this one done. We can open separate issues for the other ones.

@hawkw hawkw closed this as completed Dec 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant