Bug 14641

Summary: oprofile can not find the events files
Product: buildroot Reporter: Sergey <sergey.velykokhatko>
Component: OtherAssignee: unassigned
Status: RESOLVED FIXED    
Severity: normal CC: buildroot
Priority: P5    
Version: 2020.02.12   
Target Milestone: ---   
Hardware: Other   
OS: Linux   
Host: Target:
Build:

Description Sergey 2022-03-07 10:08:10 UTC
Hi all,

We are using Intel ApolloLake AtomE3930 SOC with goldmont microarchitecture.

Buildroot configure file contains the BR2_x86_64=y. When we starting the operf, we get following error:

oprofile: could not open unit mask description file /usr/share/oprofile//i386/goldmont/unit_masks
Unable to find info for event cpu_clk_unhalted

It looks for me a problem in OPROFILE_INSTALL_TARGET_CMDS. It copies the x86-64 for our SOC, but oprofile awaits them at i386 Architecture, s. https://docs.fedoraproject.org/en-US/fedora/f34/system-administrators-guide/monitoring-and-automation/OProfile/#s2-oprofile-events

Best Regards,
Sergey
Comment 1 Fabrice Fontaine 2022-03-07 22:36:32 UTC
Hi,

Thanks for your bug report. Can you confirm that the following patch fixes your issue: https://patchwork.ozlabs.org/project/buildroot/patch/20220307223355.945328-1-fontaine.fabrice@gmail.com/ ?

Best Regards,

Fabrice
Comment 2 Sergey 2022-03-08 08:18:24 UTC
Hi Fabrice,

Built and tested right now, it works. 
I think yours patch is easy solution. All events files take 2.8M. For some applications it could be a wasted space, but it is working solution, if someone wanna save the flash space (for example me), he can write own OPROFILE_INSTALL_TARGET_CMDS

Thanks,
Best Regards,
Sergey