error: 'MIPS_CPU_ISA_M32R6' undeclared
Question
stap -g -a mips -p4 -B CROSS_COMPILE=mipsel-linux- \
-m hello -e 'probe begin {print("hello! \n") exit()}'
In file included from /usr/local/share/systemtap/runtime/linux/../regs.c:20,
from /usr/local/share/systemtap/runtime/linux/runtime.h:323,
from /usr/local/share/systemtap/runtime/runtime.h:26,
from /tmp/stap8UqUef/hello_src.c:21:
/usr/local/share/systemtap/runtime/linux/../linux/regs.c: In function '_stp_print_regs':
/usr/local/share/systemtap/runtime/linux/../linux/regs.c:394: error: 'MIPS_CPU_ISA_M32R6' undeclared (first use in this function)
/usr/local/share/systemtap/runtime/linux/../linux/regs.c:394: error: (Each undeclared identifier is reported only once
/usr/local/share/systemtap/runtime/linux/../linux/regs.c:394: error: for each function it appears in.)
/usr/local/share/systemtap/runtime/linux/../linux/regs.c:395: error: 'MIPS_CPU_ISA_M64R6' undeclared (first use in this function)
cc1: warnings being treated as errors
At top level:
cc1: error: unrecognized command line option "-Wno-infinite-recursion"
make[1]: *** [scripts/Makefile.build:308: /tmp/stap8UqUef/hello_src.o] Error 1
make: *** [Makefile:1240: _module_/tmp/stap8UqUef] Error 2
WARNING: kbuild exited with status: 2
Pass 4: compilation failed. [man error::pass4]
Kernel version 3.10.90 is within tested range 2.6.32 ... 6.6-rc1
Answer
arch/mips/include/asm/cpu.h
#define MIPS_CPU_ISA_M32R6 0x00000100
#define MIPS_CPU_ISA_M64R6 0x00000200