Heads-up: new MDB ::print, the end of (forward declaration)
Date: Thu, 23 Apr 2009 15:43:00 -0700
From: Jonathan Adams <jonathan.adams at sun dot com>
To: onnv-gate at onnv dot eng dot sun dot com, on-all at eng dot sun dot com,
Subject: Heads-up: new MDB ::print, the end of (forward declaration)
Hi all,
With my recent putback of:
4916519 can't ::print forward-decl typedef
5006620 ::print's enum printing should support power-of-two-flags enums
6824044 mdb ::print output could be more regular
The long-reviled:
> ::print spa_t
(forward declaration)
>
has been fixed:
> ::print spa_t
{
spa_name
...
}
>
I've also added a '-T' option to ::print, which prints
the "base" type of structure members. For example:
> ::print -aT proc_t
0 proc_t <<struct proc>> {
0 struct vnode *p_exec
...
34 pid_t <<int>> p_ppid
...
d0 clock_t <<long>> p_utime
...
a88 timeout_id_t <<void *>> p_alarmid
...
c08 rctl_qty_t <<unsigned long long>> p_crypto_mem
c10 clock_t <<long>> p_ttime
}
>
Enjoy!
Cheers,
- jonathan
on 2009/11/20 23:48