Revision 9a85d394 docs/tracing.txt
b/docs/tracing.txt | ||
---|---|---|
72 | 72 |
* For everything else, use primitive scalar types (char, int, long) with the |
73 | 73 |
appropriate signedness. |
74 | 74 |
|
75 |
Format strings should reflect the types defined in the trace event. Take |
|
76 |
special care to use PRId64 and PRIu64 for int64_t and uint64_t types, |
|
77 |
respectively. This ensures portability between 32- and 64-bit platforms. |
|
78 |
|
|
75 | 79 |
=== Hints for adding new trace events === |
76 | 80 |
|
77 | 81 |
1. Trace state changes in the code. Interesting points in the code usually |
Also available in: Unified diff