Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 May 2010 00:40:45 +0530
From:      Shrikanth Kamath <shrikanth07@gmail.com>
To:        freebsd-hackers@freebsd.org
Subject:   DTrace and CTF data
Message-ID:  <AANLkTinuvZ_8onIF1O1Z42TiItqFDDUmng8PtWCnZQmm@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
I have a query about the FBT provider in DTrace, does FBT provider not need
the CTF info for the /kernel binary...

I have this observation, when I disassemble say a 'kernel_funtion' , I see
the function is not instrumented...

(kgdb) disassemble kernel_function
Dump of assembler code for function kernel_function:
0xc04aa05d <kernel_function+0>: push   %ebp
0xc04aa05e <kernel_function+1>: mov    %esp,%ebp
0xc04aa060 <kernel_function+3>: sub    $0x2c,%esp


Now after I did a 'fbt::kernel_function:entry', if I disassemble the
'kernel_function'...

(kgdb) disassemble kernel_function
Dump of assembler code for function kernel_function:
0xc04aa05d <kernel_function+0>: lock mov %esp,%ebp                 <== FBT
instrumentation
0xc04aa060 <kernel_function+3>: sub    $0x2c,%esp

If I do a 'objdump' on the kernel.debug binary I do not see any CTF sections
showing up?


--
Shrikanth R K



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTinuvZ_8onIF1O1Z42TiItqFDDUmng8PtWCnZQmm>