ust: continue port
[ust.git] / libtracing / tracer.c
index 2dfde4a0fe4d71241010e357061ab70c43c97e69..8810ab2727d4e32ee19f3e5148996dd14ac60c20 100644 (file)
@@ -204,31 +204,31 @@ static LIST_HEAD(ltt_transport_list);
  * vmalloc_sync_all. Therefore, only if the module allocates virtual memory
  * after its registration must it synchronize the TLBs.
  */
-//ust// void ltt_transport_register(struct ltt_transport *transport)
-//ust// {
-//ust//        /*
-//ust//         * Make sure no page fault can be triggered by the module about to be
-//ust//         * registered. We deal with this here so we don't have to call
-//ust//         * vmalloc_sync_all() in each module's init.
-//ust//         */
-//ust//        vmalloc_sync_all();
-//ust// 
-//ust//        ltt_lock_traces();
-//ust//        list_add_tail(&transport->node, &ltt_transport_list);
-//ust//        ltt_unlock_traces();
-//ust// }
+void ltt_transport_register(struct ltt_transport *transport)
+{
+       /*
+        * Make sure no page fault can be triggered by the module about to be
+        * registered. We deal with this here so we don't have to call
+        * vmalloc_sync_all() in each module's init.
+        */
+//ust//        vmalloc_sync_all();
+
+       ltt_lock_traces();
+       list_add_tail(&transport->node, &ltt_transport_list);
+       ltt_unlock_traces();
+}
 //ust// EXPORT_SYMBOL_GPL(ltt_transport_register);
 
 /**
  * ltt_transport_unregister - LTT transport unregistration
  * @transport: transport structure
  */
-//ust// void ltt_transport_unregister(struct ltt_transport *transport)
-//ust// {
-//ust//        ltt_lock_traces();
-//ust//        list_del(&transport->node);
-//ust//        ltt_unlock_traces();
-//ust// }
+void ltt_transport_unregister(struct ltt_transport *transport)
+{
+       ltt_lock_traces();
+       list_del(&transport->node);
+       ltt_unlock_traces();
+}
 //ust// EXPORT_SYMBOL_GPL(ltt_transport_unregister);
 
 static inline int is_channel_overwrite(enum ltt_channels chan,
This page took 0.024058 seconds and 4 git commands to generate.