https://bugs.lttng.org/https://bugs.lttng.org/themes/lttng/favicon/a.ico?14249722912015-07-22T20:40:57ZLTTng bugs repositoryLTTng-modules - Bug #895: KVM events are not available, probe modules is silently not loading https://bugs.lttng.org/issues/895?journal_id=25392015-07-22T20:40:57ZFrancis Giraldeaufrancis.giraldeau@gmail.com
<ul></ul><p>The fundamental problem is that TRACE_SYSTEM string is used to generate the symbol names in the modules. If both have "kvm", then their init functions are the same, and the kernel won't load the module.</p>
<pre>
$ make probes/lttng-probe-kvm.i probes/lttng-probe-kvm-x86.i
$ grep "init_module(void) " probes/lttng-probe-kvm.i probes/lttng-probe-kvm-x86.i
probes/lttng-probe-kvm.i:static inline __attribute__((no_instrument_function)) initcall_t __inittest(void) { return __lttng_events_init__kvm; } int init_module(void) __attribute__((alias("__lttng_events_init__kvm")));;
probes/lttng-probe-kvm-x86.i:static inline __attribute__((no_instrument_function)) initcall_t __inittest(void) { return __lttng_events_init__kvm; } int init_module(void) __attribute__((alias("__lttng_events_init__kvm")));;
<pre></pre> LTTng-modules - Bug #895: KVM events are not available, probe modules is silently not loading https://bugs.lttng.org/issues/895?journal_id=28592016-03-08T16:00:03ZMathieu Desnoyersmathieu.desnoyers@efficios.com
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Resolved</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>Applied in changeset modules|commit:b36bb1a8d9cb32b6ce199f05f399b1ca639e240e.</p>