genode/repos/os/recipes/pkg/test-trace_logger
Norman Feske bfe88307de core: filter trace subjects by TRACE session label
This patch changes core's TRACE service to expose trace subjects only if
their PD label matches the label of the TRACE monitor. Hence, by default,
a trace monitor can only observe itself and its child components. Only
if the trace monitor's parent rewrites the trace-session's label, the
view of trace monitor can become broader. For example, when rewriting
the trace label to an empty string "", the trace monitor becomes able to
observe the sibling components hosted in the same init instance as the
trace monitor.

To grant a trace session the special privilege of obtaining a global
system view (including the kernel's trace subjects), the top-level init
has to rewrite the session's label to an empty string. At core, this
specific label "init -> " is handled as a special case that discharges
the filtering/namespacing of trace subjects.

Note that the trace-subject label as reported as subject info is now
given relative to the label of the trace session. As a nice side effect
of this change, the pkg/test-trace_logger works now when executed by the
depot_autopilot as well as via the test.run script.

Issue #847
2023-12-13 12:28:52 +01:00
..
archives Archive recipes for autopilot tests 2018-11-16 15:07:53 +01:00
hash depot: update recipe hashes 2023-11-30 15:11:36 +01:00
README Archive recipes for autopilot tests 2018-11-16 15:07:53 +01:00
runtime core: filter trace subjects by TRACE session label 2023-12-13 12:28:52 +01:00

Test functionality of the trace logger.