mmozum / likwid

Automatically exported from code.google.com/p/likwid
GNU General Public License v3.0
0 stars 0 forks source link

Change the static group configuration to a dynamic variant #10

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Groups can only be set statically for all architectures. This
is inflexible because some architectures have more counters or other events.

Solution:

Implement a dynamic group approach.
Add a routine to ask for the supported groups.
The API can be implemented with function pointers.
These are initialized according to the architecture.

Original issue reported on code.google.com by jan.trei...@gmail.com on 9 Oct 2009 at 6:18

GoogleCodeExporter commented 9 years ago
Solved in hg revision 32c9d6ab13.

Implement callback mechanism. 
Architecture specific implementation can be asked
for supported groups and a corresponding group id.

With this solution every architecture can have individual
groups. 

Original comment by jan.trei...@gmail.com on 21 Oct 2009 at 7:59