fbt Provider

compared with
Current by Brian_Leonard
on Oct 22, 2009 14:08.

Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (3)

View page history
[Top|#top]
h3. {anchor:CHP-FBT-8} {{entry}} probes
The arguments to {{entry}} probes are the same as the arguments to the corresponding operating system kernel function. These arguments may be accessed in a typed fashion by using the {{args\[\]}} array. These arguments may be accessed as {{int64_t}}'s by using the {{arg0}} .. {{arg}}_n_ variables.

[Top|#top]
h3. {anchor:CHP-FBT-9} {{return}} probes
While a given function only has a single point of entry, it may have many different points where it returns to its caller. You are usually interested in either the value that a function returned or the fact that the function returned at all rather than the specific return path taken. FBT therefore collects a function's multiple return sites into a single {{return}} probe. If the exact return path is of interest, you can examine the {{return}} probe {{args\[0\]}} value, which indicates the _offset_ (in bytes) of the returning instruction in the function text.\\
\\If the function has a return value, the return value is stored in {{args\[1\]}}. If a function does not have a return value, {{args\[1\]}} is not defined.

[Top|#top]

The individuals who post here are part of the extended Sun Microsystems community and they might not be employed or in any way formally affiliated with Sun Microsystems. The opinions expressed here are their own, are not necessarily reviewed in advance by anyone but the individual authors, and neither Sun nor any other party necessarily agrees with them.

Copyright 1994-2009 Sun Microsystems, Inc.
Powered by Atlassian Confluence
Sun Guidelines on Public Discourse Privacy Policy Terms of Use Trademarks Site Map Employment Investor Relations Contact