tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/42030 - tracking of file descriptors by ktrace/kdump
On Tue, May 31, 2011 at 06:27:17AM -0400, Christos Zoulas wrote:
> On May 31, 7:57am, david%l8s.co.uk@localhost (David Laight) wrote:
> -- Subject: Re: kern/42030 - tracking of file descriptors by ktrace/kdump
>
> | > if (ktr->ktr_dtype < __arraycount(dnames))
> | > >+ printf("%s %d\n", dnames[ktr->ktr_dtype], ktr->ktr_fd);
> | > >+ else
> | > >+ printf("%d\n", ktr->ktr_fd);
> |
> | You can't do that - think what happens when another trace type is added.
>
> If you don't recompile the dumper, it prints just %d, if you do it prints
> the new trace name? Am I missing something? This is why I asked to print
> the value too.
Possibly I was confused thinking that there was an explicit case when
you didn't want the name.
David
--
David Laight: david%l8s.co.uk@localhost
Home |
Main Index |
Thread Index |
Old Index