All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] kdump failure on x86
@ 2021-03-23 14:27 Pankaj Vinodrao Joshi
  2021-03-24  8:27 ` Joerg Vehlow
  0 siblings, 1 reply; 4+ messages in thread
From: Pankaj Vinodrao Joshi @ 2021-03-23 14:27 UTC (permalink / raw)
  To: ltp

Hi,
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 ???


ltp/testcases/kdump/lib/lkdtm/lkdtm.c: In function ?jp_do_irq?:
/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]
  jprobe_return();
  ^~~~~~~~~~~~~
  probe_irq_on
/home/pankaj-hmem/ltp-r2.4/ltp/testcases/kdump/lib/lkdtm/lkdtm.c: In function ?lkdtm_lookup_name?:
/home/pankaj-hmem/ltp-r2.4/ltp/testcases/kdump/lib/lkdtm/lkdtm.c:295:10: error: invalid use of undefined type ?struct jprobe?
   *(lkdtm.kp.addr) = addr;
          ^
/home/pankaj-hmem/ltp-r2.4/ltp/testcases/kdump/lib/lkdtm/lkdtm.c:296:8: error: invalid use of undefined type ?struct jprobe?
   lkdtm.entry = JPROBE_ENTRY(entry);
        ^
/home/pankaj-hmem/ltp-r2.4/ltp/testcases/kdump/lib/lkdtm/lkdtm.c:296:17: error: implicit declaration of function ?JPROBE_ENTRY?; did you mean ?KPROBE_REENTER?? [-Werror=implicit-function-declaration]
   lkdtm.entry = JPROBE_ENTRY(entry);
                 ^~~~~~~~~~~~
                 KPROBE_REENTER
/home/pankaj-hmem/ltp-r2.4/ltp/testcases/kdump/lib/lkdtm/lkdtm.c: In function ?lkdtm_module_init?:
/home/pankaj-hmem/ltp-r2.4/ltp/testcases/kdump/lib/lkdtm/lkdtm.c:468:13: error: implicit declaration of function ?register_jprobe?; did you mean ?register_kprobe?? [-Werror=implicit-function-declaration]
  if ((ret = register_jprobe(&lkdtm)) < 0) {
             ^~~~~~~~~~~~~~~
             register_kprobe
/home/pankaj-hmem/ltp-r2.4/ltp/testcases/kdump/lib/lkdtm/lkdtm.c: In function ?lkdtm_module_exit?:
/home/pankaj-hmem/ltp-r2.4/ltp/testcases/kdump/lib/lkdtm/lkdtm.c:480:2: error: implicit declaration of function ?unregister_jprobe?; did you mean ?unregister_kprobe?? [-Werror=implicit-function-declaration]
  unregister_jprobe(&lkdtm);
  ^~~~~~~~~~~~~~~~~
  unregister_kprobe
/home/pankaj-hmem/ltp-r2.4/ltp/testcases/kdump/lib/lkdtm/lkdtm.c: At top level:
/home/pankaj-hmem/ltp-r2.4/ltp/testcases/kdump/lib/lkdtm/lkdtm.c:110:22: error: storage size of ?lkdtm? isn?t known
 static struct jprobe lkdtm;
                      ^~~~~
cc1: some warnings being treated as errors
scripts/Makefile.build:265: recipe for target '/home/pankaj-hmem/ltp-r2.4/ltp/testcases/kdump/lib/lkdtm/lkdtm.o' failed
make[3]: *** [/home/pankaj-hmem/ltp-r2.4/ltp/testcases/kdump/lib/lkdtm/lkdtm.o] Error 1
Makefile:1693: recipe for target '/home/pankaj-hmem/ltp-r2.4/ltp/testcases/kdump/lib/lkdtm' failed
make[2]: *** [/home/pankaj-hmem/ltp-r2.4/ltp/testcases/kdump/lib/lkdtm] Error 2
make[2]: Leaving directory '/usr/ksrc/linux-5.5.6'
Makefile:11: recipe for target 'default' failed
make[1]: *** [default] Error 2
make[1]: Leaving directory '/home/pankaj-hmem/ltp-r2.4/ltp/testcases/kdump/lib/lkdtm'
Makefile:2: recipe for target 'default' failed
make: *** [default] Error 2



Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20210323/27c3ad55/attachment-0001.htm>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [LTP] kdump failure on x86
  2021-03-23 14:27 [LTP] kdump failure on x86 Pankaj Vinodrao Joshi
@ 2021-03-24  8:27 ` Joerg Vehlow
  2021-03-24  9:26   ` Pankaj Vinodrao Joshi
  2021-04-08 10:37   ` Cyril Hrubis
  0 siblings, 2 replies; 4+ messages in thread
From: Joerg Vehlow @ 2021-03-24  8:27 UTC (permalink / raw)
  To: ltp

Hi,

On 3/23/2021 3:27 PM, Pankaj Vinodrao Joshi wrote:
> Hi,
> 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 ???
It looks like the testcase is hopelessly outdated... The jprobe 
interface was removed in linux 4.15 back in 2017 [1]
The tests needs a major rewrite, to work on kernels newer than 4.15.

J?rg


[1] 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=590c845930457d25d27dc1fdd964a1ce18ef2d7d

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [LTP] kdump failure on x86
  2021-03-24  8:27 ` Joerg Vehlow
@ 2021-03-24  9:26   ` Pankaj Vinodrao Joshi
  2021-04-08 10:37   ` Cyril Hrubis
  1 sibling, 0 replies; 4+ messages in thread
From: Pankaj Vinodrao Joshi @ 2021-03-24  9:26 UTC (permalink / raw)
  To: ltp

Got it, thanks!

________________________________
From: Joerg Vehlow <lkml@jv-coder.de>
Sent: Wednesday, March 24, 2021 1:57 PM
To: Pankaj Vinodrao Joshi <Pankaj.VJ@exaleapsemi.com>; ltp@lists.linux.it <ltp@lists.linux.it>
Subject: Re: [LTP] kdump failure on x86

Hi,

On 3/23/2021 3:27 PM, Pankaj Vinodrao Joshi wrote:
> Hi,
> 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 ???
It looks like the testcase is hopelessly outdated... The jprobe
interface was removed in linux 4.15 back in 2017 [1]
The tests needs a major rewrite, to work on kernels newer than 4.15.

J?rg


[1]
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=590c845930457d25d27dc1fdd964a1ce18ef2d7d
[EXT]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20210324/96084398/attachment-0001.htm>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [LTP] kdump failure on x86
  2021-03-24  8:27 ` Joerg Vehlow
  2021-03-24  9:26   ` Pankaj Vinodrao Joshi
@ 2021-04-08 10:37   ` Cyril Hrubis
  1 sibling, 0 replies; 4+ messages in thread
From: Cyril Hrubis @ 2021-04-08 10:37 UTC (permalink / raw)
  To: ltp

Hi!
> > 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 ???
> It looks like the testcase is hopelessly outdated... The jprobe 
> interface was removed in linux 4.15 back in 2017 [1]
> The tests needs a major rewrite, to work on kernels newer than 4.15.

I unless anybody wants to invest time into the rewrite we can remove
these as well.

-- 
Cyril Hrubis
chrubis@suse.cz

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-04-08 10:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-23 14:27 [LTP] kdump failure on x86 Pankaj Vinodrao Joshi
2021-03-24  8:27 ` Joerg Vehlow
2021-03-24  9:26   ` Pankaj Vinodrao Joshi
2021-04-08 10:37   ` Cyril Hrubis

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.