Re: phk's JKH list

2002-08-19 Thread Terry Lambert

Poul-Henning Kamp wrote:
> I've started to type in my mental sticky notes, have at it:
> 
> http://people.freebsd.org/~phk/TODO/

| Kernel stack depth warning. 
| 
| Write a function which checks the amount of kernel stack used and
| print a warning if it exceeds a sysctl-able limit.
| The inserted calls should compile to nothing unless the right kernel
| options is used.
| Instrument the kernel strategically and examine the result.


If this is just for testing purposes, then you probably want to
look at `-finstrument-functions'; by ensuring that stacks are
all aligned on an 8K or so boundary, you can write small assembly
functions named:

void __cyg_profile_func_enter (void *this_fn, void *call_site);
void __cyg_profile_func_exit  (void *this_fn, void *call_site);

And check the stack pointer against the previous alignment
address (example: stack address mod 8K := current stack depth).

I've used these for non-statistical profiling (e.g. recording
specific arc's in gprof-usable buckets for kernel profiling,
rather than relying on a statistics clock and the current PC),
but the principle should work the same for this purpose.

-- Terry

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: phk's JKH list

2002-08-19 Thread Poul-Henning Kamp

In message <[EMAIL PROTECTED]>, Maxim Sobolev writes:
>Poul-Henning Kamp wrote:
>> 
>> I've started to type in my mental sticky notes, have at it:
>> 
>> http://people.freebsd.org/~phk/TODO/
>
>Could you please modify reference to each of the tasks to be link to
>the list of the relevant patches available so far, so that anybody who
>wants to pick up the task will have something to start from? For
>example, I have bunch of v_tag cleanup patches sitting in my local
>tree and ready to share them with anybody willing to continue where I
>left off.

Send me the link and I'll add it.

-- 
Poul-Henning Kamp   | UNIX since Zilog Zeus 3.20
[EMAIL PROTECTED] | TCP/IP since RFC 956
FreeBSD committer   | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: phk's JKH list

2002-08-19 Thread Maxim Sobolev

Poul-Henning Kamp wrote:
> 
> I've started to type in my mental sticky notes, have at it:
> 
> http://people.freebsd.org/~phk/TODO/

Could you please modify reference to each of the tasks to be link to
the list of the relevant patches available so far, so that anybody who
wants to pick up the task will have something to start from? For
example, I have bunch of v_tag cleanup patches sitting in my local
tree and ready to share them with anybody willing to continue where I
left off.

-Maxim

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: phk's JKH list

2002-08-19 Thread Andrew Kenneth Milton

+---[ Poul-Henning Kamp ]--
| 
| I've started to type in my mental sticky notes, have at it:
| 
|   http://people.freebsd.org/~phk/TODO/

Unfortunate choice of acronym there d8)

-- 
Totally Holistic Enterprises Internet|  | Andrew Milton
The Internet (Aust) Pty Ltd  |  M:+61 416 022 411   |
ACN: 082 081 472 ABN: 83 082 081 472 |[EMAIL PROTECTED]| Carpe Daemon

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



phk's JKH list

2002-08-19 Thread Poul-Henning Kamp


I've started to type in my mental sticky notes, have at it:

http://people.freebsd.org/~phk/TODO/

-- 
Poul-Henning Kamp   | UNIX since Zilog Zeus 3.20
[EMAIL PROTECTED] | TCP/IP since RFC 956
FreeBSD committer   | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message