X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=libtracing%2Ftracer.c;h=012acea536eeae7ae7dd65c71e41f2cb7e5c6546;hb=5f54827b88b093974e4bf58f67490036718644c7;hp=2dfde4a0fe4d71241010e357061ab70c43c97e69;hpb=e1152c3706f5140e7267f75dc597daa1a9c579a6;p=ust.git diff --git a/libtracing/tracer.c b/libtracing/tracer.c index 2dfde4a..012acea 100644 --- a/libtracing/tracer.c +++ b/libtracing/tracer.c @@ -204,19 +204,19 @@ 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, <t_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. + */ + vmalloc_sync_all(); + + ltt_lock_traces(); + list_add_tail(&transport->node, <t_transport_list); + ltt_unlock_traces(); +} //ust// EXPORT_SYMBOL_GPL(ltt_transport_register); /**