|
|
DataMuseum.dkPresents historical artifacts from the history of: RC9000 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about RC9000 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - downloadIndex: m
Length: 4565 (0x11d5)
Names: »monitor.3«
└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
└─⟦bbf173f5c⟧ »0004«
└─⟦this⟧ »./usr/man/cat3/monitor.3«
0x0000…0020 0a 0a 0a 5f 08 4f 5f 08 6e 5f 08 6c 5f 08 69 5f 08 6e 5f 08 65 20 5f 08 4d 5f 08 61 5f 08 6e 5f ┆ _ O_ n_ l_ i_ n_ e _ M_ a_ n_┆ 0x0020…0040 08 75 5f 08 61 5f 08 6c 20 20 20 20 20 20 20 20 20 20 20 4c 69 62 72 61 72 79 20 46 75 6e 63 74 ┆ u_ a_ l Library Funct┆ 0x0040…0060 69 6f 6e 73 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 6f 6e 69 74 6f 72 28 33 29 0a 0a 0a 0a ┆ions monitor(3) ┆ 0x0060…0080 4e 08 4e 08 4e 08 4e 41 08 41 08 41 08 41 4d 08 4d 08 4d 08 4d 45 08 45 08 45 08 45 0a 20 20 20 ┆N N N NA A A AM M M ME E E E ┆ 0x0080…00a0 20 20 6d 6f 6e 69 74 6f 72 2c 20 6d 6f 6e 73 74 61 72 74 75 70 2c 20 6d 6f 6e 63 6f 6e 74 72 6f ┆ monitor, monstartup, moncontro┆ 0x00a0…00c0 6c 20 2d 20 70 72 65 70 61 72 65 20 65 78 65 63 75 74 69 6f 6e 20 70 72 6f 66 69 6c 65 0a 0a 53 ┆l - prepare execution profile S┆ 0x00c0…00e0 08 53 08 53 08 53 59 08 59 08 59 08 59 4e 08 4e 08 4e 08 4e 54 08 54 08 54 08 54 41 08 41 08 41 ┆ S S SY Y Y YN N N NT T T TA A A┆ 0x00e0…0100 08 41 58 08 58 08 58 08 58 0a 20 20 20 20 20 6d 08 6d 08 6d 08 6d 6f 08 6f 08 6f 08 6f 6e 08 6e ┆ AX X X X m m m mo o o on n┆ 0x0100…0120 08 6e 08 6e 69 08 69 08 69 08 69 74 08 74 08 74 08 74 6f 08 6f 08 6f 08 6f 72 08 72 08 72 08 72 ┆ n ni i i it t t to o o or r r r┆ 0x0120…0140 28 08 28 08 28 08 28 6c 08 6c 08 6c 08 6c 6f 08 6f 08 6f 08 6f 77 08 77 08 77 08 77 70 08 70 08 ┆( ( ( (l l l lo o o ow w w wp p ┆ 0x0140…0160 70 08 70 63 08 63 08 63 08 63 2c 08 2c 08 2c 08 2c 20 68 08 68 08 68 08 68 69 08 69 08 69 08 69 ┆p pc c c c, , , , h h h hi i i i┆ 0x0160…0180 67 08 67 08 67 08 67 68 08 68 08 68 08 68 70 08 70 08 70 08 70 63 08 63 08 63 08 63 2c 08 2c 08 ┆g g g gh h h hp p p pc c c c, , ┆ 0x0180…01a0 2c 08 2c 20 62 08 62 08 62 08 62 75 08 75 08 75 08 75 66 08 66 08 66 08 66 66 08 66 08 66 08 66 ┆, , b b b bu u u uf f f ff f f f┆ 0x01a0…01c0 65 08 65 08 65 08 65 72 08 72 08 72 08 72 2c 08 2c 08 2c 08 2c 20 62 08 62 08 62 08 62 75 08 75 ┆e e e er r r r, , , , b b b bu u┆ 0x01c0…01e0 08 75 08 75 66 08 66 08 66 08 66 73 08 73 08 73 08 73 69 08 69 08 69 08 69 7a 08 7a 08 7a 08 7a ┆ u uf f f fs s s si i i iz z z z┆ 0x01e0…0200 65 08 65 08 65 08 65 2c 08 2c 08 2c 08 2c 20 6e 08 6e 08 6e 08 6e 66 08 66 08 66 08 66 75 08 75 ┆e e e e, , , , n n n nf f f fu u┆ 0x0200…0220 08 75 08 75 6e 08 6e 08 6e 08 6e 63 08 63 08 63 08 63 29 08 29 08 29 08 29 0a 20 20 20 20 20 69 ┆ u un n n nc c c c) ) ) ) i┆ 0x0220…0240 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 74 08 74 08 74 08 74 20 28 08 28 08 28 08 28 2a 08 2a 08 ┆ i i in n n nt t t t ( ( ( (* * ┆ 0x0240…0260 2a 08 2a 6c 08 6c 08 6c 08 6c 6f 08 6f 08 6f 08 6f 77 08 77 08 77 08 77 70 08 70 08 70 08 70 63 ┆* *l l l lo o o ow w w wp p p pc┆ 0x0260…0280 08 63 08 63 08 63 29 08 29 08 29 08 29 28 08 28 08 28 08 28 29 08 29 08 29 08 29 2c 08 2c 08 2c ┆ c c c) ) ) )( ( ( () ) ) ), , ,┆ 0x0280…02a0 08 2c 20 28 08 28 08 28 08 28 2a 08 2a 08 2a 08 2a 68 08 68 08 68 08 68 69 08 69 08 69 08 69 67 ┆ , ( ( ( (* * * *h h h hi i i ig┆ 0x02a0…02c0 08 67 08 67 08 67 68 08 68 08 68 08 68 70 08 70 08 70 08 70 63 08 63 08 63 08 63 29 08 29 08 29 ┆ g g gh h h hp p p pc c c c) ) )┆ 0x02c0…02e0 08 29 28 08 28 08 28 08 28 29 08 29 08 29 08 29 3b 08 3b 08 3b 08 3b 0a 20 20 20 20 20 73 08 73 ┆ )( ( ( () ) ) ); ; ; ; s s┆ 0x02e0…0300 08 73 08 73 68 08 68 08 68 08 68 6f 08 6f 08 6f 08 6f 72 08 72 08 72 08 72 74 08 74 08 74 08 74 ┆ s sh h h ho o o or r r rt t t t┆ 0x0300…0320 20 62 08 62 08 62 08 62 75 08 75 08 75 08 75 66 08 66 08 66 08 66 66 08 66 08 66 08 66 65 08 65 ┆ b b b bu u u uf f f ff f f fe e┆ 0x0320…0340 08 65 08 65 72 08 72 08 72 08 72 5b 08 5b 08 5b 08 5b 5d 08 5d 08 5d 08 5d 3b 08 3b 08 3b 08 3b ┆ e er r r r[ [ [ [] ] ] ]; ; ; ;┆ 0x0340…0360 0a 0a 20 20 20 20 20 6d 08 6d 08 6d 08 6d 6f 08 6f 08 6f 08 6f 6e 08 6e 08 6e 08 6e 73 08 73 08 ┆ m m m mo o o on n n ns s ┆ 0x0360…0380 73 08 73 74 08 74 08 74 08 74 61 08 61 08 61 08 61 72 08 72 08 72 08 72 74 08 74 08 74 08 74 75 ┆s st t t ta a a ar r r rt t t tu┆ 0x0380…03a0 08 75 08 75 08 75 70 08 70 08 70 08 70 28 08 28 08 28 08 28 6c 08 6c 08 6c 08 6c 6f 08 6f 08 6f ┆ u u up p p p( ( ( (l l l lo o o┆ 0x03a0…03c0 08 6f 77 08 77 08 77 08 77 70 08 70 08 70 08 70 63 08 63 08 63 08 63 2c 08 2c 08 2c 08 2c 20 68 ┆ ow w w wp p p pc c c c, , , , h┆ 0x03c0…03e0 08 68 08 68 08 68 69 08 69 08 69 08 69 67 08 67 08 67 08 67 68 08 68 08 68 08 68 70 08 70 08 70 ┆ h h hi i i ig g g gh h h hp p p┆ 0x03e0…0400 08 70 63 08 63 08 63 08 63 29 08 29 08 29 08 29 0a 20 20 20 20 20 69 08 69 08 69 08 69 6e 08 6e ┆ pc c c c) ) ) ) i i i in n┆ 0x0400…0420 08 6e 08 6e 74 08 74 08 74 08 74 20 28 08 28 08 28 08 28 2a 08 2a 08 2a 08 2a 6c 08 6c 08 6c 08 ┆ n nt t t t ( ( ( (* * * *l l l ┆ 0x0420…0440 6c 6f 08 6f 08 6f 08 6f 77 08 77 08 77 08 77 70 08 70 08 70 08 70 63 08 63 08 63 08 63 29 08 29 ┆lo o o ow w w wp p p pc c c c) )┆ 0x0440…0460 08 29 08 29 28 08 28 08 28 08 28 29 08 29 08 29 08 29 2c 08 2c 08 2c 08 2c 20 28 08 28 08 28 08 ┆ ) )( ( ( () ) ) ), , , , ( ( ( ┆ 0x0460…0480 28 2a 08 2a 08 2a 08 2a 68 08 68 08 68 08 68 69 08 69 08 69 08 69 67 08 67 08 67 08 67 68 08 68 ┆(* * * *h h h hi i i ig g g gh h┆ 0x0480…04a0 08 68 08 68 70 08 70 08 70 08 70 63 08 63 08 63 08 63 29 08 29 08 29 08 29 28 08 28 08 28 08 28 ┆ h hp p p pc c c c) ) ) )( ( ( (┆ 0x04a0…04c0 29 08 29 08 29 08 29 3b 08 3b 08 3b 08 3b 0a 0a 20 20 20 20 20 6d 08 6d 08 6d 08 6d 6f 08 6f 08 ┆) ) ) ); ; ; ; m m m mo o ┆ 0x04c0…04e0 6f 08 6f 6e 08 6e 08 6e 08 6e 63 08 63 08 63 08 63 6f 08 6f 08 6f 08 6f 6e 08 6e 08 6e 08 6e 74 ┆o on n n nc c c co o o on n n nt┆ 0x04e0…0500 08 74 08 74 08 74 72 08 72 08 72 08 72 6f 08 6f 08 6f 08 6f 6c 08 6c 08 6c 08 6c 28 08 28 08 28 ┆ t t tr r r ro o o ol l l l( ( (┆ 0x0500…0520 08 28 6d 08 6d 08 6d 08 6d 6f 08 6f 08 6f 08 6f 64 08 64 08 64 08 64 65 08 65 08 65 08 65 29 08 ┆ (m m m mo o o od d d de e e e) ┆ 0x0520…0540 29 08 29 08 29 0a 0a 44 08 44 08 44 08 44 45 08 45 08 45 08 45 53 08 53 08 53 08 53 43 08 43 08 ┆) ) ) D D D DE E E ES S S SC C ┆ 0x0540…0560 43 08 43 52 08 52 08 52 08 52 49 08 49 08 49 08 49 50 08 50 08 50 08 50 54 08 54 08 54 08 54 49 ┆C CR R R RI I I IP P P PT T T TI┆ 0x0560…0580 08 49 08 49 08 49 4f 08 4f 08 4f 08 4f 4e 08 4e 08 4e 08 4e 0a 20 20 20 20 20 54 68 65 73 65 20 ┆ I I IO O O ON N N N These ┆ 0x0580…05a0 66 75 6e 63 74 69 6f 6e 73 20 75 73 65 20 74 68 65 20 5f 08 70 5f 08 72 5f 08 6f 5f 08 66 5f 08 ┆functions use the _ p_ r_ o_ f_ ┆ 0x05a0…05c0 69 5f 08 6c 20 73 79 73 74 65 6d 20 63 61 6c 6c 20 74 6f 20 63 6f 6e 74 72 6f 6c 0a 20 20 20 20 ┆i_ l system call to control ┆ 0x05c0…05e0 20 70 72 6f 67 72 61 6d 2d 63 6f 75 6e 74 65 72 20 73 61 6d 70 6c 69 6e 67 2e 20 20 55 73 69 6e ┆ program-counter sampling. Usin┆ 0x05e0…0600 67 20 74 68 65 20 6f 70 74 69 6f 6e 20 2d 08 2d 08 2d 08 2d 70 08 70 08 70 08 70 20 77 68 65 6e ┆g the option - - - -p p p p when┆ 0x0600…0620 20 63 6f 6d 70 69 6c 2d 0a 20 20 20 20 20 69 6e 67 20 6f 72 20 6c 69 6e 6b 69 6e 67 20 61 20 70 ┆ compil- ing or linking a p┆ 0x0620…0640 72 6f 67 72 61 6d 20 61 75 74 6f 6d 61 74 69 63 61 6c 6c 79 20 67 65 6e 65 72 61 74 65 73 20 63 ┆rogram automatically generates c┆ 0x0640…0660 61 6c 6c 73 20 74 6f 0a 20 20 20 20 20 74 68 65 73 65 20 66 75 6e 63 74 69 6f 6e 73 2e 20 20 59 ┆alls to these functions. Y┆ 0x0660…0680 6f 75 20 6e 65 65 64 20 6e 6f 74 20 63 61 6c 6c 20 74 68 65 6d 20 65 78 70 6c 69 63 69 74 6c 79 ┆ou need not call them explicitly┆ 0x0680…06a0 20 75 6e 6c 65 73 73 0a 20 20 20 20 20 79 6f 75 20 77 61 6e 74 20 66 69 6e 65 72 20 63 6f 6e 74 ┆ unless you want finer cont┆ 0x06a0…06c0 72 6f 6c 2e 0a 0a 20 20 20 20 20 54 79 70 69 63 61 6c 6c 79 2c 20 79 6f 75 20 77 6f 75 6c 64 20 ┆rol. Typically, you would ┆ 0x06c0…06e0 63 61 6c 6c 20 65 69 74 68 65 72 20 5f 08 6d 5f 08 6f 5f 08 6e 5f 08 69 5f 08 74 5f 08 6f 5f 08 ┆call either _ m_ o_ n_ i_ t_ o_ ┆ 0x06e0…0700 72 20 6f 72 20 5f 08 6d 5f 08 6f 5f 08 6e 5f 08 73 5f 08 74 5f 08 61 5f 08 72 5f 08 74 5f 08 75 ┆r or _ m_ o_ n_ s_ t_ a_ r_ t_ u┆ 0x0700…0720 5f 08 70 20 74 6f 0a 20 20 20 20 20 69 6e 69 74 69 61 6c 69 7a 65 20 70 63 2d 73 61 6d 70 6c 69 ┆_ p to initialize pc-sampli┆ 0x0720…0740 6e 67 20 61 6e 64 20 65 6e 61 62 6c 65 20 69 74 3b 20 63 61 6c 6c 20 5f 08 6d 5f 08 6f 5f 08 6e ┆ng and enable it; call _ m_ o_ n┆ 0x0740…0760 5f 08 63 5f 08 6f 5f 08 6e 5f 08 74 5f 08 72 5f 08 6f 5f 08 6c 20 74 6f 0a 20 20 20 20 20 64 69 ┆_ c_ o_ n_ t_ r_ o_ l to di┆ 0x0760…0780 73 61 62 6c 65 20 6f 72 20 72 65 65 6e 61 62 6c 65 20 69 74 3b 20 61 6e 64 20 63 61 6c 6c 20 5f ┆sable or reenable it; and call _┆ 0x0780…07a0 08 6d 5f 08 6f 5f 08 6e 5f 08 69 5f 08 74 5f 08 6f 5f 08 72 20 61 67 61 69 6e 20 61 74 20 74 68 ┆ m_ o_ n_ i_ t_ o_ r again at th┆ 0x07a0…07c0 65 20 65 6e 64 20 6f 66 0a 20 20 20 20 20 65 78 65 63 75 74 69 6f 6e 20 74 6f 20 64 69 73 61 62 ┆e end of execution to disab┆ 0x07c0…07e0 6c 65 20 73 61 6d 70 6c 69 6e 67 20 61 6e 64 20 72 65 63 6f 72 64 20 74 68 65 20 73 61 6d 70 6c ┆le sampling and record the sampl┆ 0x07e0…0800 65 73 20 69 6e 20 61 0a 20 20 20 20 20 66 69 6c 65 2e 0a 0a 20 20 20 20 20 59 6f 75 72 20 69 6e ┆es in a file. Your in┆ 0x0800…0820 69 74 69 61 6c 20 63 61 6c 6c 20 74 6f 20 5f 08 6d 5f 08 6f 5f 08 6e 5f 08 69 5f 08 74 5f 08 6f ┆itial call to _ m_ o_ n_ i_ t_ o┆ 0x0820…0840 5f 08 72 20 65 6e 61 62 6c 65 73 20 70 63 2d 73 61 6d 70 6c 69 6e 67 2e 20 20 5f 08 6c 5f 08 6f ┆_ r enables pc-sampling. _ l_ o┆ 0x0840…0860 5f 08 77 5f 08 70 5f 08 63 20 61 6e 64 0a 20 20 20 20 20 5f 08 68 5f 08 69 5f 08 67 5f 08 68 5f ┆_ w_ p_ c and _ h_ i_ g_ h_┆ 0x0860…0880 08 70 5f 08 63 20 73 70 65 63 69 66 79 20 74 68 65 20 72 61 6e 67 65 20 6f 66 20 61 64 64 72 65 ┆ p_ c specify the range of addre┆ 0x0880…08a0 73 73 65 73 20 74 6f 20 62 65 20 73 61 6d 70 6c 65 64 3b 20 74 68 65 0a 20 20 20 20 20 6c 6f 77 ┆sses to be sampled; the low┆ 0x08a0…08c0 65 73 74 20 61 64 64 72 65 73 73 20 69 73 20 74 68 61 74 20 6f 66 20 5f 08 6c 5f 08 6f 5f 08 77 ┆est address is that of _ l_ o_ w┆ 0x08c0…08e0 5f 08 70 5f 08 63 20 61 6e 64 20 74 68 65 20 68 69 67 68 65 73 74 20 69 73 20 6a 75 73 74 0a 20 ┆_ p_ c and the highest is just ┆ 0x08e0…0900 20 20 20 20 62 65 6c 6f 77 20 5f 08 68 5f 08 69 5f 08 67 5f 08 68 5f 08 70 5f 08 63 2e 20 20 5f ┆ below _ h_ i_ g_ h_ p_ c. _┆ 0x0900…0920 08 62 5f 08 75 5f 08 66 5f 08 66 5f 08 65 5f 08 72 20 69 73 20 74 68 65 20 61 64 64 72 65 73 73 ┆ b_ u_ f_ f_ e_ r is the address┆ 0x0920…0940 20 6f 66 20 61 20 28 75 73 65 72 20 61 6c 6c 6f 63 61 74 65 64 29 0a 20 20 20 20 20 61 72 72 61 ┆ of a (user allocated) arra┆ 0x0940…0960 79 20 6f 66 20 5f 08 62 5f 08 75 5f 08 66 5f 08 73 5f 08 69 5f 08 7a 5f 08 65 20 73 68 6f 72 74 ┆y of _ b_ u_ f_ s_ i_ z_ e short┆ 0x0960…0980 20 69 6e 74 65 67 65 72 73 2c 20 77 68 69 63 68 20 68 6f 6c 64 73 20 61 20 72 65 63 6f 72 64 20 ┆ integers, which holds a record ┆ 0x0980…09a0 6f 66 20 74 68 65 0a 20 20 20 20 20 73 61 6d 70 6c 65 73 3b 20 66 6f 72 20 62 65 73 74 20 72 65 ┆of the samples; for best re┆ 0x09a0…09c0 73 75 6c 74 73 2c 20 74 68 65 20 62 75 66 66 65 72 20 73 68 6f 75 6c 64 20 6e 6f 74 20 62 65 20 ┆sults, the buffer should not be ┆ 0x09c0…09e0 6c 65 73 73 0a 20 20 20 20 20 74 68 61 6e 20 61 20 66 65 77 20 74 69 6d 65 73 20 73 6d 61 6c 6c ┆less than a few times small┆ 0x09e0…0a00 65 72 20 74 68 61 6e 20 74 68 65 20 72 61 6e 67 65 20 6f 66 20 61 64 64 72 65 73 73 65 73 20 73 ┆er than the range of addresses s┆ 0x0a00…0a20 61 6d 2d 0a 20 20 20 20 20 70 6c 65 64 2e 20 20 5f 08 6e 5f 08 66 5f 08 75 5f 08 6e 5f 08 63 20 ┆am- pled. _ n_ f_ u_ n_ c ┆ 0x0a20…0a40 69 73 20 69 67 6e 6f 72 65 64 2e 0a 0a 20 20 20 20 20 54 68 65 20 65 6e 76 69 72 6f 6e 6d 65 6e ┆is ignored. The environmen┆ 0x0a40…0a60 74 20 76 61 72 69 61 62 6c 65 20 50 52 4f 46 44 49 52 20 64 65 74 65 72 6d 69 6e 65 73 20 74 68 ┆t variable PROFDIR determines th┆ 0x0a60…0a80 65 20 6e 61 6d 65 20 6f 66 20 74 68 65 0a 20 20 20 20 20 6f 75 74 70 75 74 20 66 69 6c 65 20 61 ┆e name of the output file a┆ 0x0a80…0aa0 6e 64 20 77 68 65 74 68 65 72 20 70 63 2d 73 61 6d 70 6c 69 6e 67 20 74 61 6b 65 73 20 70 6c 61 ┆nd whether pc-sampling takes pla┆ 0x0aa0…0ac0 63 65 3a 20 69 66 20 69 74 20 69 73 0a 20 20 20 20 20 6e 6f 74 20 73 65 74 2c 20 74 68 65 20 66 ┆ce: if it is not set, the f┆ 0x0ac0…0ae0 69 6c 65 20 69 73 20 6e 61 6d 65 64 20 6d 08 6d 08 6d 08 6d 6f 08 6f 08 6f 08 6f 6e 08 6e 08 6e ┆ile is named m m m mo o o on n n┆ 0x0ae0…0b00 08 6e 2e 08 2e 08 2e 08 2e 6f 08 6f 08 6f 08 6f 75 08 75 08 75 08 75 74 08 74 08 74 08 74 3b 20 ┆ n. . . .o o o ou u u ut t t t; ┆ 0x0b00…0b20 69 66 20 73 65 74 20 74 6f 20 74 68 65 20 65 6d 70 74 79 0a 20 20 20 20 20 73 74 72 69 6e 67 2c ┆if set to the empty string,┆ 0x0b20…0b40 20 6e 6f 20 70 63 2d 73 61 6d 70 6c 69 6e 67 20 6f 63 63 75 72 73 3b 20 69 66 20 73 65 74 20 74 ┆ no pc-sampling occurs; if set t┆ 0x0b40…0b60 6f 20 61 20 6e 6f 6e 2d 65 6d 70 74 79 20 73 74 72 69 6e 67 2c 0a 20 20 20 20 20 74 68 65 20 66 ┆o a non-empty string, the f┆ 0x0b60…0b80 69 6c 65 20 69 73 20 6e 61 6d 65 64 20 5f 08 73 5f 08 74 5f 08 72 5f 08 69 5f 08 6e 5f 08 67 2f ┆ile is named _ s_ t_ r_ i_ n_ g/┆ 0x0b80…0ba0 5f 08 70 5f 08 69 5f 08 64 2e 5f 08 70 5f 08 72 5f 08 6f 5f 08 67 5f 08 6e 5f 08 61 5f 08 6d 5f ┆_ p_ i_ d._ p_ r_ o_ g_ n_ a_ m_┆ 0x0ba0…0bc0 08 65 2c 20 77 68 65 72 65 20 5f 08 70 5f 08 69 5f 08 64 20 69 73 20 74 68 65 20 70 72 6f 2d 0a ┆ e, where _ p_ i_ d is the pro- ┆ 0x0bc0…0be0 20 20 20 20 20 63 65 73 73 20 69 64 20 6f 66 20 74 68 65 20 65 78 65 63 75 74 69 6e 67 20 70 72 ┆ cess id of the executing pr┆ 0x0be0…0c00 6f 67 72 61 6d 20 61 6e 64 20 5f 08 70 5f 08 72 5f 08 6f 5f 08 67 5f 08 6e 5f 08 61 5f 08 6d 5f ┆ogram and _ p_ r_ o_ g_ n_ a_ m_┆ 0x0c00…0c20 08 65 20 69 73 20 74 68 65 0a 20 20 20 20 20 70 72 6f 67 72 61 6d 27 73 20 6e 61 6d 65 20 61 73 ┆ e is the program's name as┆ 0x0c20…0c40 20 69 74 20 61 70 70 65 61 72 73 20 69 6e 20 5f 08 61 5f 08 72 5f 08 67 5f 08 76 5b 5f 08 30 5d ┆ it appears in _ a_ r_ g_ v[_ 0]┆ 0x0c40…0c60 2e 20 20 54 68 65 20 73 75 62 64 69 72 65 63 74 6f 72 79 0a 20 20 20 20 20 5f 08 73 5f 08 74 5f ┆. The subdirectory _ s_ t_┆ 0x0c60…0c80 08 72 5f 08 69 5f 08 6e 5f 08 67 20 6d 75 73 74 20 61 6c 72 65 61 64 79 20 65 78 69 73 74 2e 0a ┆ r_ i_ n_ g must already exist. ┆ 0x0c80…0ca0 0a 20 20 20 20 20 54 6f 20 70 72 6f 66 69 6c 65 20 74 68 65 20 65 6e 74 69 72 65 20 70 72 6f 67 ┆ To profile the entire prog┆ 0x0ca0…0cc0 72 61 6d 2c 20 75 73 65 3a 0a 0a 20 20 20 20 20 20 20 20 20 20 65 78 74 65 72 6e 20 65 70 72 6f ┆ram, use: extern epro┆ 0x0cc0…0ce0 6c 28 29 2c 20 65 74 65 78 74 28 29 3b 0a 20 20 20 20 20 20 20 20 20 20 6d 6f 6e 69 74 6f 72 28 ┆l(), etext(); monitor(┆ 0x0ce0…0d00 65 70 72 6f 6c 2c 20 65 74 65 78 74 2c 20 62 75 66 2c 20 62 75 66 73 69 7a 65 2c 20 30 29 3b 0a ┆eprol, etext, buf, bufsize, 0); ┆ 0x0d00…0d20 0a 20 20 20 20 20 5f 08 65 5f 08 70 5f 08 72 5f 08 6f 5f 08 6c 20 6c 69 65 73 20 6a 75 73 74 20 ┆ _ e_ p_ r_ o_ l lies just ┆ 0x0d20…0d40 62 65 6c 6f 77 20 74 68 65 20 75 73 65 72 20 70 72 6f 67 72 61 6d 20 74 65 78 74 2c 20 61 6e 64 ┆below the user program text, and┆ 0x0d40…0d60 20 5f 08 65 5f 08 74 5f 08 65 5f 08 78 5f 08 74 20 6c 69 65 73 0a 20 20 20 20 20 6a 75 73 74 20 ┆ _ e_ t_ e_ x_ t lies just ┆ 0x0d60…0d80 61 62 6f 76 65 20 69 74 2c 20 61 73 20 64 65 73 63 72 69 62 65 64 20 69 6e 20 5f 08 65 5f 08 6e ┆above it, as described in _ e_ n┆ 0x0d80…0da0 5f 08 64 28 33 29 2e 20 20 28 42 65 63 61 75 73 65 20 74 68 65 20 75 73 65 72 0a 20 20 20 20 20 ┆_ d(3). (Because the user ┆ 0x0da0…0dc0 70 72 6f 67 72 61 6d 20 64 6f 65 73 20 6e 6f 74 20 6e 65 63 65 73 73 61 72 69 6c 79 20 73 74 61 ┆program does not necessarily sta┆ 0x0dc0…0de0 72 74 20 61 74 20 61 20 6c 6f 77 20 6d 65 6d 6f 72 79 20 61 64 64 72 65 73 73 2c 0a 20 20 20 20 ┆rt at a low memory address, ┆ 0x0de0…0e00 20 75 73 69 6e 67 20 61 20 73 6d 61 6c 6c 20 6e 75 6d 62 65 72 20 69 6e 20 70 6c 61 63 65 20 6f ┆ using a small number in place o┆ 0x0e00…0e20 66 20 5f 08 65 5f 08 70 5f 08 72 5f 08 6f 5f 08 6c 20 69 73 20 64 61 6e 67 65 72 6f 75 73 29 2e ┆f _ e_ p_ r_ o_ l is dangerous).┆ 0x0e20…0e40 0a 0a 20 20 20 20 20 5f 08 6d 5f 08 6f 5f 08 6e 5f 08 73 5f 08 74 5f 08 61 5f 08 72 5f 08 74 5f ┆ _ m_ o_ n_ s_ t_ a_ r_ t_┆ 0x0e40…0e60 08 75 5f 08 70 20 69 73 20 61 6e 20 61 6c 74 65 72 6e 61 74 65 20 66 6f 72 6d 20 6f 66 20 5f 08 ┆ u_ p is an alternate form of _ ┆ 0x0e60…0e80 6d 5f 08 6f 5f 08 6e 5f 08 69 5f 08 74 5f 08 6f 5f 08 72 20 74 68 61 74 20 63 61 6c 6c 73 0a 20 ┆m_ o_ n_ i_ t_ o_ r that calls ┆ 0x0e80…0ea0 20 20 20 20 5f 08 73 5f 08 62 5f 08 72 5f 08 6b 28 32 29 20 66 6f 72 20 79 6f 75 20 74 6f 20 61 ┆ _ s_ b_ r_ k(2) for you to a┆ 0x0ea0…0ec0 6c 6c 6f 63 61 74 65 20 74 68 65 20 62 75 66 66 65 72 2e 0a 0a 20 20 20 20 20 5f 08 6d 5f 08 6f ┆llocate the buffer. _ m_ o┆ 0x0ec0…0ee0 5f 08 6e 5f 08 63 5f 08 6f 5f 08 6e 5f 08 74 5f 08 72 5f 08 6f 5f 08 6c 20 73 65 6c 65 63 74 69 ┆_ n_ c_ o_ n_ t_ r_ o_ l selecti┆ 0x0ee0…0f00 76 65 6c 79 20 64 69 73 61 62 6c 65 73 20 61 6e 64 20 72 65 2d 65 6e 61 62 6c 65 73 20 70 63 2d ┆vely disables and re-enables pc-┆ 0x0f00…0f20 73 61 6d 70 6c 69 6e 67 0a 20 20 20 20 20 77 69 74 68 69 6e 20 61 20 70 72 6f 67 72 61 6d 2c 20 ┆sampling within a program, ┆ 0x0f20…0f40 61 6c 6c 6f 77 69 6e 67 20 79 6f 75 20 74 6f 20 6d 65 61 73 75 72 65 20 74 68 65 20 63 6f 73 74 ┆allowing you to measure the cost┆ 0x0f40…0f60 20 6f 66 0a 0a 0a 0a 0a 0a 0a 20 20 20 20 20 70 61 72 74 69 63 75 6c 61 72 20 6f 70 65 72 61 74 ┆ of particular operat┆ 0x0f60…0f80 69 6f 6e 73 2e 20 20 5f 08 6d 5f 08 6f 5f 08 6e 5f 08 63 5f 08 6f 5f 08 6e 5f 08 74 5f 08 72 5f ┆ions. _ m_ o_ n_ c_ o_ n_ t_ r_┆ 0x0f80…0fa0 08 6f 5f 08 6c 28 5f 08 30 29 20 64 69 73 61 62 6c 65 73 20 70 63 2d 73 61 6d 70 6c 69 6e 67 2c ┆ o_ l(_ 0) disables pc-sampling,┆ 0x0fa0…0fc0 0a 20 20 20 20 20 61 6e 64 20 5f 08 6d 5f 08 6f 5f 08 6e 5f 08 63 5f 08 6f 5f 08 6e 5f 08 74 5f ┆ and _ m_ o_ n_ c_ o_ n_ t_┆ 0x0fc0…0fe0 08 72 5f 08 6f 5f 08 6c 28 5f 08 31 29 20 72 65 65 6e 61 62 6c 65 73 20 69 74 2e 0a 0a 20 20 20 ┆ r_ o_ l(_ 1) reenables it. ┆ 0x0fe0…1000 20 20 54 6f 20 73 74 6f 70 20 65 78 65 63 75 74 69 6f 6e 20 6d 6f 6e 69 74 6f 72 69 6e 67 20 61 ┆ To stop execution monitoring a┆ 0x1000…1020 6e 64 20 77 72 69 74 65 20 74 68 65 20 72 65 73 75 6c 74 73 20 69 6e 20 74 68 65 0a 20 20 20 20 ┆nd write the results in the ┆ 0x1020…1040 20 6f 75 74 70 75 74 20 66 69 6c 65 2c 20 75 73 65 3a 0a 0a 20 20 20 20 20 20 20 20 20 20 6d 6f ┆ output file, use: mo┆ 0x1040…1060 6e 69 74 6f 72 28 30 29 3b 0a 0a 46 08 46 08 46 08 46 49 08 49 08 49 08 49 4c 08 4c 08 4c 08 4c ┆nitor(0); F F F FI I I IL L L L┆ 0x1060…1080 45 08 45 08 45 08 45 53 08 53 08 53 08 53 0a 20 20 20 20 20 6d 6f 6e 2e 6f 75 74 20 20 20 20 20 ┆E E E ES S S S mon.out ┆ 0x1080…10a0 20 20 64 65 66 61 75 6c 74 20 6e 61 6d 65 20 66 6f 72 20 6f 75 74 70 75 74 20 66 69 6c 65 0a 20 ┆ default name for output file ┆ 0x10a0…10c0 20 20 20 20 6c 69 62 70 72 6f 66 31 2e 61 20 20 20 20 72 6f 75 74 69 6e 65 73 20 66 6f 72 20 70 ┆ libprof1.a routines for p┆ 0x10c0…10e0 63 2d 73 61 6d 70 6c 69 6e 67 0a 0a 53 08 53 08 53 08 53 45 08 45 08 45 08 45 45 08 45 08 45 08 ┆c-sampling S S S SE E E EE E E ┆ 0x10e0…1100 45 20 41 08 41 08 41 08 41 4c 08 4c 08 4c 08 4c 53 08 53 08 53 08 53 4f 08 4f 08 4f 08 4f 0a 20 ┆E A A A AL L L LS S S SO O O O ┆ 0x1100…1120 20 20 20 20 55 73 65 72 20 43 6f 6d 6d 61 6e 64 73 20 28 31 29 3a 20 63 63 2c 20 6c 64 2c 20 70 ┆ User Commands (1): cc, ld, p┆ 0x1120…1140 72 6f 66 0a 20 20 20 20 20 53 79 73 74 65 6d 20 43 61 6c 6c 73 20 28 32 29 3a 20 70 72 6f 66 69 ┆rof System Calls (2): profi┆ 0x1140…1160 6c 2c 20 73 62 72 6b 0a 20 20 20 20 20 4c 69 62 72 61 72 79 20 46 75 6e 63 74 69 6f 6e 73 20 28 ┆l, sbrk Library Functions (┆ 0x1160…1180 33 29 3a 20 65 6e 64 0a 0a 4d 61 72 63 68 20 31 39 38 39 20 20 20 20 20 20 20 20 20 20 20 20 20 ┆3): end March 1989 ┆ 0x1180…11a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 54 58 20 50 72 6f 67 72 61 6d 6d 65 72 27 73 ┆ TX Programmer's┆ 0x11a0…11c0 20 52 65 66 65 72 65 6e 63 65 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a ┆ Reference ┆ 0x11c0…11d5 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a ┆ ┆