cached_fs_rom: diagnosis of delivered ROM sessions

To enable logging of ROM session deliveries, set the "diag" on
session routes:

<route>
  <service name="ROM" label_prefix="/bin/">
    <child name="cached_fs_rom" diag="yes"/>
  </service>
  …
<route>

Fix #3772
This commit is contained in:
Ehmry - 2020-05-29 17:39:05 +05:30
parent 53f32e4ba3
commit 72032b25e1

View File

@ -394,6 +394,8 @@ struct Cached_fs_rom::Main final : Genode::Session_request_handler
/* Create new RPC object */
Session_component *session = new (heap)
Session_component(*rom, sessions, id, label);
if (session_diag_from_args(args.string()).enabled)
log("deliver ROM \"", label, "\"");
env.parent().deliver_session_cap(pid, env.ep().manage(*session));
} else if (!rom->transfer) {