当编写探测并使用 dtrace 命令生成头文件时,以一种非常简单的风格支持后一个解决方案。
bracketing. The latter solution is supported in a very simple fashion when you write the probes and generate a header file using the dtrace command.
上面的命令指定输出文件名 (-o)、希望生成头文件 (-h) 以及源探测定义文件名 (-s)。
The above command specifies the name of the output file (-o), to generate a header (-h) and the name of the source probe definitions file (-s).
默认的选项是在头文件和实体文件中都为内联函数生成代码。
The default option generates code for the inline function in both the header and body files.
应用推荐