Featured post
xorg - Version information on Xserver modules -
i trying find tool extract module version information (a part of module record) fron xserver module. example, in xorg logs can see following information librecord module in xorg.0.log file...
[ 39.892] (ii) loading /usr/lib/xorg/modules/extensions/librecord.so [ 39.905] (ii) module record: vendor="x.org foundation" [ 39.905] compiled 1.9.0, module version = 1.13.0 [ 39.905] module class: x.org server extension [ 39.905] abi class: x.org server extension, version 4.0
is there tools allow me extract aforementioned information. can use modinfo on module , have version information, not work. consistent way know of parse xorg log file. thanks.
yes, there , can try write small one.
http://gitorious.org/xdriverprobe
the problem xdriverprobe won't compile on newer servers since didn't update newest abis. also, xdriverprobe used video drivers, can adapted used on other modules. main source code file (xdriverprobe.c) has less 500 lines, can learn reading it.
it works in ubuntu 11.10... ./xdriverprobe -o moduledata
gives information want.
look @ source code. does:
- dlopen() module
- find symbol called
modulenamemoduledata
(if module calledmodulename
) - that symbol
xf86moduledata*
see/usr/include/xorg/xf86module.h
- check member named
vers
spend few hours , you'll able write tiny code want.
more information: http://www.xfree86.org/current/design17.html#65 (very old document, of what's written there still true today). if you're not happy document, have read xorg source code.
happy hacking!
- Get link
- X
- Other Apps
Comments
Post a Comment