For starters run it under the debugger and view the addresses.
As far as swap goes, I don't know if there are any programming API functions for monitoring it, but I assume there may be some.
Recommend you check the Linux kernel mem source for that information.
|