Tue Jun 22 12:59:53 PDT 2010  [email protected]
  * Add support for collecting PAPI native events
  
  This patch extends the PAPI support in the RTS to allow collection of native
  events. PAPI can collect data for native events that are exposed by the
  hardware beyond the PAPI present events. The native events supported on your
  hardware can found by using the papi_native_avail tool.
  
  The RTS already allows users to specify PAPI preset events from the command
  line. This patch extends that support to allow users to specify native events.
  The changes needed 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
  

    M ./includes/rts/Flags.h +4
    M ./rts/Papi.c -4 +14
    M ./rts/RtsFlags.c -1 +9

View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=ghc;a=darcs_commitdiff;h=20100622195953-3f2c3-6f2c6d1245877a00d165e5dc4b108616f72144ec.gz

_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to