Browse Source

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
cached_fs_rom
Emery Hemingway 4 months ago
parent
commit
72032b25e1
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      repos/os/src/server/cached_fs_rom/main.cc

+ 2
- 0
repos/os/src/server/cached_fs_rom/main.cc View File

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

Loading…
Cancel
Save