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

Close

Commit [4d808a] Maximize Restore History

Defaulted named unit mask does not work

A fix to allow named unit masks to be used as the default was recently
pushed upstream (Jun 24: Add support for named default unit masks), but
unfortunately, we all missed the fact that using a named default
unit mask didn't actually work insofar as counting events.
Here's an example on Sandybridge that should use the default named
unit mask "any":

operf -e uops_issued:2000000 ./my_test
and opreport shows "opreport error: No sample file found".

When the user does not specify a unit mask, the profiling tools
(as well as ocount) will use 'ophelp --unit-mask' to determine
what the default unit mask should be. All of the oprofile
tools -- operf, opcontrol, ocount -- expect a numerical value
to be returned. So, in the case of a named default unit mask,
the unit mask name returned by ophelp was not being handled
properly, and the end result was usually "No samples found"
by opreport (or zero event counts by ocount). This patch
fixes this problem.

Signed-off-by: Maynard Johnson <maynardj@us.ibm.com>

Maynard Johnson Maynard Johnson 2013-07-24

changed libpe_utils
changed libpe_utils/op_pe_utils.cpp
changed pe_profiling
changed pe_profiling/operf.cpp
changed utils
changed utils/opcontrol
libpe_utils
Directory.
libpe_utils/op_pe_utils.cpp Diff Switch to side-by-side view
Loading...
pe_profiling
Directory.
pe_profiling/operf.cpp Diff Switch to side-by-side view
Loading...
utils
Directory.
utils/opcontrol Diff Switch to side-by-side view
Loading...