Download nProbe User`s Guide

Transcript
nProbe User’s Guide v.6.16
!
!
!
if(new_bucket /* This bucket has been created recently */) {
info->pluginPtr = (void*)&myPlugin;
pluginData = info->pluginData = (struct my_plugin_info*)malloc(sizeof(struct my_plugin_info));
if(info->pluginData == NULL) {
traceEvent(TRACE_ERROR, "Not enough memory?");
free(info);
return; /* Not enough memory */
} else {
struct my_plugin_info *myinfo = (struct my_plugin_info*)pluginData;
!
!
/* Reset fields */
memset(myinfo, 0, sizeof(struct my_plugin_info));
info->next = bkt->ext->plugin;
info->plugin_used = 0;
bkt->ext->plugin = info;
}
}
}
!
Once a plugin is defined, it must be placed into the nProbe/plugins directory so that
the nProbe build process will detect and compile it.
!33