# Installing perf on linux 4 tegra for Jetson AGX

**URL:** <https://forums.developer.nvidia.com/t/installing-perf-on-linux-4-tegra-for-jetson-agx/107757>\
**Category:** Jetson AGX Xavier\
**Created:** [November 20, 2019, 8:52pm UTC](https://forums.developer.nvidia.com/t/installing-perf-on-linux-4-tegra-for-jetson-agx/107757 "2019-11-20T20:52:52Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![apache8080](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@apache8080](https://forums.developer.nvidia.com/u/apache8080)\
**Post date:** [November 20, 2019, 8:52pm UTC](https://forums.developer.nvidia.com/t/installing-perf-on-linux-4-tegra-for-jetson-agx/107757/1 "2019-11-20T20:52:52Z")

</div>

I want to use the perf profiling tool on the Jetson AGX. I am using l4t version 4.9.140-tegra and tried following some of the other forums for Jetson TX2 but none of those seemed to work. Also if I just apt-install linux-tools and use the perf that comes with that it says the following:

```auto
WARNING: perf not found for kernel 4.9.140

  You may need to install the following packages for this specific kernel:
    linux-tools-4.9.140-tegra
    linux-cloud-tools-4.9.140-tegra

```

And of course linux-tools-4.9.140-tegra doesn’t exist as a package.

---

<div class="post-metadata">

**Author:** ![Honey\_Patouceul](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/honey_patouceul/32/389777_2.png) [@Honey\_Patouceul](https://forums.developer.nvidia.com/u/Honey_Patouceul)\
**Post date:** [November 20, 2019, 8:57pm UTC](https://forums.developer.nvidia.com/t/installing-perf-on-linux-4-tegra-for-jetson-agx/107757/2 "2019-11-20T20:57:36Z")

</div>

You may try [this](https://devtalk.nvidia.com/default/topic/1035531/jetson-tx2/installing-linux-performance-monitoring-tools-on-jetson-tx2/post/5262972/#5262972). Obviously you would adapt for your kernel version.

---

<div class="post-metadata">

**Author:** ![apache8080](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@apache8080](https://forums.developer.nvidia.com/u/apache8080)\
**Post date:** [November 20, 2019, 8:59pm UTC](https://forums.developer.nvidia.com/t/installing-perf-on-linux-4-tegra-for-jetson-agx/107757/3 "2019-11-20T20:59:56Z")

</div>

When I tried that I get the following error:

```auto
BUILD: Doing 'make -j4' parallel build
Makefile.perf:6: ../scripts/utilities.mak: No such file or directory
make[1]: *** No rule to make target '../scripts/utilities.mak'. Stop.
Makefile:68: recipe for target 'all' failed
make: *** [all] Error 2

```

Also I had to use this path: /usr/src/linux-headers-4.9.140-tegra-linux\_x86\_64/kernel-4.9/tools/perf

---

<div class="post-metadata">

**Author:** ![Honey\_Patouceul](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/honey_patouceul/32/389777_2.png) [@Honey\_Patouceul](https://forums.developer.nvidia.com/u/Honey_Patouceul)\
**Post date:** [November 20, 2019, 9:05pm UTC](https://forums.developer.nvidia.com/t/installing-perf-on-linux-4-tegra-for-jetson-agx/107757/4 "2019-11-20T21:05:57Z")

</div>

The path looks wrong…you are using x86 kernel source. It should be tegra version. This was supposed to be done on Jetson, not on host. On Jetson, it’s unexpected that you have the x86 kernel headers.

---

<div class="post-metadata">

**Author:** ![apache8080](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@apache8080](https://forums.developer.nvidia.com/u/apache8080)\
**Post date:** [November 20, 2019, 9:17pm UTC](https://forums.developer.nvidia.com/t/installing-perf-on-linux-4-tegra-for-jetson-agx/107757/5 "2019-11-20T21:17:04Z")

</div>

I get the same exact error when I use this path: /usr/src/linux-headers-4.9.140-tegra-ubuntu18.04\_aarch64/kernel-4.9/tools/perf

---

<div class="post-metadata">

**Author:** ![apache8080](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@apache8080](https://forums.developer.nvidia.com/u/apache8080)\
**Post date:** [November 21, 2019, 8:12pm UTC](https://forums.developer.nvidia.com/t/installing-perf-on-linux-4-tegra-for-jetson-agx/107757/6 "2019-11-21T20:12:22Z")

</div>

Any update on this? This is time critical for a project I am working on.

---

<div class="post-metadata">

**Author:** ![Honey\_Patouceul](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/honey_patouceul/32/389777_2.png) [@Honey\_Patouceul](https://forums.developer.nvidia.com/u/Honey_Patouceul)\
**Post date:** [November 21, 2019, 9:12pm UTC](https://forums.developer.nvidia.com/t/installing-perf-on-linux-4-tegra-for-jetson-agx/107757/7 "2019-11-21T21:12:17Z")

</div>

I have quickly tried on my Xavier R32.2.1 and seen the same. It seems building from headers is not the correct way, it is rather supposed to be built from kernel source instead. That also failed as far I have been able to try, but haven’t had time to investigate this further. You may try on your side and let us know.

---

<div class="post-metadata">

**Author:** ![apache8080](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@apache8080](https://forums.developer.nvidia.com/u/apache8080)\
**Post date:** [November 21, 2019, 9:43pm UTC](https://forums.developer.nvidia.com/t/installing-perf-on-linux-4-tegra-for-jetson-agx/107757/8 "2019-11-21T21:43:24Z")

</div>

Ok thanks for the help.

---

<div class="post-metadata">

**Author:** ![TomNVIDIA](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/tomnvidia/32/14181_2.png) [@TomNVIDIA](https://forums.developer.nvidia.com/u/TomNVIDIA)\
**Post date:** [October 18, 2021, 6:23pm UTC](https://forums.developer.nvidia.com/t/installing-perf-on-linux-4-tegra-for-jetson-agx/107757/9 "2021-10-18T18:23:38Z")

</div>

Closed on October 18, 2021, 6:23pm UTC


