<div dir="ltr"><div><div><div>Hi Ronith,<br><br></div>I think it forward declaration of the structure. that is is required because the below function uses that structure as parameter.<br><br>0 machine_kexec.c 50 void machine_kexec_cleanup(struct kimage *image)<br>1 machine_kexec.c 54 static void kexec_info(struct kimage *image)<br>2 machine_kexec.c 73 void machine_kexec(struct kimage *image)<br><br></div>Thanks,<br></div>Harish<br><div><div><br><div><div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 15, 2016 at 9:30 PM, <span dir="ltr"><<a href="mailto:kernelnewbies-request@kernelnewbies.org" target="_blank">kernelnewbies-request@kernelnewbies.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Send Kernelnewbies mailing list submissions to<br>
<a href="mailto:kernelnewbies@kernelnewbies.org">kernelnewbies@kernelnewbies.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" rel="noreferrer" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:kernelnewbies-request@kernelnewbies.org">kernelnewbies-request@kernelnewbies.org</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:kernelnewbies-owner@kernelnewbies.org">kernelnewbies-owner@kernelnewbies.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Kernelnewbies digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Re: Identifying whether a pci device is x1, x4, x8 or x16<br>
(John Chludzinski)<br>
2. Call Trace analysis doubt (Muni Sekhar)<br>
3. kimage structure (Ronit Halder)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Tue, 14 Jun 2016 17:46:13 -0400<br>
From: John Chludzinski <<a href="mailto:john.chludzinski@vivaldi.net">john.chludzinski@vivaldi.net</a>><br>
Subject: Re: Identifying whether a pci device is x1, x4, x8 or x16<br>
To: Kevin Wilson <<a href="mailto:wkevils@gmail.com">wkevils@gmail.com</a>><br>
Cc: <a href="mailto:kernelnewbies@kernelnewbies.org">kernelnewbies@kernelnewbies.org</a><br>
Message-ID: <<a href="mailto:a1bd4a3fa6f9ca7ae1b8ab7ae0cf288e@mail.vivaldi.net">a1bd4a3fa6f9ca7ae1b8ab7ae0cf288e@mail.vivaldi.net</a>><br>
Content-Type: text/plain; charset=US-ASCII; format=flowed<br>
<br>
Try: lshw<br>
<br>
On 2016-06-14 08:40, Kevin Wilson wrote:<br>
> Hi all,<br>
> Is there a way to find out whether a PCI device in a given Linux<br>
> machine is x1, x4, x8 or x16, in terms<br>
> of physical dimensions (without opening the box...)<br>
><br>
> Regards,<br>
> Kevin<br>
><br>
> _______________________________________________<br>
> Kernelnewbies mailing list<br>
> <a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
> <a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" rel="noreferrer" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Wed, 15 Jun 2016 11:56:35 +0530<br>
From: Muni Sekhar <<a href="mailto:munisekharrms@gmail.com">munisekharrms@gmail.com</a>><br>
Subject: Call Trace analysis doubt<br>
To: <a href="mailto:kernelnewbies@kernelnewbies.org">kernelnewbies@kernelnewbies.org</a><br>
Message-ID:<br>
<<a href="mailto:CAHhAz%2BhvVefKi%2Bh7j_eed5DrKPkQKeF3aphnSyxcxEoUqMMG%2BA@mail.gmail.com">CAHhAz+hvVefKi+h7j_eed5DrKPkQKeF3aphnSyxcxEoUqMMG+A@mail.gmail.com</a>><br>
Content-Type: text/plain; charset=UTF-8<br>
<br>
Hi,<br>
<br>
Let?s assume WARNING message says something like:<br>
<br>
<br>
[ 0.000000] Call Trace:<br>
<br>
[ 0.000000] [<ffffffff81762590>] dump_stack+0x45/0x56<br>
<br>
[ 0.000000] [<ffffffff8106dd2d>] warn_slowpath_common+0x7d/0xa0<br>
<br>
[ 0.000000] [<ffffffff8106dde4>] warn_slowpath_fmt_taint+0x44/0x50<br>
<br>
[ 0.000000] [<ffffffff8143329c>] ? acpi_tb_acquire_table+0x3e/0x6c<br>
<br>
[ 0.000000] [<ffffffff81765070>] warn_invalid_dmar+0x81/0x93<br>
<br>
[ 0.000000] [<ffffffff81d8989d>] detect_intel_iommu+0xe9/0x172<br>
<br>
[ 0.000000] [<ffffffff81d3c84f>] pci_iommu_alloc+0x4a/0x6c<br>
<br>
[ 0.000000] [<ffffffff81d4cb4b>] mem_init+0x17/0x9c<br>
<br>
[ 0.000000] [<ffffffff81d31e80>] start_kernel+0x23b/0x47d<br>
<br>
[ 0.000000] [<ffffffff81d31a4e>] ? set_init_arg+0x53/0x53<br>
<br>
[ 0.000000] [<ffffffff81d31120>] ? early_idt_handlers+0x120/0x120<br>
<br>
[ 0.000000] [<ffffffff81d315ee>] x86_64_start_reservations+0x2a/0x2c<br>
<br>
[ 0.000000] [<ffffffff81d31733>] x86_64_start_kernel+0x143/0x152<br>
<br>
[ 0.000000] ---[ end trace c32c0e307381ad8a ]---<br>
<br>
<br>
<br>
Few symbols in the above mentioned call trace are prefixed with ???<br>
(for e.g. ?early_idt_handlers\? set_init_arg\?<br>
acpi_tb_acquire_table), what does it mean?<br>
Does it needs to be considered while debugging the kernel module?<br>
<br>
<br>
<br>
Call Trace shows ?function+0xoffset/0xlength?. Does the<br>
0xoffset/0xlength changes if the module is built with ?g option and<br>
without ?g option?<br>
<br>
<br>
Thanks in Advance,<br>
<br>
--<br>
Thanks,<br>
Sekhar<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Wed, 15 Jun 2016 04:43:27 -0400<br>
From: Ronit Halder <<a href="mailto:ronit.crj@gmail.com">ronit.crj@gmail.com</a>><br>
Subject: kimage structure<br>
To: kernelnewbies <<a href="mailto:kernelnewbies@kernelnewbies.org">kernelnewbies@kernelnewbies.org</a>><br>
Message-ID:<br>
<<a href="mailto:CAAm8cU7-FJrg0Z3-DoR0bwzoH0az8%2BoFZmPBWY8d4C5nKUKoPw@mail.gmail.com">CAAm8cU7-FJrg0Z3-DoR0bwzoH0az8+oFZmPBWY8d4C5nKUKoPw@mail.gmail.com</a>><br>
Content-Type: text/plain; charset=UTF-8<br>
<br>
Hi,<br>
There is a member in "struct kimage" called "entry" in kexec.h.<br>
<br>
What does entry represents?<br>
<br>
regards,<br>
Ronit<br>
<br>
<br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
<a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" rel="noreferrer" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
<br>
<br>
End of Kernelnewbies Digest, Vol 67, Issue 13<br>
*********************************************<br>
</blockquote></div><br></div></div></div></div></div></div></div></div>