Hi list,>From the fbt driver, it''s easy to understand the fbt probes arecreated after fbt module is loaded, fbt_provide_module will be called when a module is loaded and create the fbt probes for all the functions. But how are the fbt probes created for the modules which are loaded before fbt module is loaded? There must be some magic I missed. Could you please shed some light on me? Thanks, -Aubrey
On Oct 23, 2008, at 7:22 AM, Aubrey Li wrote:> But how are the fbt probes created for the modules which are loaded > before fbt > module is loaded?It happens in the call to dtrace_open() which calls dtrace_probe_provide(). This iterates over all providers and calls its dtps_provide_module callback for every module. Adam -- Adam Leventhal, Fishworks http://blogs.sun.com/ahl
On Thu, Oct 23, 2008 at 10:39 PM, Adam Leventhal <ahl at eng.sun.com> wrote:> On Oct 23, 2008, at 7:22 AM, Aubrey Li wrote: >> >> But how are the fbt probes created for the modules which are loaded >> before fbt >> module is loaded? > > It happens in the call to dtrace_open() which calls dtrace_probe_provide(). > This iterates over all providers and calls its dtps_provide_module callback > for every module. >Thanks, that exactly answered my question. Regards, -Aubrey