The following config options should be enabled in order to build the apm driver:

Linux Drivers

Release Date
2023-07-22
config UIO_XILINX_APM
    tristate "Xilinx AXI Performance Monitor driver"
    depends on MICROBLAZE || ARCH_ZYNQ || ARCH_ZYNQMP
    help
      This driver is developed for AXI Performance Monitor IP, designed to
      monitor AXI4 traffic for performance analysis of AXI bus in the
      system. Driver maps HW registers and parameters to userspace.
 
      To compile this driver as a module, choose M here; the module
      will be called uio_xilinx_apm.