Commit | Line | Data |
---|---|---|
920dae64 AT |
1 | Usage: trconv [flags] [input-file] |
2 | ||
3 | (Version 1.5) Prints and converts various trace formats. | |
4 | ||
5 | Format flags: | |
6 | -from FX = assume input data is in format FX | |
7 | -to FX = generate output format FX | |
8 | where FX is one of the following: | |
9 | shade5 = Shade5 format | |
10 | shade6x32 = Shade6 format, using 32 bit addresses | |
11 | shade6x64 = Shade6 format, using 64 bit addresses | |
12 | rabin = Rabin's infamous format | |
13 | rst = (RQ's) really simple trace format (Default -from) | |
14 | null = (only for "-to FX"), do not convert (Default -to) | |
15 | Selection flags: | |
16 | -n N = stop after processing N records | |
17 | -n Ni = stop after processing N instructions | |
18 | -s N = skip the first N records | |
19 | -s Ni = skip the first N instructions | |
20 | -pc=pc1[,pc2] = only process instructions w/ pc=pc1 (or [pc1,pc2]) | |
21 | -ea=ea1[,ea2] = only process instructions w/ ea=ea1 (or [ea1,ea2]) | |
22 | -cpu=cpu1[,cpu2,...] = only process records from selected cpu's | |
23 | Example: -cpu=m,n-q,p selects records from | |
24 | cpu's m, p, and all cpu's from n through q | |
25 | Printing flags: | |
26 | -a = print in trace record field format | |
27 | -d = print in instruction disassembly format (Default) | |
28 | -x = print verbose output format | |
29 | -nid = suppress trace index in output | |
30 | -c = only count records from the trace file | |
31 | -pa = print both VA and PA of effective address | |
32 | -sym [file] = read and use symbols from 'file' | |
33 | -vt = print registers in value trace format | |
34 | Verification flags: | |
35 | -nv = do not verify pc values in trace file | |
36 | -e = only check for ihash errors | |
37 | -fast = turn off all verification and patching options | |
38 | RST flags: | |
39 | -i = only process RST instruction records | |
40 | -ic = like -i, but counts only instructions | |
41 | -ni = do not process any RST instruction records | |
42 | -nic = like -ni, but counts only non-instructions | |
43 | -rstdump || -r = macro for: -from rst -to null -d (Default) | |
44 | -nobranch = do not verify branch ea's against disassembly | |
45 | -nopc_pavadiff = do not verify rstf_pavadiffT.pc_pa_va field | |
46 | -noea_pavadiff = do not verify rstf_pavadiffT.ea_pa_va field | |
47 | -pstate_am 0|1 = set initial PSTATE.AM bit to 0 or 1 (Default: 0) | |
48 | Patching flags: | |
49 | -patchcleanrst = clean up "dirty" ea value to be RSTF_NOADDR in RST trace | |
50 | -patchihash = forces ihash value generation | |
51 | Output flags: | |
52 | -stdout = output to standard out (Default) | |
53 | -o File = output to File | |
54 | Miscellaneous: | |
55 | -help || -h = print this message and exit | |
56 | -version || -v = print version and exit | |
57 | ||
58 | Default flags are: -from rst -to null -d -stdout. | |
59 | (By default Spix5 ihash values are assumed for all trace formats | |
60 | *including* Shade6 traces...) | |
61 | ||
62 | Examples: | |
63 | % trconv < rstfile | |
64 | (print disassembled RST trace instructions) | |
65 | ||
66 | % trconv -from rst [-to null] -s 1000i -patchihash rstfile | |
67 | (print trace records, skip first 1000 instructions) | |
68 | ||
69 | % trconv -r -pc=0x12345678,0x22222222 rstfile | |
70 | (print disassembled RST trace instructions with pc values within | |
71 | [0x12345678 0x22222222]) | |
72 |