I am trying to implement a kernel module in which I want to search the System.map file for certain symbols. In x86 these are bounded by loops_per_jiffy and boot_cpu_data. However the ppc64 arch does not have the latter. How can I find the bounds for ppc64, I am running 2.6.16-rc4-3-ppc64 flavor on POWER5.

I can currently grep it from command line, but I want to automate it.

Thanks for all help

06-06-2006

fernape

I suppose that you are trying to get the syscall table ;)

Well, the problem with that aproximation is that it is very system dependent. That's the reason because the syscall table is not exported to modules anymore.

However, that two symbols are needed only for performance reasons (you delimite the search zone with them) but you could scan all the kernel address space.

But remember... if you want to get syscalls for no malicious software try to use Oprofile that is merged into the kernel