Commit 36110cd1 authored by Vít Kabele's avatar Vít Kabele

Cleanup!

parent 2bf301bc
Pipeline #4631 passed with stages
in 4 minutes and 24 seconds
......@@ -155,7 +155,7 @@ config_init (jvmtiEnv * jvmti, const char * options)
bool
config_debug_is_enabled()
config_shvm_debug()
{
return agent_config.debug;
}
......
......@@ -116,7 +116,10 @@ struct config {
};
/*
* config_init()
*
* Initialize the config structure
*
* @param jvmti
* @param options
*/
......@@ -124,12 +127,14 @@ const struct config *
config_init (jvmtiEnv * jvmti, const char * options);
/*
* config_debug_is_enabled()
* config_shvm_debug()
*
* Determine the debug settings, but only for shvm module.
*
* @return True, when the debug property was set
*/
bool
config_debug_is_enabled ();
config_shvm_debug();
/*
* config_shadow_host()
......@@ -147,9 +152,19 @@ config_shadow_host ();
const char *
config_shadow_port ();
/*
* config_do_disl()
*
* @return True if instrumentation functionality is enabled.
*/
bool
config_do_disl();
/*
* config_disl_debug()
*
* @return True if DiSL debugging is enabled
*/
bool
config_disl_debug();
......
......@@ -65,7 +65,7 @@
* }
*/
#define rdexec \
if (config_debug_is_enabled ())
if (config_shvm_debug())
#define rdaprefix(args...) \
rdoutput (AGENT_NAME ": "); \
......
......@@ -242,7 +242,7 @@ Agent_OnLoad (JavaVM * jvm, char * options, void * reserved)
jvm_is_started = false;
jvm_is_initialized = false;
if (agent_config->disl_functionality)
if (config_do_disl())
disl_init(agent_config, jvmti);
// Init thread local storage.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment