On Thu, May 14, 2020 at 04:30:51PM +0800, Like Xu wrote:Sure, I'll sort the fields in the order of declaration. Thanks.
+ struct perf_event_attr attr = {Maybe order the fields according to how they're declared in the
+ .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,
structure?
+ };