Building a kernel that supports the PAI facility

6.18 LPAR mode z/VM guest KVM guest

Select the common code kernel configuration option CONFIG_PERF_EVENTS to build a kernel that supports the CPU Processor Activity Instrumentation Facility (PAI).

Kernel builders: This information is intended for those who want to build their own kernel. Be aware that both compiling your own kernel or recompiling an existing distribution usually means that you have to maintain your kernel yourself.

Figure 1 shows where to find the CONFIG_PERF_EVENTS option in the kernel configuration menu.

Figure 1. Kernel configuration menu options for performance events
 General setup --->
    ...
    Kernel Performance Events And Counters --->
       Kernel performance events and counters          (CONFIG_PERF_EVENTS)

The CONFIG_PERF_EVENTS option enables kernel support for the performance events that are provided by various hardware and software platforms, including the z/Architecture® hardware.