sculpt: add "runtime" and "global" TRACE options

Issue #847
This commit is contained in:
Norman Feske 2023-12-01 17:54:15 +01:00
parent f66ce025d3
commit 12b89852e0
3 changed files with 8 additions and 7 deletions

View File

@ -664,6 +664,8 @@ install_config {
<service name="Pin_state"> <child name="drivers"/> </service>
<service name="Pin_control"> <child name="drivers"/> </service>
<service name="Terminal"> <child name="terminal_monitor"/> </service>
<service name="TRACE" label="runtime"> <parent label="runtime -> "/> </service>
<service name="TRACE" label="global"> <parent label=""/> </service>
<any-service> <parent/> </any-service>
</route>
</start>

View File

@ -1,7 +1,8 @@
<launcher pkg="trace_logger">
<route>
<service name="TRACE"> <parent/> </service>
<!-- replace "global" by "runtime" to narrow the view -->
<service name="TRACE"> <parent label="global" /> </service>
</route>
<config verbose="yes"
@ -12,11 +13,7 @@
default_policy="null"
default_buffer="4K">
<policy label_prefix="init -> runtime -> "/>
<!-- uncomment to trace the drivers subsystem
<policy label_prefix="init -> drivers -> "/>
-->
<default-policy/>
</config>

View File

@ -344,7 +344,9 @@ class Sculpt::Runtime_config
_hw_gpu { _r, Type::PLATFORM, "GPU hardware", "gpu" },
_pin_state { _r, Type::PIN_STATE, "GPIO pin state" },
_pin_ctrl { _r, Type::PIN_CONTROL, "GPIO pin control" },
_trace { _r, Type::TRACE, "system-global tracing" },
_trace_all { _r, Type::TRACE, "system", "global" },
_trace_rt { _r, Type::TRACE, "deployment", "runtime" },
_trace { _r, Type::TRACE, "component" },
_vm { _r, Type::VM, "virtualization hardware" },
_pd { _r, Type::PD, "system PD service" },
_monitor { _r, Type::TERMINAL, "debug monitor" };