Development

From Perf Wiki
Revision as of 09:29, 10 March 2023 by Madhu Patel (Talk | contribs)

Jump to: navigation, search

Contents

Development

Installation Guide

You'll need to install `perf` on the system. `perf` uses CPU performance counters( Performance Monitoring Counters or PMCs).

1)Install Required Packages like libelf-dev libdw-dev binutils-dev libaudit-dev 
  Command- sudo apt-get install build-essential libelf-dev libdw-dev binutils-dev 
  libaudit-dev 
2) Download the Source code for perf-tools v6.3 using the following command
   git clone https://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git/
3) Install perf command- Perf command is available in package linux-tools-common , 
   linux-intel-iotg-tools-common`, etc. Hence, install any of these. 
4) Run `make` command to build the project
   4.1) It may show an error since the config file is not set and has to be changed. 
        Run `make xconfig`  for this. 
   4.2) We will also need to install qt5 for this. 
        Install it using `sudo apt-get install qtbase5-dev` OR `sudo apt install qt5*` 
        and set the path using `export PKG_CONFIG_PATH=
        /usr/lib/x86_64-linux-gnu/pkgconfig:/usr/share/pkgconfig`
   4.3) Check if qt5 has been installed properly using `qmake --version` 
   4.4) Now, Finally run `make xconfig` and it will work properly.
5) Go to the root directory of the kernel and run `perf test`. You will see tests 
   passing, skipping, or failing.

Maintainer Trees

Kernel

tip.git perf/core

Tool

perf-tools for the current release. Merged to linux-next.

perf-tools-next staging for the next release.

Design

design.txt


Latest source tar balls

mirror

Personal tools