PTrace Reference Manual

PTrace Commands
PTrace Reference Manual526393-001
3-12
FROM Command
Examples: FIND Command
The following example shows how you would find the number of missed records and
the display produced by PTrace:
?FIND BOTH "MISS"
07/31/95 14:11:49.578340 >009.225661 #1816 Frames Missed
Number of frames missed: 1
07/31/95 14:11:49.578340 >000.000000 #1817 L4 Pool
000: 0004 2020 2020 2020 2020 000C 0000 001E..
008: 1EAC 0026 .,.&
0: 000004 020040 020040 020040 020040 000014 000000 000036..
%10: 017254 000046 .,.&
0: NULEOT SP SP SP SP SP SP SP SP NULFF NULNUL NULRS
8: RS ... NUL &
FROM Command
The FROM command opens a trace file for display by PTrace. If a trace file is currently
in use, PTrace closes it before opening the new one.
file-name
is a trace file.
Considerations: FROM Command
When the FROM command is used, PTrace automatically invokes the
STATETABLES command. The subsystem associated with the trace file specified
in the FROM command determines which state-machine file name is used by the
STATETABLES command. The state-machine file name that PTrace looks for is
$SYSTEM.SYSnn.ZxxxSMT where xxx is the subsystem name abbreviation
listed in the SPI Programming Manual. If this file cannot be accessed, no error
message is issued.
?F B "File" Finds the first instance of any string consisting of the
uppercase or lowercase letters f, i, l, e.
?FIND Finds the next instance of the string specified in the
previous FIND command.
?F B "miss" 100,300 Finds the first instance of any string consisting of the
uppercase or lowercase letters “m, i, s, s” (in that
order) within records 100 through 300.
?FIND A “test” 1/230 Finds all instances of the string “test” within records 1
through 230.
FROM file-name