lkml.org 
[lkml]   [2020]   [May]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v11 08/11] KVM: x86/pmu: Emulate LBR feature via guest LBR event
From
Date
On 2020/5/19 19:01, Peter Zijlstra wrote:
> On Thu, May 14, 2020 at 04:30:51PM +0800, Like Xu wrote:
>
>> + struct perf_event_attr attr = {
>> + .type = PERF_TYPE_RAW,
>> + .size = sizeof(attr),
>> + .pinned = true,
>> + .exclude_host = true,
>> + .config = INTEL_FIXED_VLBR_EVENT,
>> + .sample_type = PERF_SAMPLE_BRANCH_STACK,
>> + .branch_sample_type = PERF_SAMPLE_BRANCH_CALL_STACK |
>> + PERF_SAMPLE_BRANCH_USER,
> Maybe order the fields according to how they're declared in the
> structure?
Sure,  I'll sort the fields in the order of declaration. Thanks.
>> + };

\
 
 \ /
  Last update: 2020-05-19 14:29    [W:0.145 / U:0.084 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site