1 Star2 Stars3 Stars4 Stars5 Stars (还没有评分)
Loading...

DTrace tricks and tips (9) –获得一个probe的参数属性

如果想知道一个probe参数的具体信息,可以使用“-v”参数获取。如下例所示:

bash-3.2# dtrace -lvn fbt::recv:entry
   ID   PROVIDER            MODULE                          FUNCTION NAME
26179        fbt            sockfs                              recv entry

        Probe Description Attributes
                Identifier Names: Private
                Data Semantics:   Private
                Dependency Class: Unknown

        Argument Attributes
                Identifier Names: Private
                Data Semantics:   Private
                Dependency Class: ISA

        Argument Types
                args[0]: int
                args[1]: void *
                args[2]: size_t
                args[3]: int

可以看到列举出了“recv”这个probe参数的属性和类型。

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.