Lines Matching +full:fixed +full:- +full:mode

1 /* SPDX-License-Identifier: GPL-2.0 */
203 /* Deep C-state Reset */
217 /* Call-stack Mode Supported */
268 * Fixed-purpose performance events:
271 /* RDPMC offset for Fixed PMCs */
276 * All the fixed-mode PMCs are configured via this single MSR:
281 * There is no event-code assigned to the fixed-mode PMCs.
283 * For a fixed-mode PMC, which has an equivalent event on a general-purpose
284 * PMC, the event-code of the equivalent event is used for the fixed-mode PMC,
287 * For a fixed-mode PMC, which doesn't have an equivalent event, a
288 * pseudo-encoding is used, e.g., CPU_CLK_Unhalted.Ref and TOPDOWN.SLOTS.
289 * The pseudo event-code for a fixed-mode PMC must be 0x00.
290 * The pseudo umask-code is 0xX. The X equals the index of the fixed
291 * counter + 1, e.g., the fixed counter 2 has the pseudo-encoding 0x0300.
304 /* CPU_CLK_Unhalted.Ref: event=0x00,umask=0x3 (pseudo-encoding) */
309 /* TOPDOWN.SLOTS: event=0x00,umask=0x4 (pseudo-encoding) */
314 /* TOPDOWN_BAD_SPECULATION.ALL: fixed counter 4 (Atom only) */
315 /* TOPDOWN_FE_BOUND.ALL: fixed counter 5 (Atom only) */
316 /* TOPDOWN_RETIRING.ALL: fixed counter 6 (Atom only) */
324 * We model BTS tracing as another fixed-mode PMC.
326 * We choose the value 47 for the fixed index of BTS, since lower
327 * values are used by actual fixed events and higher values are used
333 * The PERF_METRICS MSR is modeled as several magic fixed-mode PMCs, one for
352 * There is no event-code assigned to the TopDown events.
354 * For the slots event, use the pseudo code of the fixed counter 3.
356 * For the metric events, the pseudo event-code is 0x00.
357 * The pseudo umask-code starts from the middle of the pseudo event
377 return (unsigned)(idx - INTEL_PMC_IDX_METRIC_BASE) < INTEL_TD_METRIC_NUM; in is_metric_idx()
402 * We model guest LBR event tracing as another fixed-mode PMC like BTS.
415 * Pseudo-encoding the guest LBR event as event=0x00,umask=0x1b,
515 static inline int forward_event_to_ibs(struct perf_event *event) { return -ENOENT; } in forward_event_to_ibs()
526 * EXACT - the IP points to the exact instruction that triggered the
528 * VM - original X86_VM_MASK; see set_linear_ip().
550 (regs)->ip = (__ip); \
551 (regs)->sp = (unsigned long)__builtin_frame_address(0); \
552 (regs)->cs = __KERNEL_CS; \
553 regs->flags = 0; \