This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: baby memory map notification
Srinivasa DS wrote:
> I tried executing this script on ppc64 system, But later found that
> memory map notification was not implemented on ppc64. So I did few
> changes to make it work for ppc64. Iam attaching my patch here, please
> let me know your comments.
Thanks! You are certainly correct, the current code only supported i386
and x86_64.
> Snapshot of script output
> =================
> stapio:stp_main_loop:318 nb=12
> stapio:stp_main_loop:358 probe_start() returned 0
> running...
> __stp_tf_vm_cb:47: vm_cb: tsk 30717:1 path /lib/ld-2.5.so, start
> 0x0ffc0000, end 0x0ffe0000, offset 0x0
> __stp_tf_vm_cb:47: vm_cb: tsk 30717:1 path /lib/ld-2.5.so, start
> 0x0ffe0000, end 0x10000000, offset 0x10000
> __stp_tf_vm_cb:47: vm_cb: tsk 30717:1 path /bin/cat, start 0x10000000,
> end 0x10010000, offset 0x0
> __stp_tf_vm_cb:47: vm_cb: tsk 30717:1 path /bin/cat, start 0x10010000,
> end 0x10020000, offset 0x0
> *** /bin/cat begin ***
> __stp_utrace_task_finder_target_syscall_exit:772: tsk 30717 found
> mmap(0xf7fc0000), returned 0xf7fc0000
> __stp_tf_vm_cb:47: vm_cb: tsk 30717:1 path /etc/ld.so.cache, start
> 0xf7fc0000, end 0xf7ff0000, offset 0x0
> __stp_utrace_task_finder_target_syscall_exit:772: tsk 30717 found
> mmap(0xfe30000), returned 0xfe30000
> __stp_tf_vm_cb:47: vm_cb: tsk 30717:1 path /lib/libc-2.5.so, start
> 0x0fe30000, end 0x0ffc0000, offset 0x0
> __stp_utrace_task_finder_target_syscall_exit:772: tsk 30717 found
> mmap(0xffa0000), returned 0xffa0000
> =======================
>
> Signed-off-by: Srinivasa DS <srinivasa@in.ibm.com>
That was just the start of the output, correct? (If it was the entire
output, the code has missed several calls.)
I'll simplify your patch a little and check it in. The i386/x86_64
stuff was a bit convoluted since I wanted to handle i386, x86_64 and
i386-on-x86_64.
--
David Smith
dsmith@redhat.com
Red Hat
http://www.redhat.com
256.217.0141 (direct)
256.837.0057 (fax)