Menu

libpfm4 Merge Request #8: Add Cavium ThunderX2 (open)

Merging...

Merged

Something went wrong. Please, merge manually

Checking if merge is possible...

Something went wrong. Please, merge manually

Steve Walk wants to merge 1 commit from /u/swalk-cavium/perfmon2/ to master, 2018-05-18

Commit Date  
[45dcc9] (HEADmaster) by Steve Walk Steve Walk

Add Cavium ThunderX2

2018-03-20 16:37:56 Tree

Discussion

  • William Cohen

    William Cohen - 2018-05-08

    In include/perfmon/pfmlib.h new processor enumerations are suppose to be placed right before:

    /* MUST ADD NEW PMU MODELS HERE */
    

    This is to avoid changing the existing enum values between versions.

    As a sanity check diffed arm_cortex_a53_events.h and arm_cavium_tx2_events.h to see if anything was way off on the common events. Looks cortex a53 might need to update some of the name and descriptions. Also checked the names against the kernel perf tool entries in armv8-recommended.json. BUS_ACCESS_LD should be changed to BUS_ACCESS_RD, BUS_ACCESS_ST should also match up but doesn't.

    Is there a reason to include "CHAIN" event? It wouldn't be usable in libpfm

     
  • William Cohen

    William Cohen - 2018-05-08

    Is there a pointer to documentation describing the events? If that is available, it would be good to mention that in the comments of file with the events.

     
  • William Cohen

    William Cohen - 2018-05-08

    Should add some checks in tests/valide_arm64.c to check that some of the thunderx 2 events are there.

     
  • Steve Walk

    Steve Walk - 2018-05-17

    Thanks for the thorough review. I'll fix the issues you mentioned.

    The only documentation I can reference is the ARM Architecture Reference Manual
    ARMv8, for the ARMv8-a architecture profile, ARM DDI 0487B.a ID033117. We have
    an Optimization Guide, but it's only available through Support with an NDA. Apparently,
    I'm not the first to encounter this long standing issue. I'll have to submit another pull request
    at some future time when more detailed documentation is available.

     
  • Steve Walk

    Steve Walk - 2018-05-17

    I think I've rebased and applied the appropriate changes. I'm not sure about the workflow,
    but the earlier merge request can be cancelled.

     

Log in to post a comment.