This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug runtime/10605] Unknown symbol in module error (Unknown symbol si_swapinfo)
- From: "wenji dot huang at oracle dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 7 Sep 2009 10:06:45 -0000
- Subject: [Bug runtime/10605] Unknown symbol in module error (Unknown symbol si_swapinfo)
- References: <20090904085735.10605.wangkai@noahsi.com.cn>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From wenji dot huang at oracle dot com 2009-09-07 10:06 -------
(In reply to comment #4)
> but if I using a vendor-supplied kernel,how can I get this info?
>
Need to do a little tricky things to implement your own si_swapinfo.
for non-cross compilation situation, you can follow this.
In si_swapinfo, there are only three kernel variables needed swap_info,
nr_swap_pages, total_swap_pages.
1. To look up the address for variables from System.map
2. Do type cast, from address to structures or unsigned long.
3. Wrote your own si_swapinfo in reference of kernel source.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=10605
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.