genode/repos/os/recipes/pkg/test-trace/runtime
Norman Feske 713659cea5 test-trace: adjust rate of top passing tracepoints
The traced top instance was configured to be active every two seconds
whereas the trace test uses a grace time of only 1.5 seconds before
raising the FOREIGN state of a trace subject as an error.

The state of a trace subject can change only whenever the traced thread
passes a trace point. Hence, with the original configuration, the
release of top as trace subject can take up to two seconds. The patch
reduces the rate to 0.5 seconds to satisfy the expectation of
test-trace.
2023-12-13 12:33:05 +01:00

66 lines
1.6 KiB
Plaintext

<runtime ram="90M" caps="1000" binary="init">
<requires> <timer/> </requires>
<fail after_seconds="30"/>
<succeed>child "sequence" exited with exit value 0</succeed>
<fail>Error: </fail>
<content>
<rom label="ld.lib.so"/>
<rom label="top"/>
<rom label="test-trace"/>
<rom label="sequence"/>
<rom label="null"/>
</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>
<service name="TRACE"> <parent label=""/> </service>
<any-service> <parent/> <any-child/> </any-service>
</default-route>
<default caps="200"/>
<start name="sequence">
<resource name="RAM" quantum="15M"/>
<config>
<start name="test-trace">
<resource name="RAM" quantum="10M"/>
<config>
<trace_policy label="sequence -> test-trace" thread="test-thread" module="null"/>
</config>
</start>
<start name="test-trace">
<resource name="RAM" quantum="10M"/>
<config>
<trace_policy label="top" thread="ep" module="null"/>
</config>
</start>
<start name="test-trace">
<resource name="RAM" quantum="10M"/>
<config>
<trace_policy label="top" thread="ep" module="null"/>
</config>
</start>
</config>
</start>
<start name="top">
<resource name="RAM" quantum="2M"/>
<config period_ms="500"/>
</start>
</config>
</runtime>