So I rewrote the perl program and the C program to write to the same text file

I get something like this in my output.txt:

237 time system call 8 238 time system call 8 239 time system call 5 240 time system call 5 241 time system call 72 242 time system call 72 243 time system call 1 Started #The BEGIN block 244 time system call 1 245 time system call 3 246 time system call 3 247 time system call 2 248 time system call 2 249 time system call 8 250 time system call 8 251 time system call 16 252 time system call 16 253 time system call 8 254 time system call 8 255 time system call 5 256 time system call 5 257 time system call 72 258 time system call 72 259 time system call 1 hello world 260 time system call 1 261 time system call 3 262 time system call 3 .... .... At 400 about I get the END block print and then 3 more system calls before termination

Unfortunately I don't know now when I should start monitoring the target problem. I want to write something of a generic tracer for any perl script. I thought I would see a pattern in the perl interpreter's system calls but I don't. Any ideas?


In reply to Re^2: tracing system calls a perl script is making by gideondsouza
in thread tracing system calls a perl script is making by gideondsouza

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.