From: Tom Z. <za...@us...> - 2006-01-16 21:36:48
|
Bruno de Oliveira Abinader writes: > Hi everybody, I'm using relayfs to extract some informations with klog() > functions on my kernel (version 2.6.15), so I enabled both relayfs and > klog (this last using klog.patch). Then I used klog example from > relay-apps version 0.8 (that still uses relay-app and librelay.c files) > and it seems to work (cpu0..cpuX files are created on my user-space). > Now I want to try klog from relay-apps version 0.91 (available at > sourceforge.net). This klog uses the new API, that doesn't need > relay-app and etc. Ok, I tried to compile it and I got the following > message on my console: > > *** Warning: "relayfs_create_file" [/home/bruno/klog/klog-mod.ko] undefined! > *** Warning: "relayfs_remove_file" [/home/bruno/klog/klog-mod.ko] undefined! > > But it still compiled. Then I tried to do a "sudo insmod klog-mod.ko" > and I got this: > > insmod: error inserting 'klog-mod.ko': -1 Invalid module format > > I studied the inode.c file from relayfs and, apparently, from version > 2.6.15 it doesn't mention the "relayfs_create_file" and > "relayfs_remove_file" functions, so I think I'm using old versions of > relayfs driver. Am I correct or there is another problem that i'm not > finding? Thanks in advance for your help. Hi, The 0.91 version of relay-apps will work with the latest git kernel or the 2.6.15 -mm kernel 2.6.15-mm2 - the additional features it depends on sat in -mm for awhile and just got moved over to the mainline kernel (and removed from 2.6.15-mm3). Hope that helps, Tom |