Re: [PATCH] i386 vsyscall DSO implementation

David Mosberger (davidm@napali.hpl.hp.com)
Fri, 25 Apr 2003 14:17:25 -0700


>>>>> On 25 Apr 2003 14:00:53 -0700, "H. Peter Anvin" <hpa@zytor.com> said:

hpa> Followup to: <16041.24730.267207.671647@napali.hpl.hp.com> By
hpa> author: David Mosberger <davidm@napali.hpl.hp.com> In
hpa> newsgroup: linux.dev.kernel

>> I like this. Even better would be if all platforms could do the
>> same. I'm definitely interested in doing something similar for
>> ia64 (the getunwind() syscall was always just a stop-gap
>> solution).

>> I assume that these kernel ELF images would then show up in
>> dl_iterate_phdr()?

>> To complete the picture, it would be nice if the kernel ELF
>> images were mappable files (either in /sysfs or /proc) and would
>> show up in /proc/PID/maps. That way, a distributed application
>> such as a remote debugger could gain access to the kernel unwind
>> tables on a remote machine (assuming you have a remote
>> filesystem).

hpa> How about /boot?

You mean a regular file? I'm not sure whether this could be made to
work. The /proc/PID/maps entry (really: the vm_area for the kernel
ELF images) would have to be created by the kernel, at a time when no
real filesystem is available. Also, since the kernel needs to store
the data in kernel-memory anyhow, I don't think there is much point in
storing it on disk as well.

--david
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/