Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Commit [4e98c0] Maximize Restore History

add pmu->can_auto_encode() callback

To provide a mechanism for PMU models. to skip
the auto-encoding validation in function
pfmlib_pmu_validate_encoding(). There may be events
for which you cannot simply enumerate all umasks
and encode them one by one. There may be umasks
groups with no defaults. There may be required
modifiers.

In case encoding fails, the validation code now
checks with the PMU layer to verify if the event
does support auto-encoding. That way, the callback
only need to be defined for PMU with known problems.

Signed-off-by: Stephane Eranian <eranian@gmail.com>

Stephane Eranian Stephane Eranian 2012-09-01

changed lib
changed lib/pfmlib_common.c
changed lib/pfmlib_intel_x86_priv.h
changed lib/pfmlib_priv.h
lib
Directory.
lib/pfmlib_common.c Diff Switch to side-by-side view
Loading...
lib/pfmlib_intel_x86_priv.h Diff Switch to side-by-side view
Loading...
lib/pfmlib_priv.h Diff Switch to side-by-side view
Loading...