bjorn3
f9a4178898
Always enable graphical_debug
...
We already gracefully handle a missing framebuffer.
2025-09-11 21:41:30 +02:00
bjorn3
8f589f7b88
Disable graphical debug only once writing to the fd
...
This allows obtaining an fd for this before calling setrens while doing
the actual disabling after calling it.
2025-04-06 17:13:26 +02:00
Ron Williams
865122e92f
Fix serial console login
2024-10-10 18:45:14 +00:00
4lDO2
8d4ee26ff1
Fix profiling && + toggle support via debug scheme.
2024-10-07 10:20:51 +02:00
bjorn3
8f186a692f
Allow writing messages to debug: without preserving them in sys:log
...
This would allow logd to write all received log messages to debug:
without causing an infinite loop when it at the same time reads all
messages in sys:log.
2024-07-25 12:49:43 +02:00
bjorn3
e7a46c3422
Let userspace control when graphical_debug gets disabled
...
Rather than disabling it right before entering userspace. This allows
showing debug messages while the graphics subsystem hasn't initialized
yet.
2024-07-24 20:59:40 +02:00
4lDO2
d94baa2712
Run rustfmt.
2024-07-15 17:50:18 +02:00
4lDO2
5e7db80285
Fix a bunch of warnings.
2024-07-15 17:48:45 +02:00
Jacob Lorentzon
bf0fc66ac1
Improved scheme protocol.
2024-06-14 11:31:51 +00:00
4lDO2
1b3e024f7d
Fix profiling code.
2024-03-23 15:52:18 +01:00
Jeremy Soller
45f1c4e29e
Add rustfmt from relibc and apply it with cargo fmt
2024-01-17 13:52:01 -07:00
4lDO2
529c491fa0
Allow disabling profiling at compile time.
2023-12-17 00:49:28 +01:00
4lDO2
fac0e783ef
Refactor profiling code.
2023-12-17 00:49:28 +01:00
4lDO2
0f27d55c0a
Advance profiling buffer correctly.
2023-12-17 00:49:28 +01:00
4lDO2
f973bc4128
Profiling
2023-12-17 00:49:24 +01:00
bjorn3
2d065083df
Use HashMap instead of BTreeMap where possible
...
This shrinks the kernel from 905840 bytes to 862408 bytes.
2023-12-13 19:55:20 +01:00
4lDO2
10e86ea89d
Hardcode global scheme IDs.
2023-12-13 11:08:11 +01:00
4lDO2
679c26c03b
s/Arc<dyn KernelScheme>/enum, but deref as dyn.
2023-12-13 11:08:07 +01:00
4lDO2
036a4bdee4
Replace syscall::Scheme with KernelScheme.
2023-11-15 20:00:47 +01:00
4lDO2
0d4f3125cd
Use Once<SchemeId> for debug:, simplify other Once.
2023-09-06 08:58:59 +02:00
4lDO2
f700958642
Fix debug: scheme.
2023-07-10 16:26:52 +02:00
4lDO2
56f88e80c2
Usercopy migration
2023-07-06 13:03:21 +00:00
4lDO2
de28cc4918
Add a Scheme supertrait for kernel-only methods.
2022-07-27 10:51:45 +02:00
Jeremy Soller
52ad689d37
Notify debug: readers of new input after all input is processed
2022-02-14 08:49:34 -07:00
Jeremy Soller
6db78cce24
Use UTF-8 for all paths
2021-02-14 13:45:03 -07:00
Jeremy Soller
5fd8f0430b
Cleanup debug scheme
2020-04-19 21:39:53 -06:00
Jeremy Soller
fdf46d8043
Fix multi_core livelocks and add livelock debugging
2020-04-19 08:46:50 -06:00
Jeremy Soller
63e2a835e0
Fix clippy.sh script and fix a number of clippy warnings
2019-10-06 11:04:06 -06:00
jD91mZM2
538ca49ee2
Suggestion: Switch to bitflags
2019-07-26 12:23:21 +02:00
jD91mZM2
fe705d9b63
Switch to 2018 edition
...
Most of this was generated by the absolutely extraordinary `cargo fix`
subcommand. There were still 2 errors and a few warnings to patch up,
but compared to the normal 600+ errors, I'd say the fixer did a damn
good job! I'm also amazed that I could still start the VM after this,
I half expected some kinds of runtime failure...
2019-06-21 12:12:01 +02:00
Jeremy Soller
f042bd5d07
Update for new rust
2019-04-07 10:57:33 -06:00
Jeremy Soller
e2a6233c12
New fevent functionality to prevent missing events
2019-03-13 13:57:07 -06:00
Jeremy Soller
b80f38b039
More debugging output options
2019-03-11 19:50:50 -06:00
Jeremy Soller
ef919f3d52
Implement EINTR for anything using wait_queue
2018-12-22 08:02:00 -07:00
Jeremy Soller
15313f98af
Remove unnecessary dup implementations
2018-10-20 08:08:31 -06:00
Jeremy Soller
43a163d8d6
Debug scheme will return correct event id
2018-05-20 12:56:37 -06:00
Jeremy Soller
cb94d334ac
Fix issue with debug fevent
2018-05-20 12:33:54 -06:00
Jeremy Soller
99a3bff2da
WIP: New event system
2018-05-20 11:08:37 -06:00
Jeremy Soller
6a061665e4
Use EINVAL instead of ENOENT
2017-07-22 13:21:15 -06:00
Jeremy Soller
fc914e0cae
Make it an error to supply a dup buffer to schemes that do not handle it
2017-07-22 12:54:28 -06:00
Jeremy Soller
efd64d55e1
Bug fixes for fcntl and o_cloexec
...
Add fcntl to schemes
Fix debug: hang
2017-04-19 21:56:09 -06:00
Jeremy Soller
a38f32c735
Add path implementation to most kernel schemes
2017-04-15 09:50:02 -06:00
Jeremy Soller
a7f35e14cc
Cleanup debug scheme
2017-04-05 20:11:51 -06:00
Jeremy Soller
0c8ba636f4
Cleanup Redox repo, update Rust, remove old target
2017-01-03 15:55:00 -07:00