|
@@ -453,6 +453,9 @@ void perf_event__attr_swap(struct perf_event_attr *attr)
|
|
|
attr->bp_type = bswap_32(attr->bp_type);
|
|
|
attr->bp_addr = bswap_64(attr->bp_addr);
|
|
|
attr->bp_len = bswap_64(attr->bp_len);
|
|
|
+ attr->branch_sample_type = bswap_64(attr->branch_sample_type);
|
|
|
+ attr->sample_regs_user = bswap_64(attr->sample_regs_user);
|
|
|
+ attr->sample_stack_user = bswap_32(attr->sample_stack_user);
|
|
|
|
|
|
swap_bitfield((u8 *) (&attr->read_format + 1), sizeof(u64));
|
|
|
}
|