On Thu, Jul 11, 2013 at 05:16:33PM -0700, Ben Pfaff wrote:
> On Thu, Jul 11, 2013 at 09:40:57AM -0400, Ed Maste wrote:
> > On 10 July 2013 19:04, Ben Pfaff <b...@nicira.com> wrote:
> > > Signed-off-by: Ben Pfaff <b...@nicira.com>
> > 
> > > +void
> > > +set_subprogram_name(const char *name)
> > > +{
> > > +    free(subprogram_name_set(xstrdup(name)));
> > > +}
> > 
> > How about calling (through appropriate abstraction) pthread_setname_np
> > (Linux) or pthread_set_name_np (FreeBSD)?  The thread names will then
> > appear in gdb or lldb, and in top(1) (on FreeBSD at least).
> 
> I didn't know about those functions.  Thanks, I'll look into it.

I decided to apply this as-is and then send out a separate patch to
add this functionality.  It is here:
        http://openvswitch.org/pipermail/dev/2013-July/029589.html

Thanks,

Ben.
_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to