2020-04-09 10:16:45 +00:00
|
|
|
<runtime ram="100M" caps="1000" binary="init">
|
2018-10-10 16:08:14 +00:00
|
|
|
|
|
|
|
<requires> <timer/> </requires>
|
|
|
|
|
2023-06-24 14:57:19 +00:00
|
|
|
<fail after_seconds="20"/>
|
|
|
|
<succeed>
|
trace_logger: make output format more concise
This patch changes the output format of the trace logger to become
better suitable for human consumption. For example, when instrumenting
the VFS server in Sculpt using the GENODE_TRACE_TSC utility, the
trace logger now generates tabular output as follows.
Report 4
PD "init -> runtime -> arch_vbox6 -> vbox -> " ----------------
Thread "vCPU" at (0,0) total:12909024 recent:989229
Thread "vCPU" at (1,0) total:5643234 recent:786437
PD "init -> runtime -> ahci-0.fs" -----------------------------
Thread "ahci-0.fs" at (0,0) total:910497 recent:6335
Thread "ep" at (0,0) total:0 recent:0
71919692932: TSC process_packets: 8005M (4998 calls, last 4932K)
71921558516: TSC process_packets: 8006M (4999 calls, last 1596K)
71922760220: TSC process_packets: 8007M (5000 calls, last 1006K)
71929853586: TSC process_packets: 8009M (5001 calls, last 1840K)
71931315246: TSC process_packets: 8011M (5002 calls, last 1253K)
72127999920: TSC process_packets: 8016M (5003 calls, last 5606K)
72129568198: TSC process_packets: 8018M (5004 calls, last 1345K)
77161908178: TSC process_packets: 8029M (5005 calls, last 11349K)
77643225736: TSC process_packets: 8029M (5006 calls, last 217K)
89422100594: TSC process_packets: 8035M (5007 calls, last 5656K)
89422123632: TSC process_packets: 8035M (5008 calls, last 1342)
Thread "signal handler" at (0,0) total:36329 recent:3001
Thread "signal_proxy" at (0,0) total:51838 recent:13099
Thread "pdaemon" at (0,0) total:97184 recent:332
Thread "vdrain" at (0,0) total:1266 recent:286
Thread "vrele" at (0,0) total:1904 recent:516
PD "init -> runtime -> nic_drv" -------------------------------
Thread "nic_drv" at (0,0) total:34044 recent:897
Thread "signal handler" at (0,0) total:369 recent:142
...
Subjects that belong to the same PD are grouped together. The formerly
optional affinity and activity options have been removed. Those
information are now unconditionally displayed. The trace entries
belonging to a thread appear as slightly indented.
The patch also updates the coding style, avoiding excessively long
lines.
Issue #4448
2022-03-11 16:50:01 +00:00
|
|
|
[init -> trace_logger] Report *
|
2023-12-01 16:52:57 +00:00
|
|
|
[init -> trace_logger] PD "cpu_burner.*"*
|
trace_logger: make output format more concise
This patch changes the output format of the trace logger to become
better suitable for human consumption. For example, when instrumenting
the VFS server in Sculpt using the GENODE_TRACE_TSC utility, the
trace logger now generates tabular output as follows.
Report 4
PD "init -> runtime -> arch_vbox6 -> vbox -> " ----------------
Thread "vCPU" at (0,0) total:12909024 recent:989229
Thread "vCPU" at (1,0) total:5643234 recent:786437
PD "init -> runtime -> ahci-0.fs" -----------------------------
Thread "ahci-0.fs" at (0,0) total:910497 recent:6335
Thread "ep" at (0,0) total:0 recent:0
71919692932: TSC process_packets: 8005M (4998 calls, last 4932K)
71921558516: TSC process_packets: 8006M (4999 calls, last 1596K)
71922760220: TSC process_packets: 8007M (5000 calls, last 1006K)
71929853586: TSC process_packets: 8009M (5001 calls, last 1840K)
71931315246: TSC process_packets: 8011M (5002 calls, last 1253K)
72127999920: TSC process_packets: 8016M (5003 calls, last 5606K)
72129568198: TSC process_packets: 8018M (5004 calls, last 1345K)
77161908178: TSC process_packets: 8029M (5005 calls, last 11349K)
77643225736: TSC process_packets: 8029M (5006 calls, last 217K)
89422100594: TSC process_packets: 8035M (5007 calls, last 5656K)
89422123632: TSC process_packets: 8035M (5008 calls, last 1342)
Thread "signal handler" at (0,0) total:36329 recent:3001
Thread "signal_proxy" at (0,0) total:51838 recent:13099
Thread "pdaemon" at (0,0) total:97184 recent:332
Thread "vdrain" at (0,0) total:1266 recent:286
Thread "vrele" at (0,0) total:1904 recent:516
PD "init -> runtime -> nic_drv" -------------------------------
Thread "nic_drv" at (0,0) total:34044 recent:897
Thread "signal handler" at (0,0) total:369 recent:142
...
Subjects that belong to the same PD are grouped together. The formerly
optional affinity and activity options have been removed. Those
information are now unconditionally displayed. The trace entries
belonging to a thread appear as slightly indented.
The patch also updates the coding style, avoiding excessively long
lines.
Issue #4448
2022-03-11 16:50:01 +00:00
|
|
|
[init -> trace_logger] Thread "ep" at (0,0) TRACED total:* recent:*
|
2023-12-01 16:52:57 +00:00
|
|
|
[init -> trace_logger] PD "dynamic_rom"*
|
trace_logger: make output format more concise
This patch changes the output format of the trace logger to become
better suitable for human consumption. For example, when instrumenting
the VFS server in Sculpt using the GENODE_TRACE_TSC utility, the
trace logger now generates tabular output as follows.
Report 4
PD "init -> runtime -> arch_vbox6 -> vbox -> " ----------------
Thread "vCPU" at (0,0) total:12909024 recent:989229
Thread "vCPU" at (1,0) total:5643234 recent:786437
PD "init -> runtime -> ahci-0.fs" -----------------------------
Thread "ahci-0.fs" at (0,0) total:910497 recent:6335
Thread "ep" at (0,0) total:0 recent:0
71919692932: TSC process_packets: 8005M (4998 calls, last 4932K)
71921558516: TSC process_packets: 8006M (4999 calls, last 1596K)
71922760220: TSC process_packets: 8007M (5000 calls, last 1006K)
71929853586: TSC process_packets: 8009M (5001 calls, last 1840K)
71931315246: TSC process_packets: 8011M (5002 calls, last 1253K)
72127999920: TSC process_packets: 8016M (5003 calls, last 5606K)
72129568198: TSC process_packets: 8018M (5004 calls, last 1345K)
77161908178: TSC process_packets: 8029M (5005 calls, last 11349K)
77643225736: TSC process_packets: 8029M (5006 calls, last 217K)
89422100594: TSC process_packets: 8035M (5007 calls, last 5656K)
89422123632: TSC process_packets: 8035M (5008 calls, last 1342)
Thread "signal handler" at (0,0) total:36329 recent:3001
Thread "signal_proxy" at (0,0) total:51838 recent:13099
Thread "pdaemon" at (0,0) total:97184 recent:332
Thread "vdrain" at (0,0) total:1266 recent:286
Thread "vrele" at (0,0) total:1904 recent:516
PD "init -> runtime -> nic_drv" -------------------------------
Thread "nic_drv" at (0,0) total:34044 recent:897
Thread "signal handler" at (0,0) total:369 recent:142
...
Subjects that belong to the same PD are grouped together. The formerly
optional affinity and activity options have been removed. Those
information are now unconditionally displayed. The trace entries
belonging to a thread appear as slightly indented.
The patch also updates the coding style, avoiding excessively long
lines.
Issue #4448
2022-03-11 16:50:01 +00:00
|
|
|
[init -> trace_logger] Thread "ep" at (0,0) TRACED total:* recent:*
|
2023-12-01 16:52:57 +00:00
|
|
|
[init -> trace_logger] PD "test-trace_logger"*
|
trace_logger: make output format more concise
This patch changes the output format of the trace logger to become
better suitable for human consumption. For example, when instrumenting
the VFS server in Sculpt using the GENODE_TRACE_TSC utility, the
trace logger now generates tabular output as follows.
Report 4
PD "init -> runtime -> arch_vbox6 -> vbox -> " ----------------
Thread "vCPU" at (0,0) total:12909024 recent:989229
Thread "vCPU" at (1,0) total:5643234 recent:786437
PD "init -> runtime -> ahci-0.fs" -----------------------------
Thread "ahci-0.fs" at (0,0) total:910497 recent:6335
Thread "ep" at (0,0) total:0 recent:0
71919692932: TSC process_packets: 8005M (4998 calls, last 4932K)
71921558516: TSC process_packets: 8006M (4999 calls, last 1596K)
71922760220: TSC process_packets: 8007M (5000 calls, last 1006K)
71929853586: TSC process_packets: 8009M (5001 calls, last 1840K)
71931315246: TSC process_packets: 8011M (5002 calls, last 1253K)
72127999920: TSC process_packets: 8016M (5003 calls, last 5606K)
72129568198: TSC process_packets: 8018M (5004 calls, last 1345K)
77161908178: TSC process_packets: 8029M (5005 calls, last 11349K)
77643225736: TSC process_packets: 8029M (5006 calls, last 217K)
89422100594: TSC process_packets: 8035M (5007 calls, last 5656K)
89422123632: TSC process_packets: 8035M (5008 calls, last 1342)
Thread "signal handler" at (0,0) total:36329 recent:3001
Thread "signal_proxy" at (0,0) total:51838 recent:13099
Thread "pdaemon" at (0,0) total:97184 recent:332
Thread "vdrain" at (0,0) total:1266 recent:286
Thread "vrele" at (0,0) total:1904 recent:516
PD "init -> runtime -> nic_drv" -------------------------------
Thread "nic_drv" at (0,0) total:34044 recent:897
Thread "signal handler" at (0,0) total:369 recent:142
...
Subjects that belong to the same PD are grouped together. The formerly
optional affinity and activity options have been removed. Those
information are now unconditionally displayed. The trace entries
belonging to a thread appear as slightly indented.
The patch also updates the coding style, avoiding excessively long
lines.
Issue #4448
2022-03-11 16:50:01 +00:00
|
|
|
[init -> trace_logger] Thread "ep" at (0,0) TRACED total:* recent:*
|
|
|
|
[init -> trace_logger] 100 *
|
|
|
|
[init -> trace_logger] trigger_once
|
|
|
|
[init -> trace_logger] trigger_once
|
2023-06-24 14:57:19 +00:00
|
|
|
</succeed>
|
2018-10-10 16:08:14 +00:00
|
|
|
|
|
|
|
<content>
|
|
|
|
<rom label="ld.lib.so"/>
|
|
|
|
<rom label="dynamic_rom"/>
|
|
|
|
<rom label="cpu_burner"/>
|
|
|
|
<rom label="test-trace_logger"/>
|
|
|
|
<rom label="trace_logger"/>
|
|
|
|
<rom label="null"/>
|
|
|
|
<rom label="rpc_name"/>
|
2020-04-09 10:16:45 +00:00
|
|
|
<rom label="log_output"/>
|
2018-10-10 16:08:14 +00:00
|
|
|
</content>
|
|
|
|
|
|
|
|
<config>
|
|
|
|
<parent-provides>
|
|
|
|
<service name="ROM"/>
|
|
|
|
<service name="IRQ"/>
|
|
|
|
<service name="IO_MEM"/>
|
|
|
|
<service name="IO_PORT"/>
|
|
|
|
<service name="PD"/>
|
|
|
|
<service name="RM"/>
|
|
|
|
<service name="CPU"/>
|
|
|
|
<service name="LOG"/>
|
|
|
|
<service name="TRACE"/>
|
|
|
|
<service name="Timer"/>
|
|
|
|
</parent-provides>
|
|
|
|
<default-route>
|
|
|
|
<any-service> <parent/> <any-child/> </any-service>
|
|
|
|
</default-route>
|
|
|
|
<default caps="100"/>
|
|
|
|
|
2023-06-24 14:57:19 +00:00
|
|
|
<start name="trace_logger">
|
2018-10-10 16:08:14 +00:00
|
|
|
<resource name="RAM" quantum="80M"/>
|
2023-12-04 13:22:49 +00:00
|
|
|
<config verbose="yes" priority="no" sc_time="no" session_ram="10M" session_arg_buffer="64K" period_sec="3" default_policy="null" default_buffer="1K">
|
2018-10-10 16:08:14 +00:00
|
|
|
|
2023-12-01 16:52:57 +00:00
|
|
|
<policy label_prefix="cpu_burner" thread="ep"/>
|
2018-10-10 16:08:14 +00:00
|
|
|
|
2023-12-01 16:52:57 +00:00
|
|
|
<policy label="test-trace_logger" thread="ep" buffer="4K" policy="rpc_name"/>
|
2020-04-09 10:16:45 +00:00
|
|
|
|
2023-12-01 16:52:57 +00:00
|
|
|
<policy label="dynamic_rom" thread="ep" buffer="8K" policy="log_output"/>
|
2018-10-10 16:08:14 +00:00
|
|
|
</config>
|
2023-12-01 16:52:57 +00:00
|
|
|
<route>
|
|
|
|
<service name="TRACE"> <parent label=""/> </service>
|
|
|
|
<any-service> <parent/> <any-child/> </any-service>
|
|
|
|
</route>
|
2018-10-10 16:08:14 +00:00
|
|
|
</start>
|
|
|
|
|
|
|
|
<start name="dynamic_rom">
|
|
|
|
<resource name="RAM" quantum="4M"/>
|
|
|
|
<provides><service name="ROM"/></provides>
|
|
|
|
<config verbose="yes">
|
|
|
|
<rom name="cpu_burner1.config">
|
|
|
|
<inline description="initial state">
|
|
|
|
<config percent="5"/>
|
|
|
|
</inline>
|
2023-06-24 14:57:19 +00:00
|
|
|
<sleep milliseconds="5000"/>
|
2018-10-10 16:08:14 +00:00
|
|
|
<inline description="50%">
|
2023-06-24 14:57:19 +00:00
|
|
|
<config percent="50"/>
|
2018-10-10 16:08:14 +00:00
|
|
|
</inline>
|
2023-06-24 14:57:19 +00:00
|
|
|
<sleep milliseconds="5000"/>
|
2018-10-10 16:08:14 +00:00
|
|
|
</rom>
|
|
|
|
<rom name="cpu_burner2.config">
|
|
|
|
<inline description="initial state">
|
|
|
|
<config percent="5"/>
|
|
|
|
</inline>
|
2023-06-24 14:57:19 +00:00
|
|
|
<sleep milliseconds="4800"/>
|
2018-10-10 16:08:14 +00:00
|
|
|
<inline description="100%">
|
2023-06-24 14:57:19 +00:00
|
|
|
<config percent="70"/>
|
2018-10-10 16:08:14 +00:00
|
|
|
</inline>
|
2023-06-24 14:57:19 +00:00
|
|
|
<sleep milliseconds="2700"/>
|
2018-10-10 16:08:14 +00:00
|
|
|
</rom>
|
|
|
|
</config>
|
|
|
|
</start>
|
|
|
|
|
2023-06-24 14:57:19 +00:00
|
|
|
<start name="test-trace_logger">
|
2018-10-10 16:08:14 +00:00
|
|
|
<resource name="RAM" quantum="1M"/>
|
|
|
|
</start>
|
|
|
|
|
|
|
|
<start name="cpu_burner.1">
|
|
|
|
<binary name="cpu_burner"/>
|
2022-09-13 09:20:39 +00:00
|
|
|
<resource name="RAM" quantum="1280K"/>
|
2018-10-10 16:08:14 +00:00
|
|
|
<route>
|
2020-05-08 14:21:20 +00:00
|
|
|
<service name="ROM" label="config">
|
|
|
|
<child name="dynamic_rom" label="cpu_burner1.config"/> </service>
|
2018-10-10 16:08:14 +00:00
|
|
|
<any-service> <parent/> <any-child/> </any-service>
|
|
|
|
</route>
|
|
|
|
</start>
|
|
|
|
|
|
|
|
<start name="cpu_burner.2">
|
|
|
|
<binary name="cpu_burner"/>
|
2022-09-13 09:20:39 +00:00
|
|
|
<resource name="RAM" quantum="1280K"/>
|
2018-10-10 16:08:14 +00:00
|
|
|
<route>
|
2020-05-08 14:21:20 +00:00
|
|
|
<service name="ROM" label="config">
|
|
|
|
<child name="dynamic_rom" label="cpu_burner2.config"/> </service>
|
2018-10-10 16:08:14 +00:00
|
|
|
<any-service> <parent/> <any-child/> </any-service>
|
|
|
|
</route>
|
|
|
|
</start>
|
|
|
|
</config>
|
|
|
|
</runtime>
|