size_t error_counter_len;
};
-int lttng_probe_register(struct lttng_kernel_probe_desc *desc);
-void lttng_probe_unregister(struct lttng_kernel_probe_desc *desc);
+int lttng_kernel_probe_register(struct lttng_kernel_probe_desc *desc);
+void lttng_kernel_probe_unregister(struct lttng_kernel_probe_desc *desc);
bool lttng_id_tracker_lookup(struct lttng_id_tracker_rcu *p, int id);
static int TP_ID(__lttng_events_init__, TRACE_SYSTEM)(void)
{
wrapper_vmalloc_sync_mappings();
- return lttng_probe_register(&TP_ID(__probe_desc___, TRACE_SYSTEM));
+ return lttng_kernel_probe_register(&TP_ID(__probe_desc___, TRACE_SYSTEM));
}
static void TP_ID(__lttng_events_exit__, TRACE_SYSTEM)(void)
{
- lttng_probe_unregister(&TP_ID(__probe_desc___, TRACE_SYSTEM));
+ lttng_kernel_probe_unregister(&TP_ID(__probe_desc___, TRACE_SYSTEM));
}
#ifndef TP_MODULE_NOAUTOLOAD
return NULL;
}
-int lttng_probe_register(struct lttng_kernel_probe_desc *desc)
+int lttng_kernel_probe_register(struct lttng_kernel_probe_desc *desc)
{
int ret = 0;
lttng_unlock_sessions();
return ret;
}
-EXPORT_SYMBOL_GPL(lttng_probe_register);
+EXPORT_SYMBOL_GPL(lttng_kernel_probe_register);
-void lttng_probe_unregister(struct lttng_kernel_probe_desc *desc)
+void lttng_kernel_probe_unregister(struct lttng_kernel_probe_desc *desc)
{
lttng_lock_sessions();
if (!desc->lazy)
pr_debug("LTTng: just unregistered probe %s\n", desc->provider_name);
lttng_unlock_sessions();
}
-EXPORT_SYMBOL_GPL(lttng_probe_unregister);
+EXPORT_SYMBOL_GPL(lttng_kernel_probe_unregister);
/*
* TODO: this is O(nr_probes * nb_events), could be faster.