[lttng-dev] [PATCH] Expose kernel tracer to user-space (version 6)

Francis Giraldeau francis.giraldeau at gmail.com
Tue Jul 3 10:23:40 EDT 2012


Le 2012-07-03 15:40, Mathieu Desnoyers a écrit :
>> It's not possible to remove the module while an active tracing session
>> references the event lttng_uevent. I tested insertion/removal of the
>> module while tracing with the previous version that was using RCU and it
>> was working well.
> 
> But you don't need to have an active tracing session to perform the test
> I point to above. Could you run it on this latest version ?

Ok. I updated the test to run in a loop rmmod/modprobe, while writing
with 20 threads into /proc/lttng_uevent. The result is that the module
can be unloaded properly, the test shows no race that prevent the module
to be unloaded or other problems.

If somebody wants to test it for themselves, I added the code for this
test under workload-kit/tests.

  * test-uevent : runs 4 times 20 threads each producing 64k events
  * module-reload-forever.sh : rmmod/modprobe of lttng_uevent
  * test-uevent.sh : quick wrapper for testing functionnality

Thanks!

Francis

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4489 bytes
Desc: Signature cryptographique S/MIME
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20120703/7416c7b4/attachment-0001.bin>


More information about the lttng-dev mailing list