HP Caliper Advisor Rule Writer Guide

L1ICACHE, L2CACHE, L3CACHE, QUEUES, STALL,
SYSBUS, or TLB.
Replace sample with SAMPLE_COUNT, SAMPLE_EVENT,
SAMPLE_PLM, SAMPLE_RATE, SAMPLE_THRESHOLD,
or SAMPLE_VARIATION.
Examples:
get_metrics(STALL.SAMPLE_COUNT)
get_metrics_nth(STALL.SAMPLE_COUNT, 0)
Table 4-1 “Sampling Parameter Metrics Available for Multiplexed PMU Statistics”
shows available metrics, return type, and what it returns.
Table 4-1 Sampling Parameter Metrics Available for Multiplexed PMU Statistics
DescriptionReturn TypeMetric
Returns the number of samples taken.integer
event_set.SAMPLE_COUNT
Returns the name of the PMU sampling
event.
string
event_set.SAMPLE_EVENT
Returns the privilege level mask. Will be one
of the following: USER, KERNEL, BOTH, or
ALL.
string
event_set.SAMPLE_PLM
Returns the sample rate.integer
event_set.SAMPLE_RATE
Returns the sample threshold value.integer
event_set.SAMPLE_THRESHOLD
Returns the sample rate variation.integer
event_set.SAMPLE_VARIATION
Dataset ID
The special n metric returns the ID number of the dataset that supplied all of the other
metric values in the call. This metric is used as is, and is normally used in conjunction
with other metrics.
To retrieve this “metric,” use:
n
Returns the dataset ID number, an integer value.
Examples:
get_metrics(CPU_CYCLES, n)
get_metrics_nth(CPU_CYCLES, n, -2)
40 HP Caliper Advisor Accessor Functions