|
|||||
2. Types, Operators, and Expressions 8. Type and Constant Definitions 34. Statically Defined Tracing for User Applications |
ArgumentsThe arguments to profile probes are as follows:
As the descriptions imply, if arg0 is non-zero then arg1 is zero; if arg0 is zero then arg1 is non-zero. Thus, you can use arg0 and arg1 to differentiate user-level from kernel level, as in this simple example: profile-1ms { @ticks[arg0 ? "kernel" : "user"] = count(); } |
||||
|