Hi,

I am having some difficulty installing Performance Inspector on a 64-bit S390  machine running RHEL 6. tinstall.app completes successfully, but when I try to run tinstall.drv, I get the following errors:

Building and installing the kernel device driver ...
make -C /lib/modules/2.6.32-279.19.1.el6.s390x/build M=/opt/ibmperf/src/driver clean
make[1]: Entering directory `/usr/src/kernels/2.6.32-279.19.1.el6.s390x'
  CLEAN   /opt/ibmperf/src/driver/.tmp_versions
make[1]: Leaving directory `/usr/src/kernels/2.6.32-279.19.1.el6.s390x'
rm -f  /opt/ibmperf/src/driver/hooks.h
make -C /lib/modules/2.6.32-279.19.1.el6.s390x/build M=/opt/ibmperf/src/driver modules
make[1]: Entering directory `/usr/src/kernels/2.6.32-279.19.1.el6.s390x'
  CC [M]  /opt/ibmperf/src/driver/pi_init.o
In file included from /opt/ibmperf/src/driver/perfdd_linux.h:76,
                 from /opt/ibmperf/src/driver/pi_init.c:65:
include/linux/irq.h: In function ‚init_desc_masks‚:
include/linux/irq.h:463: error: dereferencing pointer to incomplete type
include/linux/irq.h: In function ‚free_desc_masks‚:
include/linux/irq.h:494: error: dereferencing pointer to incomplete type
make[2]: *** [/opt/ibmperf/src/driver/pi_init.o] Error 1
make[1]: *** [_module_/opt/ibmperf/src/driver] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.32-279.19.1.el6.s390x'
make: *** [default] Error 2
Install pitrace.ko in: /lib/modules/2.6.32-279.19.1.el6.s390x
make -C /lib/modules/2.6.32-279.19.1.el6.s390x/build M=/opt/ibmperf/src/driver modules_install
make[1]: Entering directory `/usr/src/kernels/2.6.32-279.19.1.el6.s390x'
  DEPMOD  2.6.32-279.19.1.el6.s390x
make[1]: Leaving directory `/usr/src/kernels/2.6.32-279.19.1.el6.s390x'
insmod: can't read '/lib/modules/2.6.32-279.19.1.el6.s390x/extra/pidd.ko': No such file or directory
=========================================================================
=
= Performance Inspector driver set up complete.
=
=========================================================================

A potential workaround I found was to include interrupt.h instead of irq.h in perfdd_linux.h, but this also gives errors:

Building and installing the kernel device driver ...
make -C /lib/modules/2.6.32-279.19.1.el6.s390x/build M=/opt/ibmperf/src/driver clean
make[1]: Entering directory `/usr/src/kernels/2.6.32-279.19.1.el6.s390x'
  CLEAN   /opt/ibmperf/src/driver/.tmp_versions
make[1]: Leaving directory `/usr/src/kernels/2.6.32-279.19.1.el6.s390x'
rm -f  /opt/ibmperf/src/driver/hooks.h
make -C /lib/modules/2.6.32-279.19.1.el6.s390x/build M=/opt/ibmperf/src/driver modules
make[1]: Entering directory `/usr/src/kernels/2.6.32-279.19.1.el6.s390x'
  CC [M]  /opt/ibmperf/src/driver/pi_init.o
  CC [M]  /opt/ibmperf/src/driver/pi_hash.o
  CC [M]  /opt/ibmperf/src/driver/pi_hooks.o
/opt/ibmperf/src/driver/pi_hooks.c: In function ‚write_parent_tree‚:
/opt/ibmperf/src/driver/pi_hooks.c:174: warning: the frame size of 1600 bytes is larger than 1024 bytes
  CC [M]  /opt/ibmperf/src/driver/scscommon.o
  CC [M]  /opt/ibmperf/src/driver/s390/pi_cpuinit.o
/opt/ibmperf/src/driver/s390/pi_cpuinit.c: In function ‚pitrace_cpu_init‚:
/opt/ibmperf/src/driver/s390/pi_cpuinit.c:45: error: ‚struct _lowcore‚ has no member named ‚cpu_data‚
/opt/ibmperf/src/driver/s390/pi_cpuinit.c:47: error: dereferencing pointer to incomplete type
/opt/ibmperf/src/driver/s390/pi_cpuinit.c:49: error: dereferencing pointer to incomplete type
/opt/ibmperf/src/driver/s390/pi_cpuinit.c:85: error: dereferencing pointer to incomplete type
make[2]: *** [/opt/ibmperf/src/driver/s390/pi_cpuinit.o] Error 1
make[1]: *** [_module_/opt/ibmperf/src/driver] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.32-279.19.1.el6.s390x'
make: *** [default] Error 2
Install pitrace.ko in: /lib/modules/2.6.32-279.19.1.el6.s390x
make -C /lib/modules/2.6.32-279.19.1.el6.s390x/build M=/opt/ibmperf/src/driver modules_install
make[1]: Entering directory `/usr/src/kernels/2.6.32-279.19.1.el6.s390x'
  DEPMOD  2.6.32-279.19.1.el6.s390x
make[1]: Leaving directory `/usr/src/kernels/2.6.32-279.19.1.el6.s390x'
insmod: can't read '/lib/modules/2.6.32-279.19.1.el6.s390x/extra/pidd.ko': No such file or directory
=========================================================================
=
= Performance Inspector driver set up complete.
=
=========================================================================

Any help would be greatly appreciated.

Regards,
Geza Geleji

Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 741598.
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU