Hi,
How I do check how many times a user defined function is called, by using
dtrace. I did from the command line by passing library and system call as
arguments to dtrace:
$ dtrace -n PID:libc:malloc
for example, I defined a function called fun1() and I 'd like to
debug fun1(
Hi Aubrey,
Aubrey Li wrote:
> On 8/3/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>> Hi Aubrey,
>> Aubrey Li wrote:
>>
>>
> Here, global_structure is defined in the kernel head file, and this
> file depends on another bunch of head files, How could access it in a
> standalone program?
On 08/03/07 07:49, Aubrey Li wrote:
On 8/3/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Once you have the address (from the driver cmn_err() call), you could
just open /dev/kmem, lseek to the address, and print the contents of the
structure, something like:
fd = open("/dev/kmem", O_RD