| 64 | static const char *synopsis = "Dump given trace(s) to standard output."; |
| 65 | |
| 66 | static void |
| 67 | usage(void) |
| 68 | { |
| 69 | std::cout |
| 70 | << "usage: apitrace dump [OPTIONS] TRACE_FILE...\n" |
| 71 | << synopsis << "\n" |
| 72 | "\n" |
| 73 | " -h, --help show this help message and exit\n" |
| 74 | " -v, --verbose verbose output\n" |
| 75 | " --calls=CALLSET only dump specified calls\n" |
| 76 | " --color[=WHEN]\n" |
| 77 | " --colour[=WHEN] colored syntax highlighting\n" |
| 78 | " WHEN is 'auto', 'always', or 'never'\n" |
| 79 | " --grep[=REGEX] dump only calls whose function names match regex\n" |
| 80 | " --thread-ids=[=BOOL] dump thread ids [default: no]\n" |
| 81 | " --call-nos[=BOOL] dump call numbers[default: yes]\n" |
| 82 | " --arg-names[=BOOL] dump argument names [default: yes]\n" |
| 83 | " --blobs dump blobs into files\n" |
| 84 | " --multiline[=BOOL] dump newline in strings literally [default: yes]\n" |
| 85 | "\n" |
| 86 | ; |
| 87 | } |
| 88 | |
| 89 | enum { |
| 90 | CALLS_OPT = CHAR_MAX + 1, |