Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#257 Handling of default named unit masks longer than 11 chars is broken

None
closed
None
5
2014-09-11
2013-10-31
Maynard Johnson
No

The handling of default unit masks that are names instead of hex values is new with oprofile 0.9.9. I've discovered a bug in this handling when the name exceeds 11 characters. For example, on Sandybridge, the following ocount command fails:

[mpjohn@oc1757000783 test-stuff]$ ocount -e l1d_blocks ls
Cannot find unit mask bank_confli for l1d_blocks
Unable to find unit mask info for bank_confli for event l1d_blocks

Discussion

  • This was resolved with a simple one-line fix to increase the size of a char array that was used to hold the mask value returned from 'ophelp --unit-mask'.

    The fix has been pushed upstream.

     
    • status: open --> open-fixed
    • Group: -->
     
    • Status: open-fixed --> closed