HP Caliper Advisor Rule Writer Guide

Table B-1 Metrics Available for Global Metrics Accessor Functions (continued)
DescriptionReturn
Type
Metric
Similar to pmu_event above, except that the privilege
level mask and the threshold are also given. When the
plm and threshold modifiers are provided, the entire
event description must be enclosed in parentheses to
form a Python tuple.
Replace plm with USER, KERNEL, BOTH, or ALL.
Replace threshold with an integer value.
integer
(pmu_event, plm,
threshold)
Returns the ID number of the dataset whose metric values
are being returned in this get_metrics() or
get_metrics_nth() call.
integer'n'
Multiplexed PMU Statistics Metrics for Global Metrics Accessor Functions
BRPATH Event Set Metrics
Table B-2 “BRPATH Event Set: Metrics Available for Multiplexed PMU Statistics”
shows the metrics available using the BRPATH event set. See “Multiplexed PMU
Statistics” (p. 38) for more information.
In these metrics, replace statistic with one of the following: MEAN, STDEV, 90%CI,
MINIMUM, LOW90, HIGH90, or MAXIMUM.
Table B-2 BRPATH Event Set: Metrics Available for Multiplexed PMU Statistics
DescriptionReturn
Type
Metric
Returns the number of samples taken.integerBRPATH.SAMPLE_COUNT
Returns the name of the PMU sampling
event.
stringBRPATH.SAMPLE_EVENT
Returns the privilege level mask used. Will
be one of the following: USER, KERNEL,
BOTH, or ALL.
stringBRPATH.SAMPLE_PLM
Returns the sample rate.integerBRPATH.SAMPLE_RATE
Returns the sample threshold value used.integerBRPATH.SAMPLE_THRESHOLD
Returns the sample rate variation.integerBRPATH.SAMPLE_VARIATION
Returns the Raw CPI statistic value.float
BRPATH.RAW_CPI.statistic
Returns the Branch per inst statistic value.float
BRPATH.BRANCHES/INST.statistic
72 Function Reference Information