Package daikon.tools
Class DtraceNonceFixer
- Object
-
- DtraceNonceFixer
-
public class DtraceNonceFixer extends Object
This tool fixes a Dtrace file whose invocation nonces became inaccurate as a result of acat
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.
-
-
Constructor Summary
Constructors Constructor Description DtraceNonceFixer()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
main(String[] args)
static void
mainHelper(String[] args)
This does the work ofmain(String[])
, but it never calls System.exit, so it is appropriate to be called progrmmatically.
-
-
-
Constructor Detail
-
DtraceNonceFixer
public DtraceNonceFixer()
-
-
Method Detail
-
mainHelper
public static void mainHelper(String[] args)
This does the work ofmain(String[])
, but it never calls System.exit, so it is appropriate to be called progrmmatically.- Parameters:
args
- command-line arguments, like those ofmain(java.lang.String[])
-
-