fatal error: linux/tegra_profiler.h: No such file or directory

Hi,everyone

I need to install a device diriver on TX2. I followed the steps of (https://github.com/InES-HPMM/linux-l4t-4.9/wiki/customKernelCompilation). When I execute the command “make Image”, the system reports an error(“fatal error: linux/tegra_profiler.h: No such file or directory”)

How can I get this file?

  1. Sorry that this tool is not maintained by NV. I think you could file a issue on his github.

  2. For our official way to build a kernel module/image, please refer to L4T document
    https://docs.nvidia.com/jetson/archives/l4t-archived/l4t-322/index.html

I guess you are missing this header
./linux-headers-4.9.140-tegra-ubuntu18.04_aarch64/nvidia/include/linux/tegra_profiler.h