gcc question (off topic)
Can gcc generate ASM output with the source lines from the C file interspersed as comments? Thanks. Jerry Kelley [EMAIL PROTECTED] - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
gcc question (off topic)
Can gcc generate ASM output with the source lines from the C file interspersed as comments? Thanks. Jerry Kelley [EMAIL PROTECTED] - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
Re: getting module symbols into ksyms
Thanks for the info. I'll give it a try. Jerry - Original Message - From: "Keith Owens" <[EMAIL PROTECTED]> To: "Jerry Kelley" <[EMAIL PROTECTED]> Cc: "linux kernel" <[EMAIL PROTECTED]> Sent: Sunday, October 22, 2000 5:24 PM Subject: Re: getting module symbols into ksyms > On Sun, 22 Oct 2000 10:26:04 -0500, > "Jerry Kelley" <[EMAIL PROTECTED]> wrote: > >kernel = 2.2.14-5.0 for i686 UP > >insmod reports version 2.3.10-pre1 > >ksymoops is 0.7c > > Upgrade both modutils and ksymoops, both are well out of date. Also > kernel 2.2.14 does not have the code to handle symbols if you get an > oops during module initialization, you need at least kernel 2.2.15 for > that. > > ftp://ftp.kernel.org/pub/linux/utils/kernel/modutils/v2.3 > ftp://ftp.kernel.org/pub/linux/utils/kernel/ksymoops/v2.3 > - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
Re: getting module symbols into ksyms
kernel = 2.2.14-5.0 for i686 UP insmod reports version 2.3.10-pre1 ksymoops is 0.7c If the insmod version is not the same as modutils some guidance on finding the modutils version would be appreciated. (The system installed is the RedHat 6.2 distribution.) Thanks in advance. Jerry - Original Message - From: "Keith Owens" <[EMAIL PROTECTED]> To: "Jerry Kelley" <[EMAIL PROTECTED]> Cc: "linux kernel" <[EMAIL PROTECTED]> Sent: Saturday, October 21, 2000 9:11 PM Subject: Re: getting module symbols into ksyms > On Sat, 21 Oct 2000 10:41:08 -0500, > "Jerry Kelley" <[EMAIL PROTECTED]> wrote: > >I'm trying to debug the oops that my module is generating. When I use = > >ksymoops on the oops text I get a warning saying that the module is in = > >lsmod but is not found in ksyms. I have two questions: > > Please send in plain text instead of quoted printable+HTML, it uses > less bandwidth for exactly the same result. Tools, Options, Send, set > Mail send for Plain text. > > You provided zero details about your system, no indication of which > kernel, modutils or ksymoops you are running. So the only help that > can be provided is to tell you to upgrade to the latest modutils and > ksymoops[*] and try again. If you still have a problem, provide > details next time. > > [*] ftp://ftp.kernel.org/pub/linux/utils/kernel/modutils/v2.3 > ftp://ftp.kernel.org/pub/linux/utils/kernel/ksymoops/v2.3 > - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
Re: getting module symbols into ksyms
Yes, I know about the HTML crap. I realized after I sent it what I had done and knew I'd get flack about it. Regarding the issue, I'm using 2.2.14-5.0. I'll have to check version of ksymoops and modutils. It's too bad that a seemingly simple question like this ends up being so complicated. I'll get the details. - Original Message - From: "Keith Owens" <[EMAIL PROTECTED]> To: "Jerry Kelley" <[EMAIL PROTECTED]> Cc: "linux kernel" <[EMAIL PROTECTED]> Sent: Saturday, October 21, 2000 9:11 PM Subject: Re: getting module symbols into ksyms > On Sat, 21 Oct 2000 10:41:08 -0500, > "Jerry Kelley" <[EMAIL PROTECTED]> wrote: > >I'm trying to debug the oops that my module is generating. When I use = > >ksymoops on the oops text I get a warning saying that the module is in = > >lsmod but is not found in ksyms. I have two questions: > > Please send in plain text instead of quoted printable+HTML, it uses > less bandwidth for exactly the same result. Tools, Options, Send, set > Mail send for Plain text. > > You provided zero details about your system, no indication of which > kernel, modutils or ksymoops you are running. So the only help that > can be provided is to tell you to upgrade to the latest modutils and > ksymoops[*] and try again. If you still have a problem, provide > details next time. > > [*] ftp://ftp.kernel.org/pub/linux/utils/kernel/modutils/v2.3 > ftp://ftp.kernel.org/pub/linux/utils/kernel/ksymoops/v2.3 > - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
Re: getting module symbols into ksyms
Yes, I know about the HTML crap. I realized after I sent it what I had done and knew I'd get flack about it. Regarding the issue, I'm using 2.2.14-5.0. I'll have to check version of ksymoops and modutils. It's too bad that a seemingly simple question like this ends up being so complicated. I'll get the details. - Original Message - From: "Keith Owens" [EMAIL PROTECTED] To: "Jerry Kelley" [EMAIL PROTECTED] Cc: "linux kernel" [EMAIL PROTECTED] Sent: Saturday, October 21, 2000 9:11 PM Subject: Re: getting module symbols into ksyms On Sat, 21 Oct 2000 10:41:08 -0500, "Jerry Kelley" [EMAIL PROTECTED] wrote: I'm trying to debug the oops that my module is generating. When I use = ksymoops on the oops text I get a warning saying that the module is in = lsmod but is not found in ksyms. I have two questions: Please send in plain text instead of quoted printable+HTML, it uses less bandwidth for exactly the same result. Tools, Options, Send, set Mail send for Plain text. You provided zero details about your system, no indication of which kernel, modutils or ksymoops you are running. So the only help that can be provided is to tell you to upgrade to the latest modutils and ksymoops[*] and try again. If you still have a problem, provide details next time. [*] ftp://ftp.kernel.org/pub/linux/utils/kernel/modutils/v2.3 ftp://ftp.kernel.org/pub/linux/utils/kernel/ksymoops/v2.3 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
Re: getting module symbols into ksyms
kernel = 2.2.14-5.0 for i686 UP insmod reports version 2.3.10-pre1 ksymoops is 0.7c If the insmod version is not the same as modutils some guidance on finding the modutils version would be appreciated. (The system installed is the RedHat 6.2 distribution.) Thanks in advance. Jerry - Original Message - From: "Keith Owens" [EMAIL PROTECTED] To: "Jerry Kelley" [EMAIL PROTECTED] Cc: "linux kernel" [EMAIL PROTECTED] Sent: Saturday, October 21, 2000 9:11 PM Subject: Re: getting module symbols into ksyms On Sat, 21 Oct 2000 10:41:08 -0500, "Jerry Kelley" [EMAIL PROTECTED] wrote: I'm trying to debug the oops that my module is generating. When I use = ksymoops on the oops text I get a warning saying that the module is in = lsmod but is not found in ksyms. I have two questions: Please send in plain text instead of quoted printable+HTML, it uses less bandwidth for exactly the same result. Tools, Options, Send, set Mail send for Plain text. You provided zero details about your system, no indication of which kernel, modutils or ksymoops you are running. So the only help that can be provided is to tell you to upgrade to the latest modutils and ksymoops[*] and try again. If you still have a problem, provide details next time. [*] ftp://ftp.kernel.org/pub/linux/utils/kernel/modutils/v2.3 ftp://ftp.kernel.org/pub/linux/utils/kernel/ksymoops/v2.3 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
Re: getting module symbols into ksyms
Thanks for the info. I'll give it a try. Jerry - Original Message - From: "Keith Owens" [EMAIL PROTECTED] To: "Jerry Kelley" [EMAIL PROTECTED] Cc: "linux kernel" [EMAIL PROTECTED] Sent: Sunday, October 22, 2000 5:24 PM Subject: Re: getting module symbols into ksyms On Sun, 22 Oct 2000 10:26:04 -0500, "Jerry Kelley" [EMAIL PROTECTED] wrote: kernel = 2.2.14-5.0 for i686 UP insmod reports version 2.3.10-pre1 ksymoops is 0.7c Upgrade both modutils and ksymoops, both are well out of date. Also kernel 2.2.14 does not have the code to handle symbols if you get an oops during module initialization, you need at least kernel 2.2.15 for that. ftp://ftp.kernel.org/pub/linux/utils/kernel/modutils/v2.3 ftp://ftp.kernel.org/pub/linux/utils/kernel/ksymoops/v2.3 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
getting module symbols into ksyms
I'm trying to debug the oops that my module is generating. When I use ksymoops on the oops text I get a warning saying that the module is in lsmod but is not found in ksyms. I have two questions: 1. How do I get my symbols into ksyms? 2. Are only exported symbols in ksyms? Translation: Will I have to export all of my routines in order to effectively debug the module? (I assume that only exported symbols are in ksyms and will build a debug version that exports more routines in the debug version but not in the release version.) Thanks. I realize that these are probably very rudimentary questions but I'd rather ask the experts rather than wander around. Jerry Kelley [EMAIL PROTECTED]
getting module symbols into ksyms
I'm trying to debug the oops that my module is generating. When I use ksymoops on the oops text I get a warning saying that the module is in lsmod but is not found in ksyms. I have two questions: 1. How do I get my symbols into ksyms? 2. Are only exported symbols in ksyms? Translation: Will I have to export all of my routines in order to effectively debug the module? (I assume that only exported symbols are in ksyms and will build a debug version that exports more routines in the debug version but not in the release version.) Thanks. I realize that these are probably very rudimentary questions but I'd rather ask the experts rather than wander around. Jerry Kelley [EMAIL PROTECTED]
info on Oops
Is there a good primer on reading an Oops? I'm also looking for general tips on configuring the kernel and my module so that a useful stack trace is generated - entry points show function names rather than addresses. The obvious is to build with debugging turned on but is it necessary for the kernel to be built with debugging turned on to effectively trace back through a crash? It seems that the Oops in the messages log resolves symbols but on the console I only get function addresses. Jerry Kelley [EMAIL PROTECTED] - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
info on Oops
Is there a good primer on reading an Oops? I'm also looking for general tips on configuring the kernel and my module so that a useful stack trace is generated - entry points show function names rather than addresses. The obvious is to build with debugging turned on but is it necessary for the kernel to be built with debugging turned on to effectively trace back through a crash? It seems that the Oops in the messages log resolves symbols but on the console I only get function addresses. Jerry Kelley [EMAIL PROTECTED] - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
acquiring resources shared or exclusive
I have a rudimentary question as I'm new to the Linux kernel. Is there a resource that can be acquired shared so that multiple threads can read data from a protected region and not block each other? It seems that the semaphore in the Linux kernel is only exclusively acquirable. I need to be able to share read access from several threads to some global structures and don't want them to block. I do want blocking whenever I have to modify the structures though. Thus I'm looking for a way to perform synchronization for reads (shared) and writes (exclusively) in the kernel. I assume it can be done it's just that I'm not sure how to do it yet. This is probably a very easy question. Thanks in advance. --- Jerry Kelley [EMAIL PROTECTED] - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
acquiring resources shared or exclusive
I have a rudimentary question as I'm new to the Linux kernel. Is there a resource that can be acquired shared so that multiple threads can read data from a protected region and not block each other? It seems that the semaphore in the Linux kernel is only exclusively acquirable. I need to be able to share read access from several threads to some global structures and don't want them to block. I do want blocking whenever I have to modify the structures though. Thus I'm looking for a way to perform synchronization for reads (shared) and writes (exclusively) in the kernel. I assume it can be done it's just that I'm not sure how to do it yet. This is probably a very easy question. Thanks in advance. --- Jerry Kelley [EMAIL PROTECTED] - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/