#4152: Add support for collecting native events with PAPI ---------------------------------+------------------------------------------ Reporter: dmp | Owner: dmp Type: feature request | Status: patch Priority: normal | Component: Runtime System Version: 6.13 | Keywords: papi Os: Unknown/Multiple | Testcase: Architecture: Unknown/Multiple | Failure: None/Unknown ---------------------------------+------------------------------------------ Changes (by dmp):
* status: new => patch Comment: Attaching a patch that extends PAPI support to allow users to specify native events. The changes included are: 1) New option (#) for the RTS PAPI flag for native events. For example, to collect the native event 0x40000000, use {{{./a.out +RTS -a#0x40000000 -sstderr}}} 2) Update the PAPI_FLAGS struct to store whether the user specified event is a papi preset or a native event 3) Update init_countable_events function to add the native events after parsing the event code and decoding the name using PAPI_event_code_to_name The patch validates against HEAD. The validation script does not by default enable PAPI support so the changes do not really get tested by a validate. It also validates after enabling PAPI support, but that requires another (unrelated) patch to get validate to work with PAPI enabled (see #4151). -- Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4152#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler _______________________________________________ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs