aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/perf_counter.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/perf_counter.h')
-rw-r--r--include/linux/perf_counter.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/perf_counter.h b/include/linux/perf_counter.h
index a4b76c0175f3..98f5990be1e1 100644
--- a/include/linux/perf_counter.h
+++ b/include/linux/perf_counter.h
@@ -15,6 +15,7 @@
15 15
16#include <linux/types.h> 16#include <linux/types.h>
17#include <linux/ioctl.h> 17#include <linux/ioctl.h>
18#include <asm/byteorder.h>
18 19
19/* 20/*
20 * User-space ABI bits: 21 * User-space ABI bits:
@@ -86,6 +87,7 @@ enum perf_counter_record_type {
86 */ 87 */
87struct perf_counter_hw_event { 88struct perf_counter_hw_event {
88 union { 89 union {
90#ifndef __BIG_ENDIAN_BITFIELD
89 struct { 91 struct {
90 __u64 event_id : 56, 92 __u64 event_id : 56,
91 type : 8; 93 type : 8;
@@ -94,6 +96,16 @@ struct perf_counter_hw_event {
94 __u64 raw_event_id : 63, 96 __u64 raw_event_id : 63,
95 raw_type : 1; 97 raw_type : 1;
96 }; 98 };
99#else
100 struct {
101 __u64 type : 8,
102 event_id : 56;
103 };
104 struct {
105 __u64 raw_type : 1,
106 raw_event_id : 63;
107 };
108#endif /* __BIT_ENDIAN_BITFIELD */
97 __u64 event_config; 109 __u64 event_config;
98 }; 110 };
99 111