Le 2013-11-22 12:33, Klaus Dannecker a écrit : > Hi. > > Thank's Jérémie! > > my account type is Administrator. > sudo lttng list -k works good! > how can I define a "tracing"group , so I no longer need the sudo command? > > another problem: > i have add mycustomevents in the lttng_module like > http://lists.lttng.org/pipermail/lttng-dev/2013-October/021540.html > but after > $ make > $ sudo make modules_install > $ sudo depmod -a > and > $ sudo lttng list -k > my lttng-probe-mycustomevents.ko is now in > /lib/modules/3.11.0-12-generic/extra/probes > but i can't find my new event in the list!
On Ubuntu since kernel 3.8, modules are signed, and while unsigned modules are loaded, if they contains tracepoints, they won't be registered and won't be listed. To avoid this inconvenience, a certificate x.509 must be generated and modules signed with it, and the additional signing key must be loaded. This process is not documented, but you can find the integration of this process into the makefiles in lttng-modules addons. https://github.com/giraldeau/lttng-modules/tree/addons The module lttng-modsign is generated (look at the base makefile and their code) and if they are loaded before your own module, tracepoints tracepoints inside it should be registered correctly. BTW, if you want, you can put your code directly under addons and start your own tracepoints right away. Cheers, Francis _______________________________________________ lttng-dev mailing list [email protected] http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
