[mdb-discuss] MDB Module API revision

2009-03-09 Thread Eric Schrock
On Mon, Mar 09, 2009 at 01:11:27PM -0700, Eric Schrock wrote: > What did you decide to do about walk variables? For example: > > ::walk foo f | .. > > In this case, is 'f' the name of the variable where I want to store the > walk result, or is it an argument

[mdb-discuss] MDB Module API revision

2009-03-09 Thread Eric Schrock
What did you decide to do about walk variables? For example: ::walk foo f | .. In this case, is 'f' the name of the variable where I want to store the walk result, or is it an argument to "::walk foo"? Is there a way to force it to be one or the other? - E

[mdb-discuss] noticed MDB grants expiring

2009-03-04 Thread Eric Schrock
> Michelle Olson > > OGB Secretary > > MDB community, > > Please vote on renew existing CC list. If there are new people > who wish to be added please propose. +1 from me. - Eric -- Eric Schrock, Fishworkshttp://blogs.sun.com/eschrock

[mdb-discuss] Missing symbols in bufctl?

2008-07-17 Thread Eric Schrock
> Thanks > -- scott > http://blogs.sun.com/sdaven > ___ > mdb-discuss mailing list > mdb-discuss at opensolaris.org -- Eric Schrock, Fishworkshttp://blogs.sun.com/eschrock

[mdb-discuss] Project Proposal: Scripting Languages for MDB

2008-02-24 Thread Eric Schrock
ly accessed from the > scripting language. > > This project will allow to write new MDB commands using scripting > languages > instead of having to write and compile a C module. Thus this will greatly > reduce the time to write new MDB commands. > >

[mdb-discuss] mdb findleaks reports zero stack?

2007-10-23 Thread Eric Schrock
caller or stack output? > > Peter > _______ > mdb-discuss mailing list > mdb-discuss at opensolaris.org -- Eric Schrock, Solaris Kernel Development http://blogs.sun.com/eschrock

[mdb-discuss] using kernel CTF with raw disk

2007-09-23 Thread Eric Schrock
F data available to print structures. It was sitting on disk, but there was no way to tell MDB to load it. There are definitely some powerful things you are doing that will be useful to developers. The mdb fanatics among us are definitely hoping you'll continue your work. - Eric -- Eric Schrock, Solaris Kernel Development http://blogs.sun.com/eschrock

[mdb-discuss] using kernel CTF with raw disk

2007-09-22 Thread Eric Schrock
u should have if you are building ON sources. If you're building from the Mercurial sources I'm not sure how it works since I'm still using teamware. You may want to ask tools-discuss if it isn't obvious. - Eric -- Eric Schrock, Solaris Kernel Development http://blogs.sun.com/eschrock

[mdb-discuss] using kernel CTF with raw disk

2007-09-17 Thread Eric Schrock
to work would be quite a challenge (but extremely cool). Anyway, what you have now is sounds interesting, it'd be cool to see a webrev of what you have so far. - Eric -- Eric Schrock, Solaris Kernel Development http://blogs.sun.com/eschrock

[mdb-discuss] using kernel CTF with raw disk

2007-09-17 Thread Eric Schrock
any case, thanks for at least prototyping this. > > -Mike > > -- > Mike Shapiro, Solaris Kernel Development. blogs.sun.com/mws/ > ___ > mdb-discuss mailing list > mdb-discuss at opensolaris.org -- Eric Schrock, Solaris Kernel Development http://blogs.sun.com/eschrock

[mdb-discuss] how to dump a array and find which slots are non zero?

2007-08-25 Thread Eric Schrock
ased on this. For the '/' operator, you can find this check in print_arglist(): if (DCMD_HDRSPEC(flags) && (flags & DCMD_PIPE_OUT) == 0) { Are you just curious, or are you trying to solve a particular problem? As Jonathan mentioned, there are more efficient ways to a

[mdb-discuss] how to dump a array and find which slots are non zero?

2007-08-24 Thread Eric Schrock
ression, and > it contains the address of the first entry in array, so I would expect > it will break the pineline, but instead, it works fine. I am somehow > puzzled about this. Could you give me some hint on this? > Another question is why the output of /Kn and ::eval Basically I think the output should be the same as they each takes an > address and dump the content one line a time. > > Thanks again, > Zhijun > > > > > ___ > mdb-discuss mailing list > mdb-discuss at opensolaris.org -- Eric Schrock, Solaris Kernel Development http://blogs.sun.com/eschrock

[mdb-discuss] how to dump a array and find which slots are non zero?

2007-08-23 Thread Eric Schrock
uot;struct vnode *" 0t2048 p |/Kn |::grep . != 0x1234 > sh: =: not found > > Best, > Zhijun Yes, that is correct, I misquoted the behavior originally. Everything after the '!' is passed verbatim to the shell. For the gory details, see usr/src/cmd/mdb/common/mdb/mdb_

[mdb-discuss] how to dump a array and find which slots are non zero?

2007-08-23 Thread Eric Schrock
!' character is a metacharacter that opens a pipe to an external shell command, so if you don't include the quotes it will try to spawn the program '0x1234' and pipe the output to it. - Eric -- Eric Schrock, Solaris Kernel Development http://blogs.sun.com/eschrock

[mdb-discuss] Question about mdb/::findleaks and mmap(2) leaks

2007-02-08 Thread Eric Schrock
gt; true leaks. But I could no longer find the weblog or document > I read. > > Is this something we should be concerned with ? If so, how do > we go about root-causing it ? > > Thanks, > Michen > > ___ > mdb-discuss mailing list > mdb-discuss at opensolaris.org -- Eric Schrock, Solaris Kernel Development http://blogs.sun.com/eschrock

[mdb-discuss] build 38: mdb disassembler broken / segfaults

2006-04-10 Thread Eric Schrock
+ 266 > 08075449 main (2, 80470f0, 80470fc) + f29 > 0805ae0e (2, 804727c, 8047280, 0, 804728a, 804729c) > > > This message posted from opensolaris.org > ___ > mdb-discuss mailing list > mdb-discuss at opensolaris.org -- Eric Schrock, Solaris Kernel Development http://blogs.sun.com/eschrock

[mdb-discuss] Help-I can't add debug symbol into my .o using ctfconvert.

2006-03-30 Thread Eric Schrock
ng dummy.o This works for me using /usr/sfw/bin/gcc on my system, which is "gcc (GCC) 3.4.3 (csl-sol210-3_4-20050802)". ctfconvert groks DWARF debugging information, so most likely you need to coax your version of GCC into generating DWARF with: # gcc -D_KERNEL -c -gdwar

[mdb-discuss] setting breakpoint without an address in mdb -K

2006-01-11 Thread Eric Schrock
ng). If you use the mdb dcmd version (::bp), it will rightly complain that no address was given: $ mdb > 5=K 5 > ::bp Usage: [address]::bp [+/-dDestT] [-c cmd] [-n count] sym ... mdb: try '::help bp' for more information > 5::bp > Hope that helps. - Eric -- Eric Schrock, Solaris Kernel Development http://blogs.sun.com/eschrock

[mdb-discuss] first mdb question (cp hung on zfs)

2005-11-27 Thread Eric Schrock
_t v_path > v_path = 0x85195cf8 "/export/share/tc/C/pipe/pipe.file" Yes, for this particular case you may have been OK with just truss (to get the file descriptor being read from) and pfiles (which displays the path information). But MDB is a handy tool to have around ;-) - Eric -- Eric Schrock, Solaris Kernel Development http://blogs.sun.com/eschrock

[mdb-discuss] first mdb question (cp hung on zfs)

2005-11-27 Thread Eric Schrock
t kthread_t contains at t_pcb[1] the pointer to that > thread's stack. You may want to take advantage of the more stable (and semantically significant) '::walk thread', which takes an optional proc_t parameter: > 0t711::pid2proc | ::walk thread | ::findstack -v - Eric --

[mdb-discuss] Why some dcmds are not working?

2005-10-21 Thread Eric Schrock
x27;: unknown dcmd name ::kmem_verify is a kernel dcmd. For userland, you want '::umem_verify'. For a list a commands provided by libumem, try '::dmods -l libumem'. Jonathan or someone other than me can probably explain how libumem's oversize (mmap) leak detection works.

[mdb-discuss] Re: mdb examples?

2005-10-06 Thread Eric Schrock
ks > > > Adam > > -- > Adam Leventhal, Solaris Kernel Development http://blogs.sun.com/ahl > ___ > mdb-discuss mailing list > mdb-discuss at opensolaris.org -- Eric Schrock, Solaris Kernel Development http://blogs.sun.com/eschrock

[mdb-discuss] :e does not step over dlopen?

2005-09-16 Thread Eric Schrock
kup+0x120(147b4, 2b1b8, 0, ffbff798, 0, 26400) > fmdump_nvl2str+0x54(2b148, 13, 0, ffbff804, 130, 14400) > flt_verb1+0xcc(268b0, ffbff878, 26548, 14400, 0, 0) > libfmd_log.so.1`fmd_log_xiter+0x1a0(268b0, 29bf8, 1, 0, 12f88, 11970) > main+0x7f4(0, 13d34, 268b0, 0, 1, ffbff910) > _start+0x108(0, 0, 0, 0, 0, 0) > > Gavin > ___ > mdb-discuss mailing list > mdb-discuss at opensolaris.org -- Eric Schrock, Solaris Kernel Development http://blogs.sun.com/eschrock

[mdb-discuss] act_thread dcmd?

2005-08-18 Thread Eric Schrock
option to always push arguments to the stack a la 32-bit x86, as well as the associated MDB changes to grab this information. This will be available soon. We're also working on a programmatic method of disassembling the text and deriving the original arguments. In the meantime, you'

[mdb-discuss] display current environment using ::getenv on a core file

2005-07-07 Thread Eric Schrock
a doc bug. > I'll also log an rfe for a more descriptive help message > on ::getenv. The help message would be a useful addition, and a nice oss-bite-size RFE. - Eric -- Eric Schrock, Solaris Kernel Development.

[mdb-discuss] extract from an application core file: the file descriptors in use

2005-06-14 Thread Eric Schrock
laris.org > _______ > mdb-discuss mailing list > mdb-discuss at opensolaris.org -- Eric Schrock, Solaris Kernel Development.