Linux and FreeBSD - Linux and FreeBSD - 57368

uProf User Guide

Document ID
57368
Release Date
2025-06-09
Revision
5.1 English

Some example commands are listed here.

Table 1. Example table
Task Description Command
Collect IPC data from core 0 for the duration of 60 seconds # ./AMDuProfPcm -m ipc -c core=0 -d 60 -o /tmp/pcmdata.csv
Collect IPC/L3 metrics for CCX=0 for the duration of 60 seconds # ./AMDuProfPcm -m ipc,l3 -c ccx=0 -d 60 -o /tmp/pcmdata.csv
Collect only the memory bandwidth across all the UMCs for the duration of 60 seconds and save the output in /tmp/pcmdata.csv file # ./AMDuProfPcm -m memory -a -d 60 -o /tmp/pcmdata.csv
Collect IPC data for 60 seconds from all the cores # ./AMDuProfPcm -m ipc -a -d 60 -o /tmp/pcmdata.csv
Collect IPC data from core 0 and run the program in core 0 # ./AMDuProfPcm -m ipc -c core=0 -o /tmp/pcmdata.csv -- /usr/bin/taskset -c 0 <application>
Collect IPC data from cores 0-7 and run the application on cores 0-3 # ./AMDuProfPcm -m ipc -c core=0-7 -o /tmp/pcmdata.csv -- /usr/bin/taskset -c 0-3<application>
Collect IPC and data l2 data from core 0 and report the cumulative (not timeseries) and run the program in core 0 # ./AMDuProfPcm -m ipc,l2 -c core=0 -o /tmp/pcmdata.csv -C -- /usr/bin/taskset -c 0<application>
List the supported raw Core PMC events # ./AMDuProfPcm -l
Print the name, description, and the available unit masks for the specified event # ./AMDuProfPcm -z pmcx03
Compare two sessions ./AMDuProfPcm compare <output dir path 1>,<output dir path 2>
Note: Session compare requires output directory generated with -O <output dir>. It does not support comparison of csv reports generated with -o <output csv file>.
Collect and generate roofline HTML report ./AMDuProfPcm roofline -O /tmp/ <application>
Collect default set of metrics, roofline and power data from all the cores of the system for 60 seconds and generate timeseries, cumulative, and roofline CSV and HTML reports ./AMDuProfPcm profile –report-roofline --collect-power -O /tmp -d 60
Collect ipc metrics from all the core in the system for 30 seconds and generate timeseries and cumulative CSV and HTML reports in the output directory ./AMDuProfPcm profile -m ipc -O /tmp -a -d 30