0

In Arch Linux, I want to use the trace-cmd, the front-end of Ftrace. But unfortunately, it doesn't exist:

# pacman -S trace-cmd
error: target not found: trace-cmd

I try to find in Arch Linux package site, still no result. So is there any out-of-box front-end provided by Arch Linux?

Nan Xiao
  • 16,671
  • 18
  • 103
  • 164

1 Answers1

0

After search and experiment, I find there are 2 methods:
(1) Use the source code of trace-cmd, and just clone & make:

$ git clone https://kernel.googlesource.com/pub/scm/linux/kernel/git/rostedt/trace-cmd/  
$ cd trace-cmd
$ make
$ make install

(2) The trace-cmd is in user repository:

$ git clone https://aur.archlinux.org/trace-cmd.git
$ cd trace-cmd
$ makepkg -si
Nan Xiao
  • 16,671
  • 18
  • 103
  • 164