[13:59] <jdesfossez> Hi, when compiling external modules for a Ubuntu kernel, is it possible to detect that the target kernel is a Ubuntu kernel ?
[14:00] <jdesfossez> some kind of version include or something like that
[14:28] <apw> jdesfossez, we have reently added a version thing for that, and UBUNTU_ABI in a header
[14:28] <apw> not sure how far back it was applied
[14:29] <apw> UBUNTU_RELEASE_ABI
[14:30] <jdesfossez> apw: oh nice, is it in trusty ?
[14:32] <jdesfossez> apparently not
[14:34] <apw> jdesfossez, it will be in the next update in trusty
[14:35] <jdesfossez> ah great !
[14:35] <apw> jdesfossez, also i don't know if you can see CONFIG_VERSION_SIGNATURE in your module, that is ubuntu specifici
[14:36] <apw> and that has "always" been in there
[14:36] <jdesfossez> nice, I wasn't sure if it was Ubuntu specific
[14:37] <jdesfossez> I should be able to include this file, I'll give it a try
[14:37] <jdesfossez> I hope it will fix a bug we are having right now with LTTng kernel modules since this patch has been backported to Ubuntu 3.13.0-x http://kernel.ubuntu.com/git?p=ubuntu/ubuntu-trusty.git;a=commit;h=f131dbbef24a58bb43bbd54119d9b2dad478f21f
[14:48] <jdesfossez> apw: CONFIG_VERSION_SIGNATURE is in .conf file, it seems tricky to import inside our macros, we will have to wait for UBUNTU_RELEASE_ABI to fix this
[14:50] <apw> jdesfossez, i don't th
[14:50] <apw> jdesfossez, i don't think you have to include anything do you?  as yu can #ifdef CONFIG_SMP and stuff in modules without direct action
[14:50] <apw> it is a config just the same, #ifdef ought to work on it no ?
[14:51] <jdesfossez> ah maybe, I'll try that
[14:52] <jdesfossez> ok, I can use it, I'll try to cook a patch for that
[14:53] <jdesfossez> thanks !
[14:57] <apw> sadly its not in a form you can check numerically, which is why the ABI was added
[14:58] <jdesfossez> do you think UBUNTU_RELEASE_ABI will be backported to 12.04 also ?
[15:01] <apw> bjf, ^ ??
[15:02] <bjf> apw, i can't think of any reason it can't be
[15:02] <apw> bjf, i guess if it is in 12.04 and 14.04 kernels soon that will be all of them
[15:39] <jw12000> apw: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1313981  Just looking for an update?
[19:00] <apw> jw12000, i've not had a chance to chase up on my chain today
[19:01] <apw> it is on my todo list, and is already red from inaction
[19:13] <jw12000> apw:  Thanks much.  I'll stop bugging you for a while.