11# BTrace "compile time" and runtime error messages.
22
3- no.string.concatenation = + operator on strings is not allowed, use 'strcat' instead
43return.type.should.be.void = btrace probe methods must return void
54btrace.program.should.be.class = btrace program must be a class (not interface or enum)
65no.complex.unsafe.value = @BTrace.unsafe value should be only a plain boolean
@@ -42,7 +41,7 @@ duration.desc.invalid = @Duration annotation applicable only for Kind.RETURN and
4241called-method.desc.invalid = @CalledMethod annotation applicable only for Kind.CALL
4342called-instance.desc.invalid = @CalledInstance annotation applicable only for Kind.CALL
4443onexit.invalid = @OnExit annotation applicable only to methods with signature (int)void
45- onexit .invalid = @OnError annotation applicable only to methods with signature (java.lang.Throwable)void
44+ onerror .invalid = @OnError annotation applicable only to methods with signature (java.lang.Throwable)void
4645
4746agent.no.instance.variables =instance variables are not allowed
4847agent.unsafe.not.allowed =Unsafe mode, requested by the script, not allowed
@@ -68,13 +67,18 @@ btrace.usage =\
6867btrace.agent.usage =\
6968 Usage: java -javaagent:java-agent.jar=<arguments> <main class> <application arguments>\n \
7069 where arguments is comma separated name=value pairs. Argument names include:\n \
71- debug boolean flag to specify debug mode\n \
72- dumpClasses boolean flag to specify whether to dump .classes for instrumented classes\n \
73- dumpDir directory where instrumented .class files are saved\n \
74- help print this help message\n \
75- noServer boolean flag to specify whether to start btrace server or not\n \
76- port btrace agent server port\n \
77- probeDescPath directories where @OnProbe mapping descriptor XML files are searched\n \
78- script pre-compiled btrace .class file as initial script\n \
70+ bootClassPath boot classpath to be used\n \
71+ systemClassPath system classpath to be used\n \
72+ debug boolean flag to specify debug mode\n \
73+ dumpClasses boolean flag to specify whether to dump .classes for instrumented classes\n \
74+ dumpDir directory where instrumented .class files are saved\n \
75+ help print this help message\n \
76+ noServer boolean flag to specify whether to start btrace server or not\n \
77+ port btrace agent server port\n \
78+ probeDescPath directories where @OnProbe mapping descriptor XML files are searched\n \
79+ stdout redirect the btrace output to stdout instead of writing it to an arbitrary file (true/false)\n \
80+ scriptdir the path to a directory containing scripts to be run at the agent startup\n \
81+ scriptOutputFile the path to a file the btrace agent will store its output\n \
82+ script comma separated list of compiled tracing scripts to be run at the agent startup; *MUST* be the last argument in the list\n \
7983
8084
0 commit comments