lkml.org 
[lkml]   [2020]   [Jun]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 09/21] perf/x86: Expose CPUID enumeration bits for arch LBR
On Fri, Jun 19, 2020 at 07:03:57AM -0700, kan.liang@linux.intel.com wrote:

> + union {
> + struct {
> + /* Supported LBR depth values */
> + unsigned int arch_lbr_depth_mask:8;
> +
> + unsigned int reserved:22;
> +
> + /* Deep C-state Reset */
> + unsigned int arch_lbr_deep_c_reset:1;
> +
> + /* IP values contain LIP */
> + unsigned int arch_lbr_lip:1;
> + };
> + unsigned int arch_lbr_eax;
> + };
> + union {
> + struct {
> + /* CPL Filtering Supported */
> + unsigned int arch_lbr_cpl:1;
> +
> + /* Branch Filtering Supported */
> + unsigned int arch_lbr_filter:1;
> +
> + /* Call-stack Mode Supported */
> + unsigned int arch_lbr_call_stack:1;
> + };
> + unsigned int arch_lbr_ebx;
> + };
> + union {
> + struct {
> + /* Mispredict Bit Supported */
> + unsigned int arch_lbr_mispred:1;
> +
> + /* Timed LBRs Supported */
> + unsigned int arch_lbr_timed_lbr:1;
> +
> + /* Branch Type Field Supported */
> + unsigned int arch_lbr_br_type:1;
> + };
> + unsigned int arch_lbr_ecx;
> + };

Please, union cpuid28_e[abc]x in asm/perf_event.h right along with the
existing cpuid10_e*x unions.

\
 
 \ /
  Last update: 2020-06-19 20:32    [W:0.387 / U:0.264 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site