<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Hi,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
i am trying to run kdump on x86 with 5.5.6 kernel but i am getting following errors, can someone please tell whats going wrong here. I have lkdtm config in the kernel and installed kexec-tools as well what could be the cause of issue ???<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
ltp/testcases/kdump/lib/lkdtm/lkdtm.c: In function ‘jp_do_irq’: </div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<div>/home/pankaj-hmem/ltp-r2.4/ltp/testcases/kdump/lib/lkdtm/lkdtm.c:139:2: error: implicit declaration of function ‘jprobe_return’; did you mean ‘probe_irq_on’? [-Werror=implicit-function-declaration]</div>
<div>  jprobe_return();</div>
<div>  ^~~~~~~~~~~~~</div>
<div>  probe_irq_on</div>
<div>/home/pankaj-hmem/ltp-r2.4/ltp/testcases/kdump/lib/lkdtm/lkdtm.c: In function ‘lkdtm_lookup_name’:</div>
<div>/<b>home/pankaj-hmem/ltp-r2.4/ltp/testcases/kdump/lib/lkdtm/lkdtm.c:295:10: error: invalid use of undefined type ‘struct jprobe’</b></div>
<div><b>   *(lkdtm.kp.addr) = addr;</b></div>
<div>          ^</div>
<div>/home/pankaj-hmem/ltp-r2.4/ltp/testcases/kdump/lib/lkdtm/lkdtm.c:296:8: <b>error: invalid use of undefined type ‘struct jprobe’</b></div>
<div><b>   lkdtm.entry = JPROBE_ENTRY(entry);</b></div>
<div>        ^</div>
<div>/home/pankaj-hmem/ltp-r2.4/ltp/testcases/kdump/lib/lkdtm/lkdtm.c:296:17: <b>
error: implicit declaration of function ‘JPROBE_ENTRY’; did you mean ‘KPROBE_REENTER’? [-Werror=implicit-function-declaration]</b></div>
<div><b>   lkdtm.entry = JPROBE_ENTRY(entry);</b></div>
<div><b>                 ^~~~~~~~~~~~</b></div>
<div>                 KPROBE_REENTER</div>
<div>/home/pankaj-hmem/ltp-r2.4/ltp/testcases/kdump/lib/lkdtm/lkdtm.c: In function ‘lkdtm_module_init’:</div>
<div>/home/pankaj-hmem/ltp-r2.4/ltp/testcases/kdump/lib/lkdtm/lkdtm.c:468:13:<b> error: implicit declaration of function ‘register_jprobe’; did you mean ‘register_kprobe’? [-Werror=implicit-function-declaration]</b></div>
<div><b>  if ((ret = register_jprobe(&lkdtm)) < 0) {</b></div>
<div>             ^~~~~~~~~~~~~~~</div>
<div>             register_kprobe</div>
<div>/home/pankaj-hmem/ltp-r2.4/ltp/testcases/kdump/lib/lkdtm/lkdtm.c: In function ‘lkdtm_module_exit’:</div>
<div>/home/pankaj-hmem/ltp-r2.4/ltp/testcases/kdump/lib/lkdtm/lkdtm.c:480:2: <b>error: implicit declaration of function ‘unregister_jprobe’; did you mean ‘unregister_kprobe’? [-Werror=implicit-function-declaration]</b></div>
<div><b>  unregister_jprobe(&lkdtm);</b></div>
<div><b>  ^~~~~~~~~~~~~~~~~</b></div>
<div>  unregister_kprobe</div>
<div>/home/pankaj-hmem/ltp-r2.4/ltp/testcases/kdump/lib/lkdtm/lkdtm.c: At top level:</div>
<div>/home/pankaj-hmem/ltp-r2.4/ltp/testcases/kdump/lib/lkdtm/lkdtm.c:110:22: <b>
error: storage size of ‘lkdtm’ isn’t known</b></div>
<div><b> static struct jprobe lkdtm;</b></div>
<div><b>                      ^~~~~</b></div>
<div>cc1: some warnings being treated as errors</div>
<div>scripts/Makefile.build:265: recipe for target '/home/pankaj-hmem/ltp-r2.4/ltp/testcases/kdump/lib/lkdtm/lkdtm.o' failed</div>
<div>make[3]: *** [/home/pankaj-hmem/ltp-r2.4/ltp/testcases/kdump/lib/lkdtm/lkdtm.o] Error 1</div>
<div>Makefile:1693: recipe for target '/home/pankaj-hmem/ltp-r2.4/ltp/testcases/kdump/lib/lkdtm' failed</div>
<div>make[2]: *** [/home/pankaj-hmem/ltp-r2.4/ltp/testcases/kdump/lib/lkdtm] Error 2</div>
<div>make[2]: Leaving directory '/usr/ksrc/linux-5.5.6'</div>
<div>Makefile:11: recipe for target 'default' failed</div>
<div>make[1]: *** [default] Error 2</div>
<div>make[1]: Leaving directory '/home/pankaj-hmem/ltp-r2.4/ltp/testcases/kdump/lib/lkdtm'</div>
<div>Makefile:2: recipe for target 'default' failed</div>
<div>make: *** [default] Error 2</div>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Thanks<br>
</div>
</body>
</html>