On Thu, May 7, 2015 at 3:36 PM, Neil Horman <nhorman at tuxdriver.com> wrote:
> > I tried to reuse modinfo, but the problem is that kmod implementation is > > checking the filename extension against .ko and .ko.gz. > > > Well, you can alter modinfo so that it looks at .so files if you like, but > thats > not the only tool you can use. Truthfully you can just use objdump if you > like. > > > I find it a bit too bad to have to rewrite this kind of tool just for > dpdk > > ... but on the other hand we would need something for bsd as well or we > > give a shell script that rely on readelf to retrieve theis section. > > > See above, try objdump -j=.modinfo -S /path/to/kernel/module. objdump > doesn't > care about file extensions, as long as its ELF. With that you can: > > 1) Dump out any section contents you like > 2) strip away the application top end, and just use libbfd to get at the > elf > contents if you like. > Yes, I reached the same conclusion. Ok, I will see what I can do. Thanks. -- David Marchand