Add Hygon Dhyana Support for PAPI

Issue #66 resolved
hygonsoc created an issue

Hygon Dhyana(family 18h) adopt similiar arch with AMD Family 17h, which is not supported in PAPI.

This patch add amd64 family 18h support for Hygon Dhyana.

  • add libpfm4/lib/events/amd64_events_fam18h.h and libpfm4/lib/pfmlib_amd64_fam18h.c to enable pfm4 support
  • add vendor checking to enable hygon support

Related Hygon kernel patch can be found on:

http://lkml.kernel.org/r/5ce86123a7b9dad925ac583d88d2f921040e859b.1538583282.git.puwen@hygon.cn

testsuite run successfully on Hygon Dhyana platform.

Comments (3)

  1. Heike Jagode

    This patch needs to be split into two:

    (1) A patch for the changes proposed to libpfm, which needs to be send upsteam to the the libpfm developer (Stephane Eranian, perfmon2-devel@lists.sourceforge.net).

    (2) A patch for the changes proposed to PAPI. This should be added as a pull request once Stephane approved patch (1) to libpfm, and after we have merged the latest libpfm4 into the PAPI repo.

    Thanks!

  2. hygonsoc reporter

    Will submit patch to libpfm and later add pull request according to your suggestion

    Thanks!

  3. Log in to comment