ofproto-dpif-upcall: Give each miss_handler thread a unique name.
authorBen Pfaff <blp@nicira.com>
Sat, 2 Nov 2013 13:59:30 +0000 (06:59 -0700)
committerBen Pfaff <blp@nicira.com>
Sat, 2 Nov 2013 13:59:30 +0000 (06:59 -0700)
This may occasionally make debugging easier.

Suggested-by: Keith Amidon <keith@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
ofproto/ofproto-dpif-upcall.c

index 24a5729..dba3d3b 100644 (file)
@@ -394,7 +394,7 @@ udpif_upcall_handler(void *arg)
 {
     struct handler *handler = arg;
 
-    set_subprogram_name("upcall_handler");
+    set_subprogram_name("upcall_%u", ovsthread_id_self());
     for (;;) {
         struct list misses = LIST_INITIALIZER(&misses);
         size_t i;