Kernelinfo Utility

Thekernelinfoutility extracts and displays information from.xofiles which can be used during host code development. This information includes hardware function names, arguments, offsets, and port data.

The following command options are available:

Table 1.kernalinfo Commands
Option Description
-h [ --help ] Print help message.
-x [ --xo_path ] Absolute path to XO file including file name and .xo extension
-l [ --log ] By default, information is displayed on the screen. Otherwise, you can use the--logoption to output the information as a file.
-j [ --json ] Output the file in JSON format.
[input_file] XO file. Specify the XO file positionally or use the--xo_pathoption.
[output_file] Output fromXilinxOpenCL™Compiler. Specify the output file positionally, or use the--logoption.

To run thekernelinfoutility, enter the following in a Linux terminal:

kernelinfo 

The output is divided into three sections:

  • Kernel Definitions
  • Arguments
  • Ports

The report generated by the following command is reviewed to help better understand the report content. Note that the report is broken down into specific sections for better understandability.

kernelinfo krnl_vadd.xo

Wherekrnl_vadd.xois a packaged kernel.