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 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.

christos


Home | Main Index | Thread Index | Old Index