Package daikon.tools

Class DtraceNonceFixer


  • public class DtraceNonceFixer
    extends Object
    This tool fixes a Dtrace file whose invocation nonces became inaccurate as a result of a cat command combining multiple dtrace files. Every dtrace file besides the first will have the invocation nonces increased by the "correct" amount, determined in the following way:

    Keep track of all the nonces you see and maintain a record of the highest nonce observed. The next time you see a '0' valued nonce that is not part of an EXIT program point, then you know you have reached the beginning of the next dtrace file. Use that as the number to add to the remaining nonces and repeat. This should only require one pass through the file.