Re: Hurd server introspection and tracing

2014-10-25 Thread Richard Braun
On Sat, Oct 25, 2014 at 05:17:34PM +0200, Justus Winter wrote: > I'm not sure. I thought it was a clever idea, so that diagnostic > tools won't get blocked forever. If there is a better alternative > please let me know. It's hard to say, but on the other hand it's an entirely different problem.

Re: Hurd server introspection and tracing

2014-10-25 Thread Justus Winter
Quoting Richard Braun (2014-10-25 17:07:11) > On Sat, Oct 25, 2014 at 04:57:18PM +0200, Justus Winter wrote: > > No, I was referring to these two new functions: > > > > /* Label BUCKET with LABEL. */ > > void ports_label_bucket (struct port_bucket *bucket, const char *label); > > > > /* Label CL

Re: Hurd server introspection and tracing

2014-10-25 Thread Richard Braun
On Sat, Oct 25, 2014 at 04:57:18PM +0200, Justus Winter wrote: > No, I was referring to these two new functions: > > /* Label BUCKET with LABEL. */ > void ports_label_bucket (struct port_bucket *bucket, const char *label); > > /* Label CLASS with LABEL. Use DEBUG_INFO to format human-readable >

Re: Hurd server introspection and tracing

2014-10-25 Thread Justus Winter
Quoting Richard Braun (2014-10-25 16:01:35) > On Thu, Oct 23, 2014 at 05:16:38PM +0200, Justus Winter wrote: > > this patch series adds introspection and tracing facilities to the > > Hurd servers using libports. This isn't ready yet, but I'd like to > > give everyone a chance to complain early on

Re: Hurd server introspection and tracing

2014-10-25 Thread Richard Braun
On Thu, Oct 23, 2014 at 05:16:38PM +0200, Justus Winter wrote: > this patch series adds introspection and tracing facilities to the > Hurd servers using libports. This isn't ready yet, but I'd like to > give everyone a chance to complain early on. Some notes: > > * I use Machs `Inherited Ports'

[PATCH hurd] mach-defpager: use protected payloads for object lookups

2014-10-25 Thread Justus Winter
* mach-defpager/default_pager.c (pager_port_list_insert): Set protected payload. (pager_port_list_delete): Clear protected payload. * mach-defpager/mig-decls.h (begin_using_default_pager_payload): New function. * mach-defpager/mig-mutate.h: Add mutator. --- mach-defpager/default_pager.c | 9 ++

How to make use of the protected payloads

2014-10-25 Thread Justus Winter
Hello :) here is a patch that demonstrates how the new protected payloads can be used to optimize the receiver lookup in Hurd servers. It patches mach-defpager, which is very self-contained due to its heritage, most importantly it does not use libports. This made it an excellent target to conver