Lines Matching +full:fixed +full:- +full:mode
1 /* SPDX-License-Identifier: GPL-2.0 */
191 /* Deep C-state Reset */
205 /* Call-stack Mode Supported */
251 * Fixed-purpose performance events:
254 /* RDPMC offset for Fixed PMCs */
259 * All the fixed-mode PMCs are configured via this single MSR:
264 * There is no event-code assigned to the fixed-mode PMCs.
266 * For a fixed-mode PMC, which has an equivalent event on a general-purpose
267 * PMC, the event-code of the equivalent event is used for the fixed-mode PMC,
270 * For a fixed-mode PMC, which doesn't have an equivalent event, a
271 * pseudo-encoding is used, e.g., CPU_CLK_Unhalted.Ref and TOPDOWN.SLOTS.
272 * The pseudo event-code for a fixed-mode PMC must be 0x00.
273 * The pseudo umask-code is 0xX. The X equals the index of the fixed
274 * counter + 1, e.g., the fixed counter 2 has the pseudo-encoding 0x0300.
287 /* CPU_CLK_Unhalted.Ref: event=0x00,umask=0x3 (pseudo-encoding) */
292 /* TOPDOWN.SLOTS: event=0x00,umask=0x4 (pseudo-encoding) */
303 * We model BTS tracing as another fixed-mode PMC.
305 * We choose the value 47 for the fixed index of BTS, since lower
306 * values are used by actual fixed events and higher values are used
312 * The PERF_METRICS MSR is modeled as several magic fixed-mode PMCs, one for
331 * There is no event-code assigned to the TopDown events.
333 * For the slots event, use the pseudo code of the fixed counter 3.
335 * For the metric events, the pseudo event-code is 0x00.
336 * The pseudo umask-code starts from the middle of the pseudo event
356 return (unsigned)(idx - INTEL_PMC_IDX_METRIC_BASE) < INTEL_TD_METRIC_NUM; in is_metric_idx()
381 * We model guest LBR event tracing as another fixed-mode PMC like BTS.
394 * Pseudo-encoding the guest LBR event as event=0x00,umask=0x1b,
494 static inline int forward_event_to_ibs(struct perf_event *event) { return -ENOENT; } in forward_event_to_ibs()
505 * EXACT - the IP points to the exact instruction that triggered the
507 * VM - original X86_VM_MASK; see set_linear_ip().
529 (regs)->ip = (__ip); \
530 (regs)->sp = (unsigned long)__builtin_frame_address(0); \
531 (regs)->cs = __KERNEL_CS; \
532 regs->flags = 0; \