cancel
Showing results for 
Search instead for 
Did you mean: 

Server Processors

fwyzard
Journeyman III

uProf 5.0 does not detect BCC (on RHEL 8.7)

Hi,

I just installed uProf 5.0 on a system running RHEL 8.7, and it fails to detect the BCC library and tools:

$ sudo /opt/AMDuProf_5.0-1479/bin/AMDuProfCLI info --bpf
/opt/AMDuProf_5.0-1479/bin/AMDuProfCLI

[OS-Trace Info]
BPF Supported : Yes
BCC Installed : No
OS Tracing Supported : No
Please install the BCC library to support the OS Tracing
If BCC is already installed, please run "AMDuProfVerifyBpfInstallation.sh" with root previlege.

 

I have installed the BCC tools with:

$ sudo dnf install -y bcc-tools bcc-devel

...

Last metadata expiration check: 3:22:54 ago on Thu 31 Oct 2024 03:46:31 AM CET.
Dependencies resolved.
==================================================================================================================================================================================================================
Package Architecture Version Repository Size
==================================================================================================================================================================================================================
Installing:
bcc-devel x86_64 0.24.0-2.el8 powertools 32 k
bcc-tools x86_64 0.24.0-2.el8 RHEL8-AppStream 467 k
Installing dependencies:
bcc x86_64 0.24.0-2.el8 RHEL8-AppStream 635 k
clang-libs x86_64 14.0.6-1.module+el8.7.0+15816+ec020e8f RHEL8-AppStream 23 M
clang-resource-filesystem x86_64 14.0.6-1.module+el8.7.0+15816+ec020e8f RHEL8-AppStream 15 k
gcc-toolset-12-gcc-c++ x86_64 12.1.1-3.2.el8 RHEL8-AppStream 13 M
gcc-toolset-12-libstdc++-devel x86_64 12.1.1-3.2.el8 RHEL8-AppStream 3.4 M
python3-bcc x86_64 0.24.0-2.el8 RHEL8-AppStream 98 k
python3-netaddr noarch 0.7.19-8.el8 RHEL8-AppStream 1.5 M

Transaction Summary
==================================================================================================================================================================================================================
Install 9 Packages

...
Installed:
bcc-0.24.0-2.el8.x86_64 bcc-devel-0.24.0-2.el8.x86_64 bcc-tools-0.24.0-2.el8.x86_64
clang-libs-14.0.6-1.module+el8.7.0+15816+ec020e8f.x86_64 clang-resource-filesystem-14.0.6-1.module+el8.7.0+15816+ec020e8f.x86_64 gcc-toolset-12-gcc-c++-12.1.1-3.2.el8.x86_64
gcc-toolset-12-libstdc++-devel-12.1.1-3.2.el8.x86_64 python3-bcc-0.24.0-2.el8.x86_64 python3-netaddr-0.7.19-8.el8.noarch

Complete!

 

I have installed uProf from the RPM at https://www.amd.com/fr/developer/uprof/uprof-eula/uprof-5-0-eula.html?filename=amduprof-5.0-1479.x86... :

$ sudo dnf install -y amduprof-5.0-1479.x86_64.rpm
Updating Subscription Management repositories.
Unable to read consumer identity

This system is not registered with an entitlement server. You can use subscription-manager to register.

Last metadata expiration check: 3:24:46 ago on Thu 31 Oct 2024 03:46:31 AM CET.
Dependencies resolved.
==================================================================================================================================================================================================================
Package Architecture Version Repository Size
==================================================================================================================================================================================================================
Installing:
amduprof x86_64 5.0-1479 @commandline 302 M

Transaction Summary
==================================================================================================================================================================================================================
Install 1 Package

Total size: 302 M
Installed size: 1.3 G
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Running scriptlet: amduprof-5.0-1479.x86_64 1/1
Installing : amduprof-5.0-1479.x86_64 1/1
Running scriptlet: amduprof-5.0-1479.x86_64 1/1
Installing AMD Power Profiler driver.
Installing AMDPowerProfiler Linux kernel module version 10.5.
Sign command: /lib/modules/4.18.0-425.3.1.el8.x86_64/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub

Building module:
Cleaning build area...
make -j256 KERNELRELEASE=4.18.0-425.3.1.el8.x86_64 -C /lib/modules/4.18.0-425.3.1.el8.x86_64/build M=/var/lib/dkms/AMDPowerProfiler/10.5/build...
Signing module /var/lib/dkms/AMDPowerProfiler/10.5/build/AMDPowerProfiler.ko
Cleaning build area...
Loading AMDPowerProfiler Linux kernel module.
AMD Power Profiler driver installation completed successfully.
/opt/AMDuProf_5.0-1479/bin/AMDuProfCLI

[OS-Trace Info]
BPF Supported : Yes
BCC Installed : No
OS Tracing Supported : No
Please install the BCC library to support the OS Tracing
If BCC is already installed, please run "AMDuProfVerifyBpfInstallation.sh" with root previlege.

Verifying : amduprof-5.0-1479.x86_64 1/1
Installed products updated.

Installed:
amduprof-5.0-1479.x86_64

Complete!

 

As far as I can tell BCC is working:

$ sudo /usr/share/bcc/tools/execsnoop
PCOMM PID PPID RET ARGS
ls 4056887 4056534 0 /usr/bin/ls -h --color=auto
...

 

However BCC is never detected by uProf:

$ sudo /opt/AMDuProf_5.0-1479/bin/AMDuProfVerifyBpfInstallation.sh
/opt/AMDuProf_5.0-1479/bin/AMDuProfCLI

[OS-Trace Info]
BPF Supported : Yes
BCC Installed : No
OS Tracing Supported : No
Please install the BCC library to support the OS Tracing
If BCC is already installed, please run "AMDuProfVerifyBpfInstallation.sh" with root previlege.

 

For reference, the system is running

$ cat /etc/redhat-release 
Red Hat Enterprise Linux release 8.7 (Ootpa)
$ uname -r
4.18.0-425.3.1.el8.x86_64

on

$ lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 256
On-line CPU(s) list: 0-255
Thread(s) per core: 2
Core(s) per socket: 64
Socket(s): 2
NUMA node(s): 8
Vendor ID: AuthenticAMD
CPU family: 25
Model: 1
Model name: AMD EPYC 7763 64-Core Processor
Stepping: 1
CPU MHz: 2450.000
CPU max MHz: 3529.0520
CPU min MHz: 1500.0000
BogoMIPS: 4890.71
Virtualization: AMD-V
L1d cache: 32K
L1i cache: 32K
L2 cache: 512K
L3 cache: 32768K
NUMA node0 CPU(s): 0-15,128-143
NUMA node1 CPU(s): 16-31,144-159
NUMA node2 CPU(s): 32-47,160-175
NUMA node3 CPU(s): 48-63,176-191
NUMA node4 CPU(s): 64-79,192-207
NUMA node5 CPU(s): 80-95,208-223
NUMA node6 CPU(s): 96-111,224-239
NUMA node7 CPU(s): 112-127,240-255
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf pni pclmulqdq monitor ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3 invpcid_single hw_pstate ssbd mba ibrs ibpb stibp vmmcall fsgsbase bmi1 avx2 smep bmi2 invpcid cqm rdt_a rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local clzero irperf xsaveerptr wbnoinvd amd_ppin arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold v_vmsave_vmload vgif v_spec_ctrl umip pku ospke vaes vpclmulqdq rdpid overflow_recov succor smca

 

Any suggestions to get uProf working ?

 

Many thanks,

.Andrea

0 Likes
3 Replies
ajayrant
Staff

Hi @fwyzard 


Thanks For Writing To serverguru Forum
Sorry for the delay in response.

Currently We are working on your Issue, will keep you updated about the same.

 

Thanks & Regards

Ajay, Ratnam

0 Likes
ajayrant
Staff

 Hi @fwyzard 

Could you Please run

/opt/AMDuProf_5.0-1479/bin/AMDuProfSetBpfCapability.sh and Share the output log .

 

Thanks & Regards 

Ajay, Ratnam

 

0 Likes
ajayrant
Staff

Hi @fwyzard 

 

Please let us know whether your issue got resolved .If not, Could you Please run

/opt/AMDuProf_5.0-1479/bin/AMDuProfSetBpfCapability.sh and Share the output log .

 

Thanks & Regards
Ajay, Ratnam

0 Likes