How To Install trace-cmd.x86_64 on Amazon Linux 2

In this tutorial we learn how to install trace-cmd.x86_64 in Amazon Linux 2. trace-cmd.x86_64 is A user interface to Ftrace

Introduction

In this tutorial we learn how to install trace-cmd.x86_64 on Amazon Linux 2.

What is trace-cmd.x86_64

The trace-cmd utility is a user interface to Ftrace. Instead of needing to use the debugfs directly, trace-cmd will handle of setting of options and tracers and will record into a data file.

We can use yum to install trace-cmd.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install trace-cmd.x86_64.

Install trace-cmd.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install trace-cmd.x86_64 using yum by running the following command:

sudo yum -y install trace-cmd.x86_64

How To Uninstall trace-cmd.x86_64 on Amazon Linux 2

To uninstall only the trace-cmd.x86_64 package we can use the following command:

sudo yum remove trace-cmd.x86_64

trace-cmd.x86_64 Package Contents on Amazon Linux 2

/etc/bash_completion.d/trace-cmd.bash
/etc/sysconfig/trace-cmd.conf
/usr/bin/trace-cmd
/usr/include/trace-cmd/event-parse.h
/usr/include/trace-cmd/trace-cmd.h
/usr/lib/systemd/system/trace-cmd.service
/usr/lib/udev/rules.d/98-trace-cmd.rules
/usr/lib64/libparsevent.so
/usr/lib64/libtracecmd.so
/usr/lib64/trace-cmd/plugins/plugin_blk.so
/usr/lib64/trace-cmd/plugins/plugin_cfg80211.so
/usr/lib64/trace-cmd/plugins/plugin_function.so
/usr/lib64/trace-cmd/plugins/plugin_hrtimer.so
/usr/lib64/trace-cmd/plugins/plugin_jbd2.so
/usr/lib64/trace-cmd/plugins/plugin_kmem.so
/usr/lib64/trace-cmd/plugins/plugin_kvm.so
/usr/lib64/trace-cmd/plugins/plugin_mac80211.so
/usr/lib64/trace-cmd/plugins/plugin_python.so
/usr/lib64/trace-cmd/plugins/plugin_sched_switch.so
/usr/lib64/trace-cmd/plugins/plugin_scsi.so
/usr/lib64/trace-cmd/plugins/plugin_tlb.so
/usr/lib64/trace-cmd/plugins/plugin_xen.so
/usr/lib64/trace-cmd/python/ctracecmd.so
/usr/lib64/trace-cmd/python/event-viewer.py
/usr/lib64/trace-cmd/python/event-viewer.pyc
/usr/lib64/trace-cmd/python/event-viewer.pyo
/usr/lib64/trace-cmd/python/tracecmd.py
/usr/lib64/trace-cmd/python/tracecmd.pyc
/usr/lib64/trace-cmd/python/tracecmd.pyo
/usr/lib64/trace-cmd/python/tracecmdgui.py
/usr/lib64/trace-cmd/python/tracecmdgui.pyc
/usr/lib64/trace-cmd/python/tracecmdgui.pyo
/usr/share/doc/trace-cmd-2.6.0
/usr/share/doc/trace-cmd-2.6.0/COPYING
/usr/share/doc/trace-cmd-2.6.0/COPYING.LIB
/usr/share/doc/trace-cmd-2.6.0/README
/usr/share/kernelshark/html
/usr/share/kernelshark/html/images
/usr/share/kernelshark/html/images/kshark-cursor-1.png
/usr/share/kernelshark/html/images/kshark-filter-advance-1.png
/usr/share/kernelshark/html/images/kshark-filter-del-adv.png
/usr/share/kernelshark/html/images/kshark-filter-event-adv-list.png
/usr/share/kernelshark/html/images/kshark-filter-events-sched.png
/usr/share/kernelshark/html/images/kshark-filter-events.png
/usr/share/kernelshark/html/images/kshark-filter-list-adv-irq.png
/usr/share/kernelshark/html/images/kshark-filter-sync-dialog.png
/usr/share/kernelshark/html/images/kshark-filter-sync-graph-1.png
/usr/share/kernelshark/html/images/kshark-filter-task-menu.png
/usr/share/kernelshark/html/images/kshark-filter.png
/usr/share/kernelshark/html/images/kshark-graph-info-line.png
/usr/share/kernelshark/html/images/kshark-graph-plot-area.png
/usr/share/kernelshark/html/images/kshark-graph-plot-title.png
/usr/share/kernelshark/html/images/kshark-list-adjust.png
/usr/share/kernelshark/html/images/kshark-list-enable-filter-1.png
/usr/share/kernelshark/html/images/kshark-list-graph-follow-1.png
/usr/share/kernelshark/html/images/kshark-list-graph-follow-2.png
/usr/share/kernelshark/html/images/kshark-list-info-area.png
/usr/share/kernelshark/html/images/kshark-open.png
/usr/share/kernelshark/html/images/kshark-plot-cpu-1.png
/usr/share/kernelshark/html/images/kshark-plot-cpu-2.png
/usr/share/kernelshark/html/images/kshark-plot-cpu-result.png
/usr/share/kernelshark/html/images/kshark-plot-menu.png
/usr/share/kernelshark/html/images/kshark-plot-task-measure-preempt.png
/usr/share/kernelshark/html/images/kshark-plot-task-measure.png
/usr/share/kernelshark/html/images/kshark-plot-task-result.png
/usr/share/kernelshark/html/images/kshark-plot-task-select.png
/usr/share/kernelshark/html/images/kshark-plot-task-zoom-1.png
/usr/share/kernelshark/html/images/kshark-select-a-1.png
/usr/share/kernelshark/html/images/kshark-select-b-1.png
/usr/share/kernelshark/html/images/kshark-unsync-events.png
/usr/share/kernelshark/html/images/kshark-zoom-in-2.png
/usr/share/kernelshark/html/images/kshark-zoom-in-3.png
/usr/share/kernelshark/html/images/kshark-zoom-in-select.png
/usr/share/kernelshark/html/images/kshark-zoom-out-select.png
/usr/share/kernelshark/html/index.html
/usr/share/man/man1/kernelshark.1.gz
/usr/share/man/man1/trace-cmd-check-events.1.gz
/usr/share/man/man1/trace-cmd-extract.1.gz
/usr/share/man/man1/trace-cmd-hist.1.gz
/usr/share/man/man1/trace-cmd-list.1.gz
/usr/share/man/man1/trace-cmd-listen.1.gz
/usr/share/man/man1/trace-cmd-mem.1.gz
/usr/share/man/man1/trace-cmd-options.1.gz
/usr/share/man/man1/trace-cmd-profile.1.gz
/usr/share/man/man1/trace-cmd-record.1.gz
/usr/share/man/man1/trace-cmd-report.1.gz
/usr/share/man/man1/trace-cmd-reset.1.gz
/usr/share/man/man1/trace-cmd-restore.1.gz
/usr/share/man/man1/trace-cmd-show.1.gz
/usr/share/man/man1/trace-cmd-snapshot.1.gz
/usr/share/man/man1/trace-cmd-split.1.gz
/usr/share/man/man1/trace-cmd-stack.1.gz
/usr/share/man/man1/trace-cmd-start.1.gz
/usr/share/man/man1/trace-cmd-stat.1.gz
/usr/share/man/man1/trace-cmd-stop.1.gz
/usr/share/man/man1/trace-cmd-stream.1.gz
/usr/share/man/man1/trace-cmd.1.gz
/usr/share/man/man5/trace-cmd.dat.5.gz

References

Summary

In this tutorial we learn how to install trace-cmd.x86_64 on Amazon Linux 2 using yum.