bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Does task_info support the TASK_EVENTS_INFO type of information?


From: Da Zheng
Subject: Re: Does task_info support the TASK_EVENTS_INFO type of information?
Date: Tue, 02 Jun 2009 16:57:50 +0800
User-agent: Thunderbird 2.0.0.21 (Macintosh/20090302)

Samuel Thibault wrote:
Da Zheng, le Tue 02 Jun 2009 16:24:27 +0800, a écrit :
It seems to me that the Mach doesn't support TASK_EVENTS_INFO.

/usr/src/gnumach-1€ rgrep TASK_EVENTS_INFO .
./include/mach/task_info.h:#define      TASK_EVENTS_INFO        2 /* various 
event counts */
./include/mach/task_info.h:#define      TASK_EVENTS_INFO_COUNT  \
./doc/mach.info-1:    `TASK_EVENTS_INFO'
./doc/mach.info-1:          returned is `TASK_EVENTS_INFO_COUNT'.
./doc/mach.info-1:     provided it as the TASK_INFO parameter for the 
`TASK_EVENTS_INFO'
./doc/mach.texi:@item TASK_EVENTS_INFO
./doc/mach.texi:@code{TASK_EVENTS_INFO_COUNT}.
./doc/mach.texi:@code{TASK_EVENTS_INFO} flavor of @code{task_info}.  It has the
/usr/src/gnumach-1€

so yes, it seems not supported by GNU Mach albeit documented.

Samuel
However, TASK_EVENTS_INFO is used by Hurd in proc_getprocinfo. libps also tries to use it.
Is it a planned feature or it was supported by GNU Mach but was removed?
If it was removed, we should update the Hurd too.

Anyway, it causes some trouble when subhurd is shutdown.
I just provided a patch to make sure that proc_getprocinfo doesn't try to get the TASK_EVENTS_INFO type of information when the subhurd is shutdown.

Best regards,
Zheng Da




reply via email to

[Prev in Thread] Current Thread [Next in Thread]