diff options
Diffstat (limited to 'pfinet')
-rw-r--r-- | pfinet/ethernet.c | 2 | ||||
-rw-r--r-- | pfinet/sched.c | 3 | ||||
-rw-r--r-- | pfinet/timer-emul.c | 3 |
3 files changed, 8 insertions, 0 deletions
diff --git a/pfinet/ethernet.c b/pfinet/ethernet.c index ae738de5..234e9007 100644 --- a/pfinet/ethernet.c +++ b/pfinet/ethernet.c @@ -102,6 +102,8 @@ static struct port_bucket *etherport_bucket; static void * ethernet_thread (void *arg) { + pthread_setname_np (pthread_self (), "ethernet"); + ports_manage_port_operations_one_thread (etherport_bucket, ethernet_demuxer, 0); diff --git a/pfinet/sched.c b/pfinet/sched.c index af03ab49..5a3dd3ed 100644 --- a/pfinet/sched.c +++ b/pfinet/sched.c @@ -19,6 +19,7 @@ #include "pfinet.h" +#include <pthread.h> #include <asm/system.h> #include <linux/sched.h> #include <linux/interrupt.h> @@ -59,6 +60,8 @@ sock_wake_async (struct socket *sock, int how) void * net_bh_worker (void *arg) { + pthread_setname_np (pthread_self (), "net_bh"); + pthread_mutex_lock (&net_bh_lock); while (1) { diff --git a/pfinet/timer-emul.c b/pfinet/timer-emul.c index f1686741..701a4164 100644 --- a/pfinet/timer-emul.c +++ b/pfinet/timer-emul.c @@ -26,6 +26,7 @@ #include <linux/sched.h> #include <error.h> #include <string.h> +#include <pthread.h> #include "pfinet.h" long long root_jiffies; @@ -40,6 +41,8 @@ timer_function (void *this_is_a_pointless_variable_with_a_rather_long_name) mach_port_t recv; int wait = 0; + pthread_setname_np (pthread_self (), "timer"); + recv = mach_reply_port (); timer_thread = mach_thread_self (); |