How to install perf environment

I’m trying to install perf on my DRIVE PX2 device. uname -r returns: 4.4.38-rt49-tegra when i run the perf command I get

WARNING: perf not found for kernel 4.4.38-rt49

You may need to install the following packages for this specific kernel:

You may also want to install one of the following packages to keep up to date:

when I try sudo apt-get install linux-tools-tegra it goes through reading package lists and building dependency tree then states: E: Unable to locate package linux-tools-tegra.

Please help me.

What can I do to solve this problem?
I am very embarrassed in a stuck condition.

Suggest to use tegrastats instead.

For perf, you need to follow the documents to compile it alone with vibrante source code.

We gave up.


You guys have given up.

Thank you.

Perf requires some linux kernel configurations to work, which are not enabled on vibrante.

I downloaded a similar linux kernel and compiled perf and tried to run it and got this

The sys_perf_event_open() syscall returned with 16 (Device or resource busy) for event (cycles:u).
/bin/dmesg may provide additional information.
No CONFIG_PERF_EVENTS=y kernel support configured?

It sounds like something that could be changed on the system? Is it possible?