X-Git-Url: http://git.lttng.org/?p=ust.git;a=blobdiff_plain;f=libust%2Fmarker-control.c;fp=libust%2Fmarker-control.c;h=4b3096c51753a9133b50dc62045d8a7eaa450109;hp=e83ee1a3bf56cba979a8665cdefbcaa80e737f14;hb=b27f8e75a6e762ed01b889560431476516786d9f;hpb=fd0a1aea7b67696a87ffe70b8d3d8c15424f0bca diff --git a/libust/marker-control.c b/libust/marker-control.c index e83ee1a..4b3096c 100644 --- a/libust/marker-control.c +++ b/libust/marker-control.c @@ -403,14 +403,10 @@ static char initialized = 0; void __attribute__((constructor)) init_ust_marker_control(void) { - if(!initialized) { + if (!initialized) { int ret; -//ust// pentry = create_proc_entry("ltt", S_IRUSR|S_IWUSR, NULL); -//ust// if (!pentry) -//ust// return -EBUSY; -//ust// ust_markers_loaded_cachep = KMEM_CACHE(ltt_active_ust_marker, 0); - + init_ust_marker(); ret = ltt_probe_register(&default_probe); BUG_ON(ret); ret = ltt_ust_marker_connect("metadata", "core_marker_format", @@ -418,18 +414,14 @@ void __attribute__((constructor)) init_ust_marker_control(void) BUG_ON(ret); ret = ltt_ust_marker_connect("metadata", "core_marker_id", DEFAULT_PROBE); BUG_ON(ret); -//ust// pentry->proc_fops = <t_fops; - initialized = 1; } } -//ust// module_init(ust_marker_control_init); static void __attribute__((destructor)) ust_marker_control_exit(void) { int ret; -//ust// remove_proc_entry("ltt", NULL); ret = ltt_ust_marker_disconnect("metadata", "core_marker_format", DEFAULT_PROBE); BUG_ON(ret); @@ -439,11 +431,5 @@ static void __attribute__((destructor)) ust_marker_control_exit(void) ret = ltt_probe_unregister(&default_probe); BUG_ON(ret); disconnect_all_ust_markers(); -//ust// kmem_cache_destroy(ust_markers_loaded_cachep); -//ust// ust_marker_synchronize_unregister(); + ust_marker_synchronize_unregister(); } -//ust// module_exit(ust_marker_control_exit); - -//ust// MODULE_LICENSE("GPL"); -//ust// MODULE_AUTHOR("Mathieu Desnoyers"); -//ust// MODULE_DESCRIPTION("Linux Trace Toolkit Marker Control");