Capture kernel stack if a function is called from a specific function
Hi all,
I've tried hunting for examples of this to no avail. I've also purchased the Solaris Performance and Tools book but havn't found what I want there either :(
What i'm after is a specific way of obtaining a kernel stack (possible args, but stack would do fine to start with as I'm sure (hope) I could work out what args I want to capture if needed), if and only if, it was called by a certain other function. My kernel module can call other routines, not necessarily in the same module, it maybe in genunix module.
i.e. one example, say my module sometimes calls timeout(9f) from it's routine called internal_timeout. What I want to use dtrace to do, is capture the stack in timeout, if and only if it was called from my modules routine internal_timeout...
the reason for this is because i'm sure timeout (and others) is probably a very popular routine, so I want to limit the output.
hopefull you get my drift.
any help would be muchly appreciated,
thanks in advance, regards, Raminski.

