Lines Matching refs:metrics
1 Using TopDown metrics in user space
23 With Ice Lake CPUs the TopDown metrics are directly available as
54 The metrics counter is CPU model specific and is not available on older
105 * Open metrics event file descriptor for current task.
108 struct perf_event_attr metrics = {
115 int metrics_fd = perf_event_open(&metrics, 0, -1, slots_fd, 0);
129 to read slots and the topdown metrics at different points of the program:
150 Then the program can be instrumented to read these metrics at different
158 _rdpmc calls should not be mixed with reading the metrics and slots counters
162 Decoding metrics values
192 specific sections. For this it is needed to deltas on metrics.
194 This can be done by scaling the metrics with the slots counter
198 measured at different points, and determine the metrics
209 # compute scaled metrics for measurement a
215 # compute delta scaled metrics between b and a
240 # compute scaled metrics for measurement a
246 # compute delta scaled metrics between b and a
278 Resetting metrics counters
281 Since the individual metrics are only 8bit they lose precision for
323 The metrics counter is extended to support TMA method level 2 metrics.
324 The lower half of the register is the TMA level 1 metrics (legacy).
326 metrics. Four more TopDown metric events are exposed for the end-users,
330 Each of the new level 2 metrics in the upper half is a subset of the
332 other four level 2 metrics by subtracting corresponding metrics as below.